wok view erlang/receipt @ rev 25626

opendkim: add opendkim.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 09 09:26:20 2023 +0000 (12 months ago)
parents bc2b9d9bed6f
children
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/erlang/otp/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/[A-Za-z-]*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export LDFLAGS="$LDFLAGS -ltinfo"
30 export LANG=C
32 sed '/ lib\/jinterface/s,for,[ ! -d lib/jinterface/priv ] || &,' -i Makefile*
34 ./otp_build autoconf &&
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --mandir=/usr/share/man \
39 --infodir=/usr/share/info \
40 $CONFIGURE_ARGS &&
41 make &&
42 make INSTALL_PREFIX=$DESTDIR install || return 1
44 for i in $DESTDIR/usr/lib/erlang/*/bin/erl \
45 $DESTDIR/usr/lib/erlang/bin/erl \
46 $DESTDIR/usr/lib/erlang/*/bin/start \
47 $DESTDIR/usr/lib/erlang/bin/start
48 do
49 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
50 done
52 for file in $(ls $DESTDIR/usr/bin)
53 do
54 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
55 done
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 cp -a $install/usr $fs
62 }