wok view erlang/receipt @ rev 9558

Fixed docbook-xsl-ns.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Apr 10 10:49:52 2011 +0000 (2011-04-10)
parents 397676d92cdb
children ecc22c518136
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="R12B-5"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="otp_src"
9 TARBALL="${SOURCE}_$VERSION.tar.gz"
10 WEB_SITE="http://$PACKAGE.org/"
11 WGET_URL="${WEB_SITE}download/$TARBALL"
12 DEPENDS="ncurses libunixODBC"
13 BUILD_DEPENDS="perl ncurses-dev openssl openssl-dev xorg-dev flex m4 java-jdk"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 patch=${SOURCE}_${VERSION}_OTP-7738.patch
19 cd $src
20 if [ ! -f done.$patch ]; then
21 patch -p1 < $stuff/$patch || return 1
22 touch done.$patch
23 fi
24 export LANG=C
25 sed -i 's|./Install|sh -x Install|' Makefile*
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make -j 1 &&
29 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
30 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
31 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
32 do
33 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
34 done
35 for file in $(ls $DESTDIR/usr/bin); do
36 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
37 done
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $_pkg/usr $fs
44 }