wok-current annotate erlang/receipt @ rev 16812

itstool: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 10 09:44:21 2014 +0200 (2014-07-10)
parents bcaada81a314
children c7c3567bd8d4
rev   line source
pascal@2134 1 # SliTaz package receipt.
pascal@2134 2
pascal@2134 3 PACKAGE="erlang"
pascal@12752 4 VERSION="R15B01"
pascal@2134 5 CATEGORY="development"
pascal@2134 6 SHORT_DESC="Erlang programming language."
pascal@2134 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15588 8 LICENSE="other"
pascal@2134 9 SOURCE="otp_src"
pascal@2134 10 TARBALL="${SOURCE}_$VERSION.tar.gz"
pascal@2134 11 WEB_SITE="http://$PACKAGE.org/"
pascal@2134 12 WGET_URL="${WEB_SITE}download/$TARBALL"
pankso@10656 13
pankso@10656 14 DEPENDS="ncurses openssl libunixODBC"
pankso@10659 15 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk"
pascal@2134 16
pascal@2134 17 # Rules to configure and make the package.
pascal@2134 18 compile_rules()
pascal@2134 19 {
pankso@10656 20 export LANG=C
pankso@10656 21
pascal@2134 22 cd $src
pascal@2137 23 sed -i 's|./Install|sh -x Install|' Makefile*
pankso@10656 24
pankso@10656 25 ./configure \
pankso@10656 26 --prefix=/usr \
pankso@10656 27 --sysconfdir=/etc \
pankso@10656 28 --mandir=/usr/share/man \
pankso@10656 29 --infodir=/usr/share/info \
pankso@10656 30 $CONFIGURE_ARGS &&
pascal@6410 31 make -j 1 &&
slaxemulator@8453 32 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
pankso@10656 33
slaxemulator@9533 34 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
slaxemulator@9533 35 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
pascal@2137 36 do
pascal@2136 37 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
pascal@2136 38 done
slaxemulator@9533 39 for file in $(ls $DESTDIR/usr/bin); do
slaxemulator@9533 40 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
pascal@2136 41 done
pascal@2134 42 }
pascal@2134 43
pascal@2134 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2134 45 genpkg_rules()
pascal@2134 46 {
pascal@15588 47 cp -a $install/usr $fs
pascal@2134 48 }