summaryrefslogtreecommitdiff
path: root/user/swig
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-08 17:56:43 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-08 17:56:48 -0500
commit76fcf268097e38ff50d8c08e6d22a0913496ca6a (patch)
treeb6baf09d80bb61707f3e517293af7865dcbd65a5 /user/swig
parent36df2a269acd2a150d7713f07504213963f0dd3c (diff)
downloadpackages-76fcf268097e38ff50d8c08e6d22a0913496ca6a.tar.gz
packages-76fcf268097e38ff50d8c08e6d22a0913496ca6a.tar.bz2
packages-76fcf268097e38ff50d8c08e6d22a0913496ca6a.tar.xz
packages-76fcf268097e38ff50d8c08e6d22a0913496ca6a.zip
user/swig: pull in, fix, and FINALLY PASS TEST SUITE
Diffstat (limited to 'user/swig')
-rw-r--r--user/swig/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/user/swig/APKBUILD b/user/swig/APKBUILD
new file mode 100644
index 000000000..d0be1a058
--- /dev/null
+++ b/user/swig/APKBUILD
@@ -0,0 +1,38 @@
+# Maintainer:
+pkgname=swig
+pkgver=3.0.12
+pkgrel=3
+pkgdesc="Tool for integrating C and C++ code with other languages"
+url="http://www.swig.org/"
+arch="all"
+license="GPL-3.0 BSD"
+depends="guile"
+makedepends="zlib-dev pcre-dev"
+checkdepends="boost-dev perl-dev python3-dev diffutils"
+subpackages="$pkgname-doc"
+source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --with-python3 \
+ --without-python
+ make
+}
+
+check() {
+ cd "$builddir"
+ env PERL5LIB=. PY3=YES make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -D -m644 LICENSE-UNIVERSITIES "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-UNIVERSITIES
+}
+
+sha512sums="5eaa2e06d8e4197fd02194051db1e518325dbb074a4c55a91099ad9c55193874f577764afc9029409a41bd520a95154095f26e33ef5add5c102bb2c1d98d33eb swig-3.0.12.tar.gz"