wok annotate erlang/receipt @ rev 24089
erlang: skip java files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 12 09:17:44 2021 +0000 (2021-07-12) |
parents | a3c45ab9082e |
children | 08ef47c67999 |
rev | line source |
---|---|
pascal@2134 | 1 # SliTaz package receipt. |
pascal@2134 | 2 |
pascal@2134 | 3 PACKAGE="erlang" |
Hans-G?nter@22703 | 4 VERSION="22.2" |
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@22703 | 11 #SOURCE="OTP" |
Hans-G?nter@22703 | 12 #TARBALL="${SOURCE}-$VERSION.tar.gz" |
Hans-G?nter@22703 | 13 #WGET_URL="https://github.com/$PACKAGE/otp/archive/$TARBALL" |
Hans-G?nter@22703 | 14 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22703 | 15 WGET_URL="${WEB_SITE}download/otp_src_$VERSION.tar.gz" |
pankso@10656 | 16 |
Hans-G?nter@22703 | 17 DEPENDS="libunixODBC ncurses openssl" |
Hans-G?nter@22703 | 18 BUILD_DEPENDS="autoconf gcc+gcj icedtea6-jdk libxslt ncurses-dev |
Hans-G?nter@22703 | 19 openssl-dev perl unixODBC-dev wxWidgets-dev" |
pascal@2134 | 20 |
pascal@24083 | 21 current_version() |
pascal@24083 | 22 { |
pascal@24083 | 23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24083 | 24 sed '/otp_src_[0-9]/!d;/tar/!d;/-rc/d;s|.*otp_src_\(.*\).tar.*".*|\1|' | sort -Vr | sed q |
pascal@24083 | 25 } |
pascal@24083 | 26 |
pascal@2134 | 27 # Rules to configure and make the package. |
pascal@2134 | 28 compile_rules() |
pascal@2134 | 29 { |
pascal@17673 | 30 export LDFLAGS="$LDFLAGS -ltinfo" |
pankso@10656 | 31 export LANG=C |
pankso@10656 | 32 |
pascal@24089 | 33 sed '/ lib\/jinterface/s,for,[ ! -d lib/jinterface/priv ] || &,' -i Makefile* |
pankso@10656 | 34 |
Hans-G?nter@20875 | 35 ./otp_build autoconf && |
Hans-G?nter@22703 | 36 ./configure \ |
Hans-G?nter@22703 | 37 --prefix=/usr \ |
Hans-G?nter@22703 | 38 --sysconfdir=/etc \ |
Hans-G?nter@22703 | 39 --mandir=/usr/share/man \ |
Hans-G?nter@22703 | 40 --infodir=/usr/share/info \ |
pankso@10656 | 41 $CONFIGURE_ARGS && |
Hans-G?nter@22703 | 42 make 2>&1 | sed 's|: No such file|: no such file|' && |
Hans-G?nter@22703 | 43 make INSTALL_PREFIX=$DESTDIR install || return 1 |
pankso@10656 | 44 |
Hans-G?nter@22703 | 45 for i in $DESTDIR/usr/lib/erlang/*/bin/erl \ |
Hans-G?nter@22703 | 46 $DESTDIR/usr/lib/erlang/bin/erl \ |
Hans-G?nter@22703 | 47 $DESTDIR/usr/lib/erlang/*/bin/start \ |
Hans-G?nter@22703 | 48 $DESTDIR/usr/lib/erlang/bin/start |
Hans-G?nter@22703 | 49 do |
pascal@2136 | 50 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i |
Hans-G?nter@22703 | 51 done |
Hans-G?nter@22703 | 52 |
Hans-G?nter@22703 | 53 for file in $(ls $DESTDIR/usr/bin) |
Hans-G?nter@22703 | 54 do |
slaxemulator@9533 | 55 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1 |
Hans-G?nter@22703 | 56 done |
pascal@2134 | 57 } |
pascal@2134 | 58 |
pascal@2134 | 59 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2134 | 60 genpkg_rules() |
pascal@2134 | 61 { |
Hans-G?nter@22703 | 62 cp -a $install/usr $fs |
pascal@2134 | 63 } |