[arch-commits] Commit in erlang/repos (4 files)

Ionut Biru ibiru at archlinux.org
Fri Oct 14 19:44:00 UTC 2011


    Date: Friday, October 14, 2011 @ 15:44:00
  Author: ibiru
Revision: 140452

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  erlang/repos/testing-i686/
  erlang/repos/testing-i686/PKGBUILD
    (from rev 140451, erlang/trunk/PKGBUILD)
  erlang/repos/testing-x86_64/
  erlang/repos/testing-x86_64/PKGBUILD
    (from rev 140451, erlang/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   62 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   62 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)

Copied: erlang/repos/testing-i686/PKGBUILD (from rev 140451, erlang/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2011-10-14 19:44:00 UTC (rev 140452)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Sarah Hay <sarahhay at mb.sympatico.ca>
+# Contributor: Tom Burdick <thomas.burdick at wrightwoodtech.com>
+
+pkgname=erlang
+pkgver=R14B04
+pkgrel=1
+pkgdesc="A small concurrent functional programming language developed by Ericsson."
+arch=(i686 x86_64)
+url="http://www.erlang.org/index.html"
+license=('custom')
+depends=('ncurses' 'glibc')
+makedepends=('java-environment' 'perl' 'openssl' 'wxgtk' 'unixodbc' 'mesa')
+optdepends=('wxgtk: for wx support' 'unixodbc: database')
+
+options=('!makeflags')
+source=(http://www.erlang.org/download/otp_src_${pkgver/./-}.tar.gz
+	http://www.erlang.org/download/otp_doc_man_${pkgver/./-}.tar.gz)
+
+build() {
+  cd "$srcdir/otp_src_${pkgver/./-}"
+  ERTSVERSION=$(sed -n 's/^VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < erts/vsn.mk)
+  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 -enable-native-libs
+  make
+  make INSTALL_PREFIX="$pkgdir" install
+
+# fix prefix
+  cd "$pkgdir"
+  for i in usr/lib/erlang/bin/erl \
+      usr/lib/erlang/bin/start \
+      usr/lib/erlang/erts-${ERTSVERSION}/bin/erl \
+      usr/lib/erlang/erts-${ERTSVERSION}/bin/start \
+      usr/lib/erlang/releases/RELEASES ;do
+    sed -i "s#$pkgdir##" $i
+  done
+
+# fix symlinks
+  cd "$pkgdir/usr/lib/erlang/bin"
+  ln -sf ../erts-${ERTSVERSION}/bin/epmd
+
+  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 -d "$pkgdir/usr/share/doc/erlang"
+  install -D -m644 "$srcdir"/{COPYRIGHT,PR.template,README} "$pkgdir/usr/share/doc/erlang"
+  cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang"
+
+  install -Dm644 "$srcdir/otp_src_${pkgver/./-}/EPLICENCE" "$pkgdir/usr/share/licenses/$pkgname/EPLICENCE"
+
+}
+md5sums=('4b469729f103f52702bfb1fb24529dc0'
+         'f31e72518daae4007f595c0b224dd59f')

Copied: erlang/repos/testing-x86_64/PKGBUILD (from rev 140451, erlang/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2011-10-14 19:44:00 UTC (rev 140452)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Sarah Hay <sarahhay at mb.sympatico.ca>
+# Contributor: Tom Burdick <thomas.burdick at wrightwoodtech.com>
+
+pkgname=erlang
+pkgver=R14B04
+pkgrel=1
+pkgdesc="A small concurrent functional programming language developed by Ericsson."
+arch=(i686 x86_64)
+url="http://www.erlang.org/index.html"
+license=('custom')
+depends=('ncurses' 'glibc')
+makedepends=('java-environment' 'perl' 'openssl' 'wxgtk' 'unixodbc' 'mesa')
+optdepends=('wxgtk: for wx support' 'unixodbc: database')
+
+options=('!makeflags')
+source=(http://www.erlang.org/download/otp_src_${pkgver/./-}.tar.gz
+	http://www.erlang.org/download/otp_doc_man_${pkgver/./-}.tar.gz)
+
+build() {
+  cd "$srcdir/otp_src_${pkgver/./-}"
+  ERTSVERSION=$(sed -n 's/^VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < erts/vsn.mk)
+  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 -enable-native-libs
+  make
+  make INSTALL_PREFIX="$pkgdir" install
+
+# fix prefix
+  cd "$pkgdir"
+  for i in usr/lib/erlang/bin/erl \
+      usr/lib/erlang/bin/start \
+      usr/lib/erlang/erts-${ERTSVERSION}/bin/erl \
+      usr/lib/erlang/erts-${ERTSVERSION}/bin/start \
+      usr/lib/erlang/releases/RELEASES ;do
+    sed -i "s#$pkgdir##" $i
+  done
+
+# fix symlinks
+  cd "$pkgdir/usr/lib/erlang/bin"
+  ln -sf ../erts-${ERTSVERSION}/bin/epmd
+
+  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 -d "$pkgdir/usr/share/doc/erlang"
+  install -D -m644 "$srcdir"/{COPYRIGHT,PR.template,README} "$pkgdir/usr/share/doc/erlang"
+  cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang"
+
+  install -Dm644 "$srcdir/otp_src_${pkgver/./-}/EPLICENCE" "$pkgdir/usr/share/licenses/$pkgname/EPLICENCE"
+
+}
+md5sums=('4b469729f103f52702bfb1fb24529dc0'
+         'f31e72518daae4007f595c0b224dd59f')




More information about the arch-commits mailing list