wok annotate erlang/receipt @ rev 2136

erlang: fix paths
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 03 12:05:12 2009 +0000 (2009-02-03)
parents 18b70bb26da3
children 9ef21c113c01
rev   line source
pascal@2134 1 # SliTaz package receipt.
pascal@2134 2
pascal@2134 3 PACKAGE="erlang"
pascal@2134 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@2136 12 DEPENDS="ncurses"
pascal@2134 13 BUILD_DEPENDS="perl ncurses-dev openssl-dev xorg-dev flex"
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 /home/slitaz/wok/erlang/otp_src-R12B-5
pascal@2134 20 mv ${SOURCE}_$VERSION $src
pascal@2134 21 cd $src
pascal@2134 22 if [ -f $patch ]; then
pascal@2134 23 wget http://www.erlang.org/download/patches/$patch
pascal@2134 24 patch -p1 < $patch
pascal@2134 25 fi
pascal@2134 26 export LANG=C
pascal@2134 27 sed -i 's|./Install|sh -x ./Install|' Makefile*
pascal@2134 28 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@2134 29 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@2134 30 make &&
pascal@2136 31 make INSTALL_PREFIX=$PWD/_pkg install || return 1
pascal@2136 32 for i in _pkg/usr/lib/erlang/erts-*/bin/erl \
pascal@2136 33 _pkg/usr/lib/erlang/erts-*/bin/start ; do
pascal@2136 34 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
pascal@2136 35 done
pascal@2136 36 for i in _pkg/usr/bin/* ; do
pascal@2136 37 ln -sf $(readlink $i | sed 's|.*/_pkg||') $i
pascal@2136 38 done
pascal@2134 39 }
pascal@2134 40
pascal@2134 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2134 42 genpkg_rules()
pascal@2134 43 {
pascal@2134 44 cp -a $_pkg/usr $fs
pascal@2134 45 }
pascal@2134 46