wok-6.x rev 2134
Add erlang
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 03 11:36:12 2009 +0000 (2009-02-03) |
parents | c391a346d4b6 |
children | 337e51458e0f |
files | erlang/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/erlang/receipt Tue Feb 03 11:36:12 2009 +0000 1.3 @@ -0,0 +1,38 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="erlang" 1.7 +VERSION="R12B-5" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Erlang programming language." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +SOURCE="otp_src" 1.12 +TARBALL="${SOURCE}_$VERSION.tar.gz" 1.13 +WEB_SITE="http://$PACKAGE.org/" 1.14 +WGET_URL="${WEB_SITE}download/$TARBALL" 1.15 +BUILD_DEPENDS="perl ncurses-dev openssl-dev xorg-dev flex" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + patch=${SOURCE}_${VERSION}_OTP-7738.patch 1.21 + /home/slitaz/wok/erlang/otp_src-R12B-5 1.22 + mv ${SOURCE}_$VERSION $src 1.23 + cd $src 1.24 + if [ -f $patch ]; then 1.25 + wget http://www.erlang.org/download/patches/$patch 1.26 + patch -p1 < $patch 1.27 + fi 1.28 + export LANG=C 1.29 + sed -i 's|./Install|sh -x ./Install|' Makefile* 1.30 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.31 + --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && 1.32 + make && 1.33 + make INSTALL_PREFIX=$PWD/_pkg install 1.34 +} 1.35 + 1.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 +genpkg_rules() 1.38 +{ 1.39 + cp -a $_pkg/usr $fs 1.40 +} 1.41 +