aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2019-08-18 13:50:23 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2019-08-18 13:57:39 +0200
commit78087d76cbfad8be919645e2ce9d7f9c8422969f (patch)
treea2d1995133298010752f3736a87aa2925bafb0e9 /testing
parent16b7234d95adf0e83952001d0348d83a134e461e (diff)
downloadaports-78087d76cbfad8be919645e2ce9d7f9c8422969f.tar.bz2
aports-78087d76cbfad8be919645e2ce9d7f9c8422969f.tar.xz
testing/opendetex: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/opendetex/APKBUILD35
-rw-r--r--testing/opendetex/respect-ldflags.patch15
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/opendetex/APKBUILD b/testing/opendetex/APKBUILD
new file mode 100644
index 0000000000..d9a08266d3
--- /dev/null
+++ b/testing/opendetex/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
+pkgname=opendetex
+pkgver=2.8.5
+pkgrel=0
+pkgdesc="Extract plain text from TeX and LaTeX sources"
+url="https://github.com/pkubowicz/opendetex"
+arch="all"
+license="BSD-3-Clause"
+makedepends="flex flex-dev"
+checkdepends="perl"
+subpackages="$pkgname-doc"
+source="opendetex-$pkgver.tar.gz::https://github.com/pkubowicz/opendetex/archive/v$pkgver.tar.gz
+ respect-ldflags.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ make DEFS="$CFLAGS"
+}
+
+check() {
+ make test
+}
+
+package() {
+ install -Dm755 detex "$pkgdir"/usr/bin/detex
+ install -Dm644 detex.1 "$pkgdir"/usr/share/man/man1/detex.1
+
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname
+ install -m644 CONTRIBUTING ChangeLog README \
+ "$pkgdir"/usr/share/doc/$pkgname/
+}
+
+sha512sums="f8f3ca5b6d5874aa141d115a6c70873fe42f84072cb6f77fcf35adec256a3ef9ddc54663830b8888d8e4efa23d9e65875088e97eb7a3f0879b646298eda3519f opendetex-2.8.5.tar.gz
+daf29b954b4883836377a4694762a98a5df4db0adeb6eab14ec2c0886801258453ee278cba612d30b4a8e911dd58318cdef1ea22efa2583ffbd6d52038347730 respect-ldflags.patch"
diff --git a/testing/opendetex/respect-ldflags.patch b/testing/opendetex/respect-ldflags.patch
new file mode 100644
index 0000000000..e929853ce6
--- /dev/null
+++ b/testing/opendetex/respect-ldflags.patch
@@ -0,0 +1,15 @@
+By default the Makefile ignores the LDFLAGS specified in
+/etc/abuild.conf make sure these are respected.
+
+diff -upr opendetex-2.8.5.orig/Makefile opendetex-2.8.5/Makefile
+--- opendetex-2.8.5.orig/Makefile 2019-08-18 13:47:35.008004838 +0200
++++ opendetex-2.8.5/Makefile 2019-08-18 13:48:24.344354667 +0200
+@@ -110,7 +110,7 @@ VERSION = 2.8.5
+ all: ${PROGS}
+
+ detex: ${D_OBJ}
+- ${CC} ${CFLAGS} -o $@ ${D_OBJ} ${LEXLIB}
++ ${CC} ${CFLAGS} -o $@ ${D_OBJ} ${LEXLIB} ${LDFLAGS}
+
+ delatex: detex
+ cp detex delatex