wok-6.x view erlang/receipt @ rev 24448

firefox-official*: disable update by policy
author Hans-G?nter Theisgen
date Tue Feb 15 10:43:08 2022 +0100 (2022-02-15)
parents a3c45ab9082e
children 08ef47c67999
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="22.2"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Erlang Public Licence"
9 WEB_SITE="https://www.erlang.org/"
11 #SOURCE="OTP"
12 #TARBALL="${SOURCE}-$VERSION.tar.gz"
13 #WGET_URL="https://github.com/$PACKAGE/otp/archive/$TARBALL"
14 TARBALL="$PACKAGE-$VERSION.tar.gz"
15 WGET_URL="${WEB_SITE}download/otp_src_$VERSION.tar.gz"
17 DEPENDS="libunixODBC ncurses openssl"
18 BUILD_DEPENDS="autoconf gcc+gcj icedtea6-jdk libxslt ncurses-dev
19 openssl-dev perl unixODBC-dev wxWidgets-dev"
21 current_version()
22 {
23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
24 sed '/otp_src_[0-9]/!d;/tar/!d;/-rc/d;s|.*otp_src_\(.*\).tar.*".*|\1|' | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export LDFLAGS="$LDFLAGS -ltinfo"
31 export LANG=C
33 sed '/ lib\/jinterface/s,for,[ ! -d lib/jinterface/priv ] || &,' -i Makefile*
35 ./otp_build autoconf &&
36 ./configure \
37 --prefix=/usr \
38 --sysconfdir=/etc \
39 --mandir=/usr/share/man \
40 --infodir=/usr/share/info \
41 $CONFIGURE_ARGS &&
42 make 2>&1 | sed 's|: No such file|: no such file|' &&
43 make INSTALL_PREFIX=$DESTDIR install || return 1
45 for i in $DESTDIR/usr/lib/erlang/*/bin/erl \
46 $DESTDIR/usr/lib/erlang/bin/erl \
47 $DESTDIR/usr/lib/erlang/*/bin/start \
48 $DESTDIR/usr/lib/erlang/bin/start
49 do
50 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
51 done
53 for file in $(ls $DESTDIR/usr/bin)
54 do
55 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
56 done
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 cp -a $install/usr $fs
63 }