wok annotate erlang/receipt @ rev 24800
updated libidn and libidn-dev (1.35 -> 1.38)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 22 09:47:07 2022 +0100 (2022-03-22) |
parents | 08ef47c67999 |
children | 20ad21d5532c |
rev | line source |
---|---|
pascal@2134 | 1 # SliTaz package receipt. |
pascal@2134 | 2 |
pascal@2134 | 3 PACKAGE="erlang" |
Hans-G?nter@24518 | 4 VERSION="24.2.1" |
pascal@2134 | 5 CATEGORY="development" |
pascal@2134 | 6 SHORT_DESC="Erlang programming language." |
pascal@2134 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
Hans-G?nter@20875 | 8 LICENSE="Erlang Public Licence" |
Hans-G?nter@22703 | 9 WEB_SITE="https://www.erlang.org/" |
Hans-G?nter@20875 | 10 |
Hans-G?nter@24518 | 11 SOURCE="OTP" |
Hans-G?nter@24518 | 12 TARBALL="${SOURCE}-$VERSION.tar.gz" |
Hans-G?nter@24518 | 13 WGET_URL="https://github.com/$PACKAGE/otp/archive/$TARBALL" |
pankso@10656 | 14 |
Hans-G?nter@22703 | 15 DEPENDS="libunixODBC ncurses openssl" |
Hans-G?nter@22703 | 16 BUILD_DEPENDS="autoconf gcc+gcj icedtea6-jdk libxslt ncurses-dev |
Hans-G?nter@22703 | 17 openssl-dev perl unixODBC-dev wxWidgets-dev" |
pascal@2134 | 18 |
pascal@24614 | 19 # What is the latest version available today? |
pascal@24083 | 20 current_version() |
pascal@24083 | 21 { |
pascal@24614 | 22 wget -O - https://github.com/erlang/otp/releases 2>/dev/null | \ |
pascal@24614 | 23 sed '/archive.*tar/!d;s|.*/[A-Za-z-]*\(.*\).tar.*|\1|;q' |
pascal@24083 | 24 } |
pascal@24083 | 25 |
pascal@2134 | 26 # Rules to configure and make the package. |
pascal@2134 | 27 compile_rules() |
pascal@2134 | 28 { |
pascal@17673 | 29 export LDFLAGS="$LDFLAGS -ltinfo" |
pankso@10656 | 30 export LANG=C |
pankso@10656 | 31 |
pascal@24089 | 32 sed '/ lib\/jinterface/s,for,[ ! -d lib/jinterface/priv ] || &,' -i Makefile* |
pankso@10656 | 33 |
Hans-G?nter@20875 | 34 ./otp_build autoconf && |
Hans-G?nter@22703 | 35 ./configure \ |
Hans-G?nter@22703 | 36 --prefix=/usr \ |
Hans-G?nter@22703 | 37 --sysconfdir=/etc \ |
Hans-G?nter@22703 | 38 --mandir=/usr/share/man \ |
Hans-G?nter@22703 | 39 --infodir=/usr/share/info \ |
pankso@10656 | 40 $CONFIGURE_ARGS && |
Hans-G?nter@24518 | 41 make && |
Hans-G?nter@22703 | 42 make INSTALL_PREFIX=$DESTDIR install || return 1 |
Hans-G?nter@24518 | 43 |
Hans-G?nter@22703 | 44 for i in $DESTDIR/usr/lib/erlang/*/bin/erl \ |
Hans-G?nter@22703 | 45 $DESTDIR/usr/lib/erlang/bin/erl \ |
Hans-G?nter@22703 | 46 $DESTDIR/usr/lib/erlang/*/bin/start \ |
Hans-G?nter@22703 | 47 $DESTDIR/usr/lib/erlang/bin/start |
Hans-G?nter@22703 | 48 do |
pascal@2136 | 49 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i |
Hans-G?nter@22703 | 50 done |
Hans-G?nter@22703 | 51 |
Hans-G?nter@22703 | 52 for file in $(ls $DESTDIR/usr/bin) |
Hans-G?nter@22703 | 53 do |
slaxemulator@9533 | 54 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1 |
Hans-G?nter@22703 | 55 done |
pascal@2134 | 56 } |
pascal@2134 | 57 |
pascal@2134 | 58 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2134 | 59 genpkg_rules() |
pascal@2134 | 60 { |
Hans-G?nter@22703 | 61 cp -a $install/usr $fs |
pascal@2134 | 62 } |