diff options
author | Piotr Rogoża | 2015-06-14 16:33:58 +0200 |
---|---|---|
committer | Piotr Rogoża | 2015-06-14 16:33:58 +0200 |
commit | 2b70c904b4d7e89c01bb9ad8f306cf4bd30c2359 (patch) | |
tree | 8ba8b62660aae0abd73369eed0932e3fa3a7dd5f | |
download | aur-2b70c904b4d7e89c01bb9ad8f306cf4bd30c2359.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | PKGBUILD | 58 | ||||
-rw-r--r-- | p.patch | 22 | ||||
-rw-r--r-- | remove-uneeded-libs.patch | 15 |
4 files changed, 126 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..24a18782d394 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = perl-wx-scintilla + pkgdesc = Wx::Scintilla - Scintilla source code editing component for wxWidgets + pkgver = 0.39 + pkgrel = 1 + url = http://search.cpan.org/~azawawi/Wx-Scintilla/ + arch = i686 + arch = x86_64 + license = GPL + license = PerlArtistic + makedepends = perl-alien-wxwidgets + makedepends = perl-extutils-xspp + makedepends = perl-test-simple + makedepends = perl-wx + makedepends = perl-module-build + depends = perl + depends = wxgtk2.8 + provides = perl-wx-scintilla-constant + provides = perl-wx-scintilla-textctrl + provides = perl-wx-scintilla-textevent + provides = perl-wx-scintillatextctrl + provides = perl-wx-scintillatextevent + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/A/AZ/AZAWAWI/Wx-Scintilla-0.39.tar.gz + source = remove-uneeded-libs.patch + source = p.patch + sha256sums = d6d67528a55552bb3fda2a1f22058c6c94a05eaf632dba5331afb3390defe0ea + sha256sums = 53d8f6018affd735b4deb5d80128c9a0106185ddab5ed53f1409975319188e52 + sha256sums = f75b4ba5bb44e74a49df386ae4a6a9aa27f25eacdc8bbc7ff0a59f34984ad7d0 + +pkgname = perl-wx-scintilla + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7962a8b41d53 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Piotr Rogoza <piotr dot r dot public at gmail dot com> +# Contributor: Piotr Rogoza <piotr dot r dot public at gmail dot com> + +_author=A/AZ/AZAWAWI +_perlmod=Wx-Scintilla +pkgname=perl-wx-scintilla +pkgver=0.39 +pkgrel=1 +pkgdesc='Wx::Scintilla - Scintilla source code editing component for wxWidgets' +arch=('i686' 'x86_64') +url="http://search.cpan.org/~azawawi/Wx-Scintilla/" +license=('GPL' 'PerlArtistic') +depends=( +perl +wxgtk2.8 +) +makedepends=( +perl-alien-wxwidgets +perl-extutils-xspp +perl-test-simple +perl-wx +perl-module-build +) +provides=( +perl-wx-scintilla-constant +perl-wx-scintilla-textctrl +perl-wx-scintilla-textevent +perl-wx-scintillatextctrl +perl-wx-scintillatextevent +) +options=(!emptydirs) +source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz" +remove-uneeded-libs.patch +p.patch +) +sha256sums=('d6d67528a55552bb3fda2a1f22058c6c94a05eaf632dba5331afb3390defe0ea' + '53d8f6018affd735b4deb5d80128c9a0106185ddab5ed53f1409975319188e52' + 'f75b4ba5bb44e74a49df386ae4a6a9aa27f25eacdc8bbc7ff0a59f34984ad7d0') +prepare(){ + cd "$srcdir/$_perlmod-$pkgver" + patch -Np1 -i "$srcdir/remove-uneeded-libs.patch" + patch -Np1 -i "$srcdir/p.patch" +} +build(){ + cd "$srcdir/$_perlmod-$pkgver" + perl Build.PL installdirs=vendor destdir="$pkgdir/" + perl Build +} +check(){ + cd "$srcdir/$_perlmod-$pkgver" + perl Build test +} +package(){ + cd "$srcdir/$_perlmod-$pkgver" + perl Build install + # remove perllocal.pod and .packlist + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} diff --git a/p.patch b/p.patch new file mode 100644 index 000000000000..3b908398fb6c --- /dev/null +++ b/p.patch @@ -0,0 +1,22 @@ +diff --git a/inc/Module/Build/Scintilla.pm b/inc/Module/Build/Scintilla.pm +index de71aaf..0da4676 100644 +--- a/inc/Module/Build/Scintilla.pm ++++ b/inc/Module/Build/Scintilla.pm +@@ -47,7 +47,7 @@ sub stc_wxconfig { + # not available on windows + return $self->{_wxstc_config_wxconfig} if $self->{_wxstc_config_wxconfig}; + my $binpathconfig; +- my $sympathconfig = Alien::wxWidgets->prefix . '/bin/wx-config'; ++ my $sympathconfig = Alien::wxWidgets->prefix . '/usr/bin/wx-config-2.8'; + + # sometimes the symlink is broken - if there has been relocation etc. + # but we know where it should be if installed by Alien::wxWidgets +@@ -60,7 +60,7 @@ sub stc_wxconfig { + $binpathconfig = $testpath if -f $testpath; + }; + +- my $wxconfig = $binpathconfig || 'wx-config'; ++ my $wxconfig = $binpathconfig || 'wx-config-2.8'; + my $configtest = qx($wxconfig --version); + if ( $configtest !~ /^\d+\.\d+\.\d+/ ) { + die diff --git a/remove-uneeded-libs.patch b/remove-uneeded-libs.patch new file mode 100644 index 000000000000..f659b601347d --- /dev/null +++ b/remove-uneeded-libs.patch @@ -0,0 +1,15 @@ +diff --git a/inc/Module/Build/Scintilla/GTK.pm b/inc/Module/Build/Scintilla/GTK.pm +index 3894bd8..e910d79 100644 +--- a/inc/Module/Build/Scintilla/GTK.pm ++++ b/inc/Module/Build/Scintilla/GTK.pm +@@ -83,9 +83,7 @@ sub stc_prebuild_check { + + sub stc_extra_scintilla_libs { + my $self = shift; +- my $extras = '-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 '; +- $extras .= '-lgdk_pixbuf-2.0 -lm -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 '; +- $extras .= '-lgmodule-2.0 -lgthread-2.0 -lglib-2.0'; ++ my $extras = '-lm'; + return $extras; + } + |