Adapt perl to linux.

--HG--
extra : convert_revision : 0195de3a330193ea5caa9426ce893e682017e49c
This commit is contained in:
Juan RP 2008-10-22 18:39:17 +02:00
parent 420f14d2ae
commit 04bd07c1c5
4 changed files with 8 additions and 33 deletions

View file

@ -1,16 +0,0 @@
Do not hardcode rpath dirs into binaries or modules that would cause
unexpected results with xbps.
--- hints/netbsd.sh.orig 2008-10-02 01:03:43.000000000 +0200
+++ hints/netbsd.sh 2008-10-02 01:04:38.000000000 +0200
@@ -178,8 +178,8 @@ EOCBU
# Set sensible defaults for NetBSD: look for local software in
# /usr/pkg (NetBSD Packages Collection) and in /usr/local.
#
-loclibpth="/usr/pkg/lib /usr/local/lib"
-locincpth="/usr/pkg/include /usr/local/include"
+loclibpth=""
+locincpth=""
case "$rpathflag" in
'')
ldflags=

View file

@ -1,11 +0,0 @@
# Fixup Config.pm to look at XBPS_MASTERDIR, this helps modules
# to use correct dirs while building/installing them.
perl_arch=$(uname -m)
perl_libdir=$XBPS_DESTDIR/$pkgname-$version/lib/perl5
config_pm=$perl_libdir/$version/$perl_arch-linux-thread-multi/Config.pm
$sed_cmd -e "s|$XBPS_DESTDIR\/$pkgname-$version|$XBPS_MASTERDIR|g" \
$config_pm > $config_pm.in
$chmod_cmd 444 $config_pm.in
$mv_cmd -f $config_pm.in $config_pm

View file

@ -1,6 +1,7 @@
# This fixes the definitions that the perl binary uses to look at
# XBPS_MASTERDIR and not XBPS_DESTDIR!
# prefix and not XBPS_DESTDIR/MASTERDIR.
$sed_cmd -e "s|$XBPS_DESTDIR\/$pkgname-$version|$XBPS_MASTERDIR|g" \
$wrksrc/config.h > $wrksrc/config.h.in && \
$mv_cmd -f $wrksrc/config.h.in $wrksrc/config.h
$sed_cmd -i \
-e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" \
-e "s|$XBPS_MASTERDIR||g" \
$wrksrc/config.h

View file

@ -1,11 +1,10 @@
# Template build file for 'perl'.
pkgname=perl
version=5.10.0
patch_files="$pkgname-dont-hardcode-rpath.diff"
distfiles="http://www.cpan.org/src/$pkgname-$version@.tar.gz"
configure_script="./Configure"
configure_args="-Dusethreads -des -Dprefix=$XBPS_DESTDIR/$pkgname-$version
-Ui_malloc -Uusemymalloc -Dinstallstyle=lib/perl5"
-Duselargefiles -Uusesfio -Dinstallstyle=lib/perl5"
build_style=configure
short_desc="Practical Extraction and Report Language"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -20,3 +19,5 @@ long_desc="
procedural and object-oriented (OO) programming, has powerful built-in
support for text processing, and has one of the world's most impressive
collections of third-party modules."
run_depends="glibc-2.8"