aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-07-02 12:28:55 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2014-07-02 12:30:17 +0200
commit82a834f486080fcf27760bc2e2494365ed5aba7e (patch)
treedd433eedf684072d5edd845968af848e18cc4711 /testing
parent8a4e3336184f3e320d913b73ecf789bd4ac96dec (diff)
downloadaports-82a834f486080fcf27760bc2e2494365ed5aba7e.tar.bz2
aports-82a834f486080fcf27760bc2e2494365ed5aba7e.tar.xz
testing/highlight: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/highlight/APKBUILD46
-rw-r--r--testing/highlight/lua5.1-compat.patch11
2 files changed, 57 insertions, 0 deletions
diff --git a/testing/highlight/APKBUILD b/testing/highlight/APKBUILD
new file mode 100644
index 0000000000..eaca465ffd
--- /dev/null
+++ b/testing/highlight/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=highlight
+pkgver=3.18
+pkgrel=0
+pkgdesc="Fast and flexible source code highlighter"
+url="http://www.andre-simon.de/doku/highlight/highlight.html"
+arch="all"
+license="GPLv3"
+depends=""
+depends_dev=""
+makedepends="$depends_dev lua-dev boost-dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://www.andre-simon.de/zip/highlight-$pkgver.tar.bz2
+ lua5.1-compat.patch"
+
+_builddir="$srcdir"/highlight-$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"
+ make cli
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" -name '*.la' -delete
+}
+
+md5sums="085d7639a7e05a0d41923a889dc801c9 highlight-3.18.tar.bz2
+2450274893ceaa7288ae3ce3c680540d lua5.1-compat.patch"
+sha256sums="55c6f7a5aeaac2c811078a0215b27c1c80d971bba5dff51ee74a97b3303a584b highlight-3.18.tar.bz2
+2d907c2c8a62cf18e11b780ab51a63907df628fecab8f3072e752c2843b4169f lua5.1-compat.patch"
+sha512sums="1f939e117209e96d021216addc281ca7f265822f053f577ed7cb11b8ac9a1762bf84f8e1f9f5e67277004573b98e4b8732f48549aa674fe6801bfc1c0627b930 highlight-3.18.tar.bz2
+e2b4d01bc1483149fdabb3a5d6fc9d146f433bb61ef987e0377b751bde8fcb6a80d09f47d3d6cae6c45add11ef82ce9088eee750d68e84b42b3cbbdf7970b701 lua5.1-compat.patch"
diff --git a/testing/highlight/lua5.1-compat.patch b/testing/highlight/lua5.1-compat.patch
new file mode 100644
index 0000000000..8fe59e9fb2
--- /dev/null
+++ b/testing/highlight/lua5.1-compat.patch
@@ -0,0 +1,11 @@
+--- a/src/makefile
++++ b/src/makefile
+@@ -38,7 +38,7 @@
+ # - remove -DUSE_LUA52
+ # - use lua5.1 in the pkg-config calls
+
+-LUA_CFLAGS=$(shell pkg-config --cflags lua) -DUSE_LUA52
++LUA_CFLAGS=$(shell pkg-config --cflags lua)
+
+ # default lua lib
+ LUA_LIBS=$(shell pkg-config --libs lua)