aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pike
diff options
context:
space:
mode:
authorPaweł Tomak <pawel@tomak.eu>2018-07-16 23:16:05 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-09-04 12:18:18 +0000
commiteec7db60bd8274db29ce5731c26019778a22f28e (patch)
treece47e62f5fc050f6c6a137f5e5de541022e8b7f7 /testing/pike
parent30d3a67bb2d19e19fbb0302f412f2a8390f8a8b2 (diff)
downloadaports-eec7db60bd8274db29ce5731c26019778a22f28e.tar.bz2
aports-eec7db60bd8274db29ce5731c26019778a22f28e.tar.xz
testing/pike: new aport
https://pike.lysator.liu.se Pike Programing language
Diffstat (limited to 'testing/pike')
-rw-r--r--testing/pike/APKBUILD188
1 files changed, 188 insertions, 0 deletions
diff --git a/testing/pike/APKBUILD b/testing/pike/APKBUILD
new file mode 100644
index 0000000000..4efe682b79
--- /dev/null
+++ b/testing/pike/APKBUILD
@@ -0,0 +1,188 @@
+# Maintainer: Paweł Tomak <pawel@tomak.eu>
+pkgname=pike
+_pkgname=Pike
+pkgver=8.0.610
+pkgrel=0
+pkgdesc="Pike Programing language"
+url="https://pike.lysator.liu.se"
+arch="x86_64"
+license="GPL-2.0-or-later"
+options="!check" # there are no tests for those packages
+depends="readline"
+makedepends="gmp-dev
+ bzip2-dev
+ freeglut-dev
+ gdbm-dev
+ giflib-dev
+ giflib-utils
+ gtk+2.0
+ libglade-dev
+ libsm-dev
+ mesa-gl
+ nettle
+ nettle-dev
+ nettle-utils
+ pcre-dev
+ sdl-dev
+ sdl_mixer-dev
+ sqlite-dev
+ sqlite-libs
+ readline
+ zlib-dev
+ librsvg-dev"
+install=
+subpackages="$pkgname-doc $pkgname-full::noarch"
+source="http://pike.lysator.liu.se/pub/$pkgname/all/$pkgver/$_pkgname-v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-v$pkgver"
+
+_full_deps="$pkgname=$pkgver-r$pkgrel $pkgname-doc=$pkgver-r$pkgrel"
+for _name in bzip2 gdbm gl gtk image pcre sdl svg sqlite
+do
+ subpackages="$subpackages $pkgname-$_name"
+ _full_deps="$_full_deps $pkgname-$_name=$pkgver-r$pkgrel"
+done
+
+build() {
+ cd "$builddir"
+ make CONFIGUREARGS=" \
+ --prefix=/usr \
+ --disable-make_conf \
+ --disable-noopty-retry \
+ --without-cdebug \
+ --without-bundles \
+ --without-ssleay \
+ --with-gmp \
+ --with-crypt \
+ --with-bignums \
+ --without-rtldebug \
+ --with-Bz2 \
+ --without-fftw \
+ --without-_Ffmpeg \
+ --with-gdbm \
+ --without-GTK1 \
+ --with-GTK2 \
+ --with-jpeglib \
+ --without-Kerberos \
+ --without-msql \
+ --without-mysql \
+ --without-Odbc \
+ --without-oracle \
+ --with-GL \
+ --with-GLUT \
+ --with-_Regexp_PCRE \
+ --without-libpdf \
+ --without-sass \
+ --with-sane \
+ --with-SDL \
+ --with-SDL_Mixer \
+ --with-svg \
+ --with-tifflib \
+ --without-freetype \
+ --without-vcdiff \
+ --with-_Image_WebP \
+ --with-zlib"
+ PATH="$builddir/bin:$PATH" make doc
+}
+
+package() {
+ cd "$builddir"
+ make INSTALLARGS="--traditional" buildroot="$pkgdir" install
+}
+
+_install() {
+ local _arg
+ for _arg; do
+ [ -e "$_arg" ] || continue
+ local bn=$(basename "$_arg")
+ local dn=$(dirname "$_arg")
+ mkdir -p "$subpkgdir/$dn"
+ mv "$_arg" "$subpkgdir/$dn/$bn"
+ done
+}
+
+bzip2() {
+ cd "$pkgdir"
+ pkgdesc="$pkgname support"
+ depends="pike"
+ _install usr/lib/pike/modules/*Bz2.*
+}
+
+gdbm() {
+ cd "$pkgdir"
+ pkgdesc="$pkgname GDBM support"
+ depends="pike"
+ _install usr/lib/pike/modules/*Gdbm.*
+}
+
+gl() {
+ cd "$pkgdir"
+ pkgdesc="$pkgname OpenGL/GLUT support"
+ depends="pike freeglut libsm"
+ _install usr/lib/pike/modules/*GL*
+}
+
+gtk() {
+ cd "$pkgdir"
+ pkgdesc="$pkgname GTK2 support"
+ depends="pike-image"
+ _install usr/lib/pike/modules/*GTK2*
+ _install usr/lib/pike/modules/Tools.pmod/PV.pike
+}
+
+image() {
+ cd "$pkgdir"
+ pkgdesc="$pkgname image handling modules"
+ depends="pike libjpeg tiff libwebp"
+ _install usr/lib/pike/?.?/modules/Image.pmod
+ _install usr/lib/pike/modules/Image.so
+ _install usr/lib/pike/modules/*Image_[!S]*.so
+ _install usr/lib/pike/modules/*Image*.pmod
+ _install usr/lib/pike/modules/Graphics.pmod
+ _install usr/lib/pike/modules/Colors.pmod
+ _install usr/lib/pike/modules/Protocols.pmod/X.pmod/XImage.pmod
+}
+
+pcre() {
+ cd "$pkgdir"
+ pkgdesc="$pkgname PCRE support"
+ depends="pike"
+ _install usr/lib/pike/modules/*Regexp_PCRE.*
+}
+
+sdl() {
+ cd "$pkgdir"
+ pkgdesc="$pkgname SDL support"
+ depends="pike-image"
+ _install usr/lib/pike/modules/*SDL.*
+}
+
+svg() {
+ cd "$pkgdir"
+ pkgdesc="$pkgname SVG support"
+ depends="pike"
+ _install usr/lib/pike/modules/_Image_SVG.so
+}
+
+sqlite() {
+ cd "$pkgdir"
+ pkgdesc="$pkgname SQLite support"
+ depends="pike"
+ _install usr/lib/pike/modules/*SQLite.*
+ _install usr/lib/pike/modules/Sql.pmod/sqlite*
+}
+
+doc() {
+ cd "$pkgdir"
+ mkdir -p usr/share/doc/
+ mv "$builddir/refdoc/traditional_manual/" usr/share/doc/pike/
+ rm -rf usr/doc/
+ default_doc
+}
+
+full() {
+ depends="$_full_deps"
+ pkgdesc="Meta package for Pike Programing Language"
+ mkdir -p "$subpkgdir"
+}
+
+sha512sums="9e3a49140698715f80a08428c1e61964d756bb91f69ef0cdc39cd5bf7832d9416eec43063f5ab24e65ffbccbb7f7f75338a40ae6f141d6d1d3b29a29a02ab19f Pike-v8.0.610.tar.gz"