summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormschubert2015-06-12 12:08:35 +0100
committermschubert2015-06-12 12:08:35 +0100
commit3649356fc5a3eb3b3b801f1b5371057b0eabb749 (patch)
tree9f1f4ec833ee0d32d68f1c8af6ada7b16282877e
downloadaur-3649356fc5a3eb3b3b801f1b5371057b0eabb749.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD40
-rw-r--r--site.patch13
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..01f3769608e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ironpython-git
+ pkgdesc = Python implementation for the .NET framework
+ pkgver = 2.7.2.a2.471.g7be8b73
+ pkgrel = 1
+ url = http://ironpython.net
+ arch = any
+ license = Apache
+ makedepends = git
+ depends = mono
+ options = !strip
+ options = emptydirs
+ options = libtool
+ source = ironpython-git::git://github.com/IronLanguages/main.git
+ source = site.patch
+ md5sums = SKIP
+ md5sums = dd484ca6dfe03277d8a13e7b1cfe6662
+
+pkgname = ironpython-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..880ea18a86d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Michael Schubert <mschu.dev at gmail>
+
+pkgname=ironpython-git
+pkgver=2.7.2.a2.471.g7be8b73
+pkgrel=1
+pkgdesc="Python implementation for the .NET framework"
+arch=("any")
+url="http://ironpython.net"
+license=("Apache")
+depends=('mono')
+makedepends=('git')
+options=('!strip' 'emptydirs' 'libtool')
+source=($pkgname::git://github.com/IronLanguages/main.git
+ site.patch)
+md5sums=('SKIP'
+ 'dd484ca6dfe03277d8a13e7b1cfe6662')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --always | sed 's|-|.|g;s|^ipy\.||'
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ sed -i "/NoWarn/s|444;||" Solutions/Common.proj
+ xbuild Solutions/IronPython.sln /p:Mono=true /p:Configuration="Release"
+}
+
+package() {
+ mkdir -p "$pkgdir/opt/ipy" "$pkgdir/usr/bin"
+ cp -r $srcdir/$pkgname/bin/Release/* "$pkgdir/opt/ipy"
+ for bin in ipy ipy64 ipyw ipyw64; do
+ echo -e "#!/bin/sh\nmono /opt/ipy/$bin.exe $*" > "$pkgdir/usr/bin/$bin"
+ chmod +x "$pkgdir/usr/bin/$bin"
+ done
+
+ cd "$pkgdir/opt/ipy/Lib"
+ patch -p0 < "$srcdir/site.patch"
+}
+
diff --git a/site.patch b/site.patch
new file mode 100644
index 00000000000..9595b950c4b
--- /dev/null
+++ b/site.patch
@@ -0,0 +1,13 @@
+--- site.py 2013-05-14 22:14:00.000000000 +0100
++++ site.py.fixed 2013-05-30 11:27:08.507466304 +0100
+@@ -59,6 +59,10 @@
+ """
+
+ import sys
++
++sys.path.append('/usr/lib/python2.7')
++sys.path.append('/usr/lib/python2.7/site-packages')
++
+ import os
+ import __builtin__
+ import traceback