diff options
author | root <root@rshg054.dnsready.net> | 2012-11-22 02:31:09 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-22 02:31:09 -0800 |
commit | 38ea2e71952c00f18230ed0e691532aadff4e2c1 (patch) | |
tree | bc1c7cfd697773062d53a0a23b35afdb0fc775c2 /community/perl-term-readline-gnu | |
parent | f48f6c82e23a3bacb8a0952c2d2cf9af1e6bf42d (diff) |
Thu Nov 22 02:27:52 PST 2012
Diffstat (limited to 'community/perl-term-readline-gnu')
-rw-r--r-- | community/perl-term-readline-gnu/PKGBUILD | 49 | ||||
-rw-r--r-- | community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch | 18 |
2 files changed, 67 insertions, 0 deletions
diff --git a/community/perl-term-readline-gnu/PKGBUILD b/community/perl-term-readline-gnu/PKGBUILD new file mode 100644 index 000000000..4a1ee0bc0 --- /dev/null +++ b/community/perl-term-readline-gnu/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 80447 2012-11-21 22:59:31Z dwallace $ +# CPAN Name : Term-ReadLine-Gnu +# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com> +# Contributor: jason ryan <jasonwryan@gmail.com> +# Contributor: AUR Perl <aurperl@juster.info> +# Generator : CPANPLUS::Dist::Arch 1.15 + +pkgname=perl-term-readline-gnu +pkgver=1.20 +pkgrel=4 +pkgdesc="GNU Readline XS library wrapper" +arch=('i686' 'x86_64') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl>=5.7') +url='http://search.cpan.org/dist/Term-ReadLine-Gnu' +source=('http://search.cpan.org/CPAN/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-1.20.tar.gz' + 'termcap-bad-ncurses-good.patch') +md5sums=('fa33510193b89a2ada74fcef00816322' + 'a000706b89792f822b5ec20baa370910') +_distdir="${srcdir}/Term-ReadLine-Gnu-1.20" + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$_distdir" + patch --forward -p1 < "${srcdir}/termcap-bad-ncurses-good.patch" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$_distdir" + make install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + diff --git a/community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch b/community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch new file mode 100644 index 000000000..7fee6013c --- /dev/null +++ b/community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch @@ -0,0 +1,18 @@ +--- Term-ReadLine-Gnu-1.20/Makefile.PL 2010-05-02 06:37:55.000000000 -0400 ++++ Term-ReadLine-Gnu-1.20-patched/Makefile.PL 2011-07-30 16:16:54.000000000 -0400 +@@ -58,8 +58,13 @@ + # know why AIX prefers curses. + # libtermcap.a on HPUX cannot be used for dynamically linked binary. + # Old Cygwin may require setting false (0). +- my $PREFER_CURSES = $Config{osname} eq 'aix' || $Config{osname} eq 'hpux' +- || $Config{osname} eq 'cygwin'; ++ # my $PREFER_CURSES = $Config{osname} eq 'aix' || $Config{osname} eq 'hpux' ++ # || $Config{osname} eq 'cygwin'; ++ ++ # Hack for ArchLinux by Justin Davis <aurperl@juster.us> ++ # Don't use termcap! readline is linked with ncurses so I know it's ++ # available. termcap causes this module to crash for some people. ++ my $PREFER_CURSES = 1; + my $TERMCAP_LIB = (! $PREFER_CURSES && &search_lib('-ltermcap')) + || &search_lib('-lncurses') + || &search_lib('-lcurses'); |