wok-6.x annotate erlang/receipt @ rev 10975
Up: python to 2.7.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Oct 12 12:47:24 2011 +0000 (2011-10-12) |
parents | ecc22c518136 |
children | bcaada81a314 |
rev | line source |
---|---|
pascal@2134 | 1 # SliTaz package receipt. |
pascal@2134 | 2 |
pascal@2134 | 3 PACKAGE="erlang" |
pascal@9294 | 4 VERSION="R12B-5" |
pascal@2134 | 5 CATEGORY="development" |
pascal@2134 | 6 SHORT_DESC="Erlang programming language." |
pascal@2134 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2134 | 8 SOURCE="otp_src" |
pascal@2134 | 9 TARBALL="${SOURCE}_$VERSION.tar.gz" |
pascal@2134 | 10 WEB_SITE="http://$PACKAGE.org/" |
pascal@2134 | 11 WGET_URL="${WEB_SITE}download/$TARBALL" |
pankso@10656 | 12 |
pankso@10656 | 13 DEPENDS="ncurses openssl libunixODBC" |
pankso@10659 | 14 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk" |
pascal@2134 | 15 |
pascal@2134 | 16 # Rules to configure and make the package. |
pascal@2134 | 17 compile_rules() |
pascal@2134 | 18 { |
pascal@2134 | 19 patch=${SOURCE}_${VERSION}_OTP-7738.patch |
pankso@10656 | 20 export LANG=C |
pankso@10656 | 21 |
pascal@2134 | 22 cd $src |
pascal@5552 | 23 if [ ! -f done.$patch ]; then |
slaxemulator@9289 | 24 patch -p1 < $stuff/$patch || return 1 |
pascal@5552 | 25 touch done.$patch |
pascal@2134 | 26 fi |
pascal@2137 | 27 sed -i 's|./Install|sh -x Install|' Makefile* |
pankso@10656 | 28 |
pankso@10656 | 29 ./configure \ |
pankso@10656 | 30 --prefix=/usr \ |
pankso@10656 | 31 --sysconfdir=/etc \ |
pankso@10656 | 32 --mandir=/usr/share/man \ |
pankso@10656 | 33 --infodir=/usr/share/info \ |
pankso@10656 | 34 $CONFIGURE_ARGS && |
pascal@6410 | 35 make -j 1 && |
slaxemulator@8453 | 36 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1 |
pankso@10656 | 37 |
slaxemulator@9533 | 38 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \ |
slaxemulator@9533 | 39 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start |
pascal@2137 | 40 do |
pascal@2136 | 41 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i |
pascal@2136 | 42 done |
slaxemulator@9533 | 43 for file in $(ls $DESTDIR/usr/bin); do |
slaxemulator@9533 | 44 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1 |
pascal@2136 | 45 done |
pascal@2134 | 46 } |
pascal@2134 | 47 |
pascal@2134 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2134 | 49 genpkg_rules() |
pascal@2134 | 50 { |
pascal@2134 | 51 cp -a $_pkg/usr $fs |
pascal@2134 | 52 } |