wok view erlang/receipt @ rev 24518

updated erlang (22.2 -> 24.2.1)
author Hans-G?nter Theisgen
date Tue Feb 22 11:07:44 2022 +0100 (2022-02-22)
parents 254e01fe513b
children bc2b9d9bed6f
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="24.2.1"
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"
15 DEPENDS="libunixODBC ncurses openssl"
16 BUILD_DEPENDS="autoconf gcc+gcj icedtea6-jdk libxslt ncurses-dev
17 openssl-dev perl unixODBC-dev wxWidgets-dev"
19 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed '/otp_src_[0-9]/!d;/tar/!d;/-rc/d;s|.*otp_src_\(.*\).tar.*".*|\1|' | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -ltinfo"
29 export LANG=C
31 sed '/ lib\/jinterface/s,for,[ ! -d lib/jinterface/priv ] || &,' -i Makefile*
33 ./otp_build autoconf &&
34 ./configure \
35 --prefix=/usr \
36 --sysconfdir=/etc \
37 --mandir=/usr/share/man \
38 --infodir=/usr/share/info \
39 $CONFIGURE_ARGS &&
40 make &&
41 make INSTALL_PREFIX=$DESTDIR install || return 1
43 for i in $DESTDIR/usr/lib/erlang/*/bin/erl \
44 $DESTDIR/usr/lib/erlang/bin/erl \
45 $DESTDIR/usr/lib/erlang/*/bin/start \
46 $DESTDIR/usr/lib/erlang/bin/start
47 do
48 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
49 done
51 for file in $(ls $DESTDIR/usr/bin)
52 do
53 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
54 done
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 cp -a $install/usr $fs
61 }