wok annotate erlang/receipt @ rev 9470
Remove some uneeded strips (thoses ones are handled by Tazwok)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Apr 04 01:29:52 2011 +0200 (2011-04-04) |
parents | c8b38336a4fe |
children | c3132f55cc4f |
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" |
pascal@5000 | 12 DEPENDS="ncurses libunixODBC" |
pascal@9294 | 13 BUILD_DEPENDS="perl ncurses-dev openssl openssl-dev xorg-dev flex m4 java-jdk" |
pascal@2134 | 14 |
pascal@2134 | 15 # Rules to configure and make the package. |
pascal@2134 | 16 compile_rules() |
pascal@2134 | 17 { |
pascal@2134 | 18 patch=${SOURCE}_${VERSION}_OTP-7738.patch |
pascal@2134 | 19 cd $src |
pascal@5552 | 20 if [ ! -f done.$patch ]; then |
slaxemulator@9289 | 21 patch -p1 < $stuff/$patch || return 1 |
pascal@5552 | 22 touch done.$patch |
pascal@2134 | 23 fi |
pascal@2134 | 24 export LANG=C |
pascal@2137 | 25 sed -i 's|./Install|sh -x Install|' Makefile* |
pascal@2134 | 26 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@2134 | 27 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@6410 | 28 make -j 1 && |
slaxemulator@8453 | 29 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1 |
pascal@2137 | 30 for i in _pkg/usr/lib/erlang/*/bin/erl _pkg/usr/lib/erlang/bin/erl \ |
pascal@2137 | 31 _pkg/usr/lib/erlang/*/bin/start _pkg/usr/lib/erlang/bin/start |
pascal@2137 | 32 do |
pascal@2136 | 33 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i |
pascal@2136 | 34 done |
pascal@2136 | 35 for i in _pkg/usr/bin/* ; do |
pascal@2136 | 36 ln -sf $(readlink $i | sed 's|.*/_pkg||') $i |
pascal@2136 | 37 done |
pascal@2134 | 38 } |
pascal@2134 | 39 |
pascal@2134 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2134 | 41 genpkg_rules() |
pascal@2134 | 42 { |
pascal@2134 | 43 cp -a $_pkg/usr $fs |
pascal@2134 | 44 } |
pascal@2134 | 45 |