summaryrefslogtreecommitdiff
path: root/community-testing/parrot
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-11 00:01:18 +0000
committerroot <root@rshg054.dnsready.net>2012-04-11 00:01:18 +0000
commit04aff5f70cb7c04abe06ca8eaf8261cbb0eeb378 (patch)
tree4935a4f0959f9560df7fba4989a0de1dc361884e /community-testing/parrot
parent223ca251f3ce07eb5484be845e631d6ca645b263 (diff)
Wed Apr 11 00:01:18 UTC 2012
Diffstat (limited to 'community-testing/parrot')
-rw-r--r--community-testing/parrot/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community-testing/parrot/PKGBUILD b/community-testing/parrot/PKGBUILD
new file mode 100644
index 000000000..640e7a740
--- /dev/null
+++ b/community-testing/parrot/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 69108 2012-04-09 13:50:17Z tdziedzic $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: mpie <michael.kyne-phillips1@ntlworld.com>
+
+pkgname=parrot
+pkgver=4.2.0
+#_rel=stable
+_rel=devel
+pkgrel=1
+pkgdesc="Standalone VM that can execute bytecode compiled dynamic languages"
+arch=('x86_64' 'i686')
+url="http://www.parrotcode.org/"
+license=('GPL')
+depends=('icu' 'openssl' 'libffi')
+makedepends=('perl-json')
+optdepends=('freeglut')
+options=(!makeflags)
+source=("ftp://ftp.parrot.org/pub/parrot/releases/$_rel/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('69ee93d9f81babcff67b747cc614358958a32f274e407b65771ca5a056d4c3d4')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ sed -i 's#auto::sha1##' lib/Parrot/Configure/Step/List.pm
+ sed -i 's#auto::git_describe##' lib/Parrot/Configure/Step/List.pm
+
+ perl Configure.pl --prefix=/usr \
+ --parrot_is_shared \
+ --disable-rpath
+
+ find -type f -name Makefile | while read F; do
+ grep "$srcdir" $F && sed -i \
+ "s#-Wl,-rpath=$srcdir/$pkgname-$pkgver/blib/lib##" $F
+ grep "$srcdir" $F && sed -i \
+ "s#-rpath=$srcdir/$pkgname-$pkgver/blib/lib##" $F
+ done
+
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$(pwd)/blib/lib"
+ make all parrot_utils docs html
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install-dev
+
+ sed -i "s#$srcdir#/usr/src#" \
+ $pkgdir/usr/lib/parrot/$pkgver/tools/lib/Parrot/Config/Generated.pm
+}