From c12a5b3b16247d1b586ad441366cefcaa490bb9f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 17 Dec 2010 14:20:02 +0100 Subject: [PATCH] perl: needs groff and less to build, added patch to use pwd from busybox. --- srcpkgs/perl/patches/find_pwd_from_busybox.diff | 10 ++++++++++ srcpkgs/perl/template | 9 +++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/perl/patches/find_pwd_from_busybox.diff diff --git a/srcpkgs/perl/patches/find_pwd_from_busybox.diff b/srcpkgs/perl/patches/find_pwd_from_busybox.diff new file mode 100644 index 00000000000..470d747a2d0 --- /dev/null +++ b/srcpkgs/perl/patches/find_pwd_from_busybox.diff @@ -0,0 +1,10 @@ +--- cpan/Cwd/Cwd.pm.orig 2010-12-17 13:34:47.987072114 +0100 ++++ cpan/Cwd/Cwd.pm 2010-12-17 13:35:14.474647252 +0100 +@@ -336,6 +336,7 @@ $METHOD_MAP{NT} = $METHOD_MAP{MSWin32}; + my $pwd_cmd; + foreach my $try ('/bin/pwd', + '/usr/bin/pwd', ++ '/usr/local/bin/pwd', + '/QOpenSys/bin/pwd', # OS/400 PASE. + ) { + diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template index eedaf364456..c14475d2add 100644 --- a/srcpkgs/perl/template +++ b/srcpkgs/perl/template @@ -23,12 +23,14 @@ Add_dependency run gdbm Add_dependency run libdb Add_dependency build gdbm-devel Add_dependency build db-devel +Add_dependency build less +Add_dependency build groff do_build() { ./Configure \ -des -Dusethreads -Duseshrplib \ - -Dinstallprefix=/usr \ + -Dinstallprefix=${DESTDIR}/usr \ -Dprefix=/usr -Dvendorprefix=/usr \ -Dprivlib=/usr/share/perl5/core_perl \ -Darchlib=/usr/lib/perl5/core_perl \ @@ -39,8 +41,7 @@ do_build() -Dscriptdir=/usr/lib/perl5/core_perl/bin \ -Dsitescript=/usr/lib/perl5/site_perl/bin \ -Dvendorscript=/usr/lib/perl5/vendor_perl/bin \ - -Dinc_version_list=none \ - -Dman1ext=1p -Dman3ext=3p \ + -Dinc_version_list=none -Dman1ext=1p -Dman3ext=3p \ -Dcccdlflags="-fPIC" -Doptimize="${XBPS_CFLAGS}" make ${makejobs} @@ -49,7 +50,7 @@ do_build() do_install() { # We use the same defaults than Arch Linux. - make DESTDIR=${DESTDIR} install || return 1 + make install # Make a link from perl${version} to perl. cd ${DESTDIR}/usr/bin && ln -sf perl${version} perl