summaryrefslogtreecommitdiff
path: root/community/erlang
diff options
context:
space:
mode:
Diffstat (limited to 'community/erlang')
-rw-r--r--community/erlang/PKGBUILD74
1 files changed, 27 insertions, 47 deletions
diff --git a/community/erlang/PKGBUILD b/community/erlang/PKGBUILD
index 9be8a5098..7f26d5117 100644
--- a/community/erlang/PKGBUILD
+++ b/community/erlang/PKGBUILD
@@ -1,72 +1,52 @@
-# $Id: PKGBUILD 77628 2012-10-13 11:41:57Z allan $
-# Maintainer: Lukas Fleischer <archlinux@cryptocrack.de>
+# $Id: PKGBUILD 79610 2012-11-08 22:16:13Z lfleischer $
+# Maintainer: Lukas Fleischer <archlinux@cryptocrack.de>
# Contributor: Vesa Kaihlavirta <vesa@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
# Contributor: Tom Burdick <thomas.burdick@wrightwoodtech.com>
+# Contributor: Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
pkgname=erlang
-pkgver=R15B01
-pkgrel=2
-pkgdesc='A small concurrent functional programming language developed by Ericsson.'
+pkgver=R15B02
+pkgrel=1
+pkgdesc='A general-purpose concurrent functional programming language developed by Ericsson'
arch=(i686 x86_64)
-url='http://www.erlang.org/index.html'
+url='http://www.erlang.org'
license=('custom')
depends=('ncurses' 'glibc')
-makedepends=('java-environment' 'perl' 'openssl' 'wxgtk' 'unixodbc>=2.3.1' 'mesa' 'glu')
+makedepends=('java-environment' 'perl' 'openssl' 'wxgtk' 'unixodbc' 'mesa')
optdepends=('wxgtk: for wx support'
- 'glu: for wx support'
- 'unixodbc: database'
+ 'mesa: for wx support'
+ 'unixodbc: for database support'
'java-environment: for Java support')
-options=('!makeflags')
-source=("http://www.erlang.org/download/otp_src_${pkgver/./-}.tar.gz"
- "http://www.erlang.org/download/otp_doc_man_${pkgver/./-}.tar.gz")
-md5sums=('f12d00f6e62b36ad027d6c0c08905fad'
- 'd87412c2a1e6005bbe29dfe642a9ca20')
+source=("http://www.erlang.org/download/otp_src_$pkgver.tar.gz"
+ "http://www.erlang.org/download/otp_doc_man_$pkgver.tar.gz")
+md5sums=('ccbe5e032a2afe2390de8913bfe737a1'
+ '974020ba533242fca759a7f5eaf628e5')
build() {
- cd "$srcdir/otp_src_${pkgver/./-}"
+ cd "$srcdir/otp_src_$pkgver"
- export ERTSVERSION=$(sed -n 's/^VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < erts/vsn.mk)
- export ERLINTERFACEVERSION=$(sed -n 's/^EI_VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < \
- lib/erl_interface/vsn.mk)
-
- sed -i '/SSL_DYNAMIC_ONLY=/s:no:yes:' erts/configure
-
- CFLAGS="${CFLAGS} -fno-strict-aliasing" ./configure --prefix=/usr --enable-smp-support \
- --enable-threads
+ ./configure --prefix=/usr --enable-smp-support
make
}
package() {
- cd "$srcdir/otp_src_${pkgver/./-}"
-
- make INSTALL_PREFIX="$pkgdir" install
-
- # fix prefix
- cd "$pkgdir/usr/lib/erlang"
- sed -i "s#$pkgdir##" bin/erl bin/start "erts-${ERTSVERSION}/bin/erl" \
- "erts-${ERTSVERSION}/bin/start" releases/RELEASES
+ cd "$srcdir/otp_src_$pkgver"
- # fix symlinks
- cd bin/
- ln -sf "../erts-${ERTSVERSION}/bin/epmd"
+ make DESTDIR="$pkgdir" install
- cd "$pkgdir/usr/bin"
- for file in *; do
- ln -sfv "../lib/erlang/bin/$file"
- done
-
- ln -s "../lib/erlang/lib/erl_interface-${ERLINTERFACEVERSION}/bin/erl_call" \
- "$pkgdir/usr/bin/erl_call"
-
- # install documentation
+ # Install documentation
install -d "$pkgdir/usr/share/doc/erlang"
- install -Dm0644 "$srcdir"/{COPYRIGHT,PR.template,README} "$pkgdir/usr/share/doc/erlang"
+ install -m0644 "$srcdir/otp_src_$pkgver"/README.md "$srcdir"/{README,COPYRIGHT} \
+ "$pkgdir/usr/share/doc/erlang"
- # install man pages
+ # Install compressed man pages
+ for page in "$srcdir/man/man?/*"; do
+ gzip $page
+ done
cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang"
- # install license
- install -Dm644 "$srcdir/otp_src_${pkgver/./-}/EPLICENCE" \
+ # Install license
+ install -Dm0644 "$srcdir/otp_src_$pkgver/EPLICENCE" \
"$pkgdir/usr/share/licenses/$pkgname/EPLICENCE"
}