wok-next 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 | 337e51458e0f |
children | 9ef21c113c01 |
files | erlang/receipt |
line diff
1.1 --- a/erlang/receipt Tue Feb 03 11:36:29 2009 +0000 1.2 +++ b/erlang/receipt Tue Feb 03 12:05:12 2009 +0000 1.3 @@ -9,6 +9,7 @@ 1.4 TARBALL="${SOURCE}_$VERSION.tar.gz" 1.5 WEB_SITE="http://$PACKAGE.org/" 1.6 WGET_URL="${WEB_SITE}download/$TARBALL" 1.7 +DEPENDS="ncurses" 1.8 BUILD_DEPENDS="perl ncurses-dev openssl-dev xorg-dev flex" 1.9 1.10 # Rules to configure and make the package. 1.11 @@ -27,7 +28,14 @@ 1.12 ./configure --prefix=/usr --infodir=/usr/share/info \ 1.13 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && 1.14 make && 1.15 - make INSTALL_PREFIX=$PWD/_pkg install 1.16 + make INSTALL_PREFIX=$PWD/_pkg install || return 1 1.17 + for i in _pkg/usr/lib/erlang/erts-*/bin/erl \ 1.18 + _pkg/usr/lib/erlang/erts-*/bin/start ; do 1.19 + sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i 1.20 + done 1.21 + for i in _pkg/usr/bin/* ; do 1.22 + ln -sf $(readlink $i | sed 's|.*/_pkg||') $i 1.23 + done 1.24 } 1.25 1.26 # Rules to gen a SliTaz package suitable for Tazpkg.