aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-08 07:02:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-08 07:02:57 +0000
commit7438a6e7eb7bed272c95da357c11fd7164760e03 (patch)
tree89b273590c1dd2350199ac4bad6a9cd23ebc0e5a /testing
parentc15b135631e0535b245ba81cb4473494a4135063 (diff)
downloadaports-7438a6e7eb7bed272c95da357c11fd7164760e03.tar.bz2
aports-7438a6e7eb7bed272c95da357c11fd7164760e03.tar.xz
testing/ragel: new aport
Finite state machine compiler http://www.complang.org/ragel/
Diffstat (limited to 'testing')
-rw-r--r--testing/ragel/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/ragel/APKBUILD b/testing/ragel/APKBUILD
new file mode 100644
index 0000000000..92bb5aa321
--- /dev/null
+++ b/testing/ragel/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=ragel
+pkgver=6.7
+pkgrel=0
+pkgdesc="Finite state machine compiler"
+url="http://www.complang.org/ragel/"
+arch="all"
+license="GPLv2+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://www.complang.org/ragel/ragel-$pkgver.tar.gz"
+
+_builddir="$srcdir"/ragel-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="f4423e0d8a6538dd4e61498fcfad3cec ragel-6.7.tar.gz"