wok annotate perl-dev/receipt @ rev 25092
updated pari and pari-dev (2.11.3 -> 2.13.4)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 10:01:45 2022 +0100 (2022-06-18) |
parents | 93cfbe138cae |
children |
rev | line source |
---|---|
pascal@23057 | 1 # SliTaz package receipt. |
pascal@23057 | 2 |
pascal@23057 | 3 PACKAGE="perl-dev" |
pascal@23057 | 4 VERSION="5.14.1" |
pascal@23057 | 5 CATEGORY="development" |
pascal@23058 | 6 SHORT_DESC="Full Perl interpreter and modules using libperl.so." |
pascal@23057 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@23057 | 8 LICENSE="GPL" |
pascal@23057 | 9 SOURCE="perl" |
pascal@23057 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@23057 | 11 DEPENDS="libdb gdbm zlib" |
pascal@23057 | 12 BUILD_DEPENDS="db gdbm zlib less" |
pascal@23069 | 13 WEB_SITE="https://www.perl.org/" |
pascal@23057 | 14 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" |
pascal@23058 | 15 PROVIDE="perl" |
pascal@23057 | 16 |
pascal@24102 | 17 current_version() |
pascal@24102 | 18 { |
pascal@24102 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 20 sed '/version-highlight/!d;s|.*">||;s|<.*||;q' |
pascal@24102 | 21 } |
pascal@24102 | 22 |
pascal@23057 | 23 # Rules to compile & install the temporary toolchain. |
pascal@23057 | 24 cook_tmp_toolchain() |
pascal@23057 | 25 { |
pascal@23057 | 26 { sh Configure -des -Dprefix=/tools \ |
pascal@23057 | 27 -Darchname="$ARCH-linux" \ |
pascal@23057 | 28 -Dmyarchname="$ARCH-linux" \ |
pascal@23057 | 29 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ |
pascal@23057 | 30 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ |
pascal@23057 | 31 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 32 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 33 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 34 -Dstatic_ext='Data/Dumper Fcntl IO' |
pascal@23057 | 35 |
pascal@23057 | 36 # Only few tools are needed in the tmp toolchain. |
pascal@23057 | 37 make perl utilities ext/Errno/pm_to_blib |
pascal@23057 | 38 } || return 1 |
pascal@23057 | 39 cp perl pod/pod2man /tools/bin |
pascal@23057 | 40 mkdir -p /tools/lib/perl5/$VERSION |
pascal@23057 | 41 cp -R lib/* /tools/lib/perl5/$VERSION |
pascal@23057 | 42 } |
pascal@23057 | 43 |
pascal@23057 | 44 |
pascal@23057 | 45 # Rules to configure and make the package. |
pascal@23057 | 46 # |
pascal@23057 | 47 compile_rules() |
pascal@23057 | 48 { |
pascal@23057 | 49 ./configure.gnu --prefix=/usr \ |
pascal@23057 | 50 -Duseshrplib \ |
pascal@23057 | 51 -Darchname="$ARCH-linux" \ |
pascal@23057 | 52 -Dmyarchname="$ARCH-linux" \ |
pascal@23057 | 53 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ |
pascal@23057 | 54 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ |
pascal@23057 | 55 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 56 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 57 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" && |
pascal@23057 | 58 make && |
pascal@23057 | 59 make install |
pascal@23057 | 60 } |
pascal@23057 | 61 |
pascal@23057 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23057 | 63 genpkg_rules() |
pascal@23057 | 64 { |
pascal@23057 | 65 mkdir -p $fs/usr |
pascal@23057 | 66 cp -a $install/usr/bin $fs/usr |
pascal@23057 | 67 cp -a $install/usr/lib $fs/usr |
pascal@23057 | 68 } |
pascal@23057 | 69 |
pascal@23057 | 70 # Pre install commands for Tazpkg. |
pascal@23057 | 71 # Remove perl link to microperl if any. |
pascal@23057 | 72 # |
pascal@23057 | 73 pre_install() |
pascal@23057 | 74 { |
pascal@23057 | 75 rm -f "$1/usr/bin/perl" |
pascal@23057 | 76 } |