summaryrefslogtreecommitdiff
path: root/app-text/lowdown
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-02-02 01:39:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-02-02 01:39:05 +0000
commitfcc5224904648a8e6eb528d7603154160a20022f (patch)
tree3bfce096b38a9cea8eed13fc70c1526c456e9abd /app-text/lowdown
parent2fd57282f0262ca084e05b0f2c63fbada395d02b (diff)
gentoo resync : 02.02.2022
Diffstat (limited to 'app-text/lowdown')
-rw-r--r--app-text/lowdown/Manifest5
-rw-r--r--app-text/lowdown/files/lowdown-0.10.0-dont-install-static-lib.patch12
-rw-r--r--app-text/lowdown/files/lowdown-0.10.0-linking.patch43
-rw-r--r--app-text/lowdown/files/lowdown-0.10.0-shared-library.patch53
-rw-r--r--app-text/lowdown/lowdown-0.10.0.ebuild46
5 files changed, 159 insertions, 0 deletions
diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest
index e247f50d0c68..a3af625d46f3 100644
--- a/app-text/lowdown/Manifest
+++ b/app-text/lowdown/Manifest
@@ -1,4 +1,9 @@
+AUX lowdown-0.10.0-dont-install-static-lib.patch 467 BLAKE2B dcf6e7e61025248ad62af0534a9a04d8f113889ab8a909f746e26928733c243c49bafff41eeac0fb618bd49ceb980998b41c54b7ac62790868419e3e384a1d21 SHA512 9d4ba6ed91376b9013c6104d1157721efcda390471d9b89716573a74f73167d469ba23769197f7c8ea8f534c34920f1329313660579722f85f53291153b22cd2
+AUX lowdown-0.10.0-linking.patch 1628 BLAKE2B 7a390371b9969722c1651f1c79a8d07fddc42a1466b0f85dffc395b59a0f5dab2e92e3d9ca562b804e7ca5fef32b9f65a84cb458aa3fa465ff37a09185de5d5f SHA512 b38f6c9d96be0097a59dd99ad04b5da53267af243aa8e2f42ec61b6a777725fd0d6477890d2290ab875f0a5fc035c5aff7d38330bc3e910218e2f0e1299fa8b4
+AUX lowdown-0.10.0-shared-library.patch 1847 BLAKE2B 42d32a96aed20ac8419805c4d5e3f3ae5bde9801121452fdad68d085c618c22064770ebe6b021d25f104557c149a1f1e279873987400161b5a57e9313023a36a SHA512 dafec418078bdc9ca047fb69e299a5508d2be12f7ce37cd34322ef7d415031cb8db7b8f688f1f5d100398672eccc7cecd0de290fd748252655a8813f9ae2991d
AUX lowdown-0.8.4-configure.patch 770 BLAKE2B c91c27b9d7a33435515214ab8701ee0c5c2ea79b074e4ba8f96d57d0ced14ca77a918258cdbcb60b6ad9522e14f298b707b69aa70aae3e89b9b061c91905da72 SHA512 b768fade94fc2369e75d4c59b13cc2a053c3edf8502e246abd0a90123a9483f2160ab470c2c162cdf439dfacf4fd184751a069d6b008775f6ffa8bf4eba85463
+DIST lowdown-0.10.0.tar.gz 547397 BLAKE2B 93d87e3aca2466398a625750b928062fbafd26311899e52ddd8264218675e78d30714c920f3331619fcd510a92cc6046401c946f5bd1465d6fd46f26937318ac SHA512 7454e618607628ec0a1649f44f5ec64f8778ecaa151f6aad4984935e297abfe8e84ffc321d3c93cec5d336ff14b6bf9a0ff9054e7363cc58ba708a5b60db9048
DIST lowdown-0.8.4.tar.gz 520735 BLAKE2B dc66b92f285b186ca83b9fad1cccfef9b395233ef56756e9ea9071b5502cd81dc6ce2d67d7ef265dab8953010af0907cd76125cd4442cfbfc2bcf8c63e097809 SHA512 cd46ead69ed038bf3ccf848b784327d66c78dd8adbc9ae4bfee660b9b1e52844ac8c7ad0377f8f38a3fee0d2e523f979a22d6b547c7964304accef0951cfca34
+EBUILD lowdown-0.10.0.ebuild 1038 BLAKE2B 7afcb03620a4472430ee5e66e470da9416bd88d1978f725bb8016f7d7fc5fdb952ce5d44d3aab79d83b90476613fd9d5fdbe873ce7bf7d791356240d3e68d2e3 SHA512 8ee31b181cc2e0e6cc42c4796e48c58ef796a763fdd2dd25fb5f1763253ebde9f677e5a8ad5c4a4718f9139eeab7f6d8d1776f74d0fd307c553df2424d19cf48
EBUILD lowdown-0.8.4-r1.ebuild 793 BLAKE2B bd37690ad0713dd2d74fba662ac26f6cde745eb3ae57b19a44bdf8b9b62f559f3217b16e97848657f9b962627abb58bc42a1ef2c442a6455bea67419e62d8655 SHA512 8dc701ba341787364ae600391f2945d3f4d1fb5a47fdbcfffa4eada6f5a10aedd9b3403876b9f78afec654790822bae3a3cb0976629161b9804b9a0f34248d4d
MISC metadata.xml 250 BLAKE2B 0b272f56e53b7d76c6d5c253fbe5d7c4c9a1d7b58c21e2f59b8323a5f5cd2791c64651fdfa243a8f560ac9c0a0ff38fcffdc24290fa6d18100da0cadffc19845 SHA512 076f0dbffbab6987cfab48a5ff3631789190c570c35515cc77de5757760f19a8ad615f642e7d61b12344ffc77c599e6ff8b79b67329e69929fdd19a7c80723ff
diff --git a/app-text/lowdown/files/lowdown-0.10.0-dont-install-static-lib.patch b/app-text/lowdown/files/lowdown-0.10.0-dont-install-static-lib.patch
new file mode 100644
index 000000000000..4a120c32ed29
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-0.10.0-dont-install-static-lib.patch
@@ -0,0 +1,12 @@
+diff --git a/Makefile b/Makefile
+index f13a364..d013a1c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -153,7 +153,6 @@ install: all
+ $(INSTALL_DATA) lowdown.pc $(DESTDIR)$(LIBDIR)/pkgconfig
+ $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR)
+ $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR)
+- $(INSTALL_LIB) liblowdown.a $(DESTDIR)$(LIBDIR)
+ $(INSTALL_LIB) liblowdown.so $(DESTDIR)$(LIBDIR)
+ $(INSTALL_DATA) lowdown.h $(DESTDIR)$(INCLUDEDIR)
+ for f in $(MANS) ; do \
diff --git a/app-text/lowdown/files/lowdown-0.10.0-linking.patch b/app-text/lowdown/files/lowdown-0.10.0-linking.patch
new file mode 100644
index 000000000000..e0ab7285e07a
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-0.10.0-linking.patch
@@ -0,0 +1,43 @@
+diff --git a/Makefile b/Makefile
+index d013a1c..c9de4d4 100644
+--- a/Makefile
++++ b/Makefile
+@@ -130,8 +130,8 @@ installwww: www
+ $(INSTALL) -m 0444 lowdown.tar.gz $(WWWDIR)/snapshots
+ $(INSTALL) -m 0444 lowdown.tar.gz.sha512 $(WWWDIR)/snapshots
+
+-lowdown: liblowdown.a main.o
+- $(CC) -o $@ main.o liblowdown.a $(LDFLAGS) $(LDADD_MD5) -lm
++lowdown: liblowdown.so main.o
++ $(CC) -o $@ main.o -L. -llowdown $(LDFLAGS) $(LDADD_MD5) -lm
+
+ lowdown-diff: lowdown
+ ln -f lowdown lowdown-diff
+@@ -141,7 +141,8 @@ liblowdown.a: $(OBJS) $(COMPAT_OBJS)
+
+
+ liblowdown.so: $(OBJS) $(COMPAT_OBJS)
+- $(CC) -shared -o $@ $(OBJS) $(COMPAT_OBJS) $(LDFLAGS)
++ $(CC) -shared -o $@.1 $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) -Wl,-soname,$@.1
++ ln -s $@.1 $@
+
+ install: all
+ mkdir -p $(DESTDIR)$(BINDIR)
+@@ -153,7 +154,7 @@ install: all
+ $(INSTALL_DATA) lowdown.pc $(DESTDIR)$(LIBDIR)/pkgconfig
+ $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR)
+ $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR)
+- $(INSTALL_LIB) liblowdown.so $(DESTDIR)$(LIBDIR)
++ $(INSTALL_LIB) liblowdown.so.1 $(DESTDIR)$(LIBDIR)
+ $(INSTALL_DATA) lowdown.h $(DESTDIR)$(INCLUDEDIR)
+ for f in $(MANS) ; do \
+ name=`basename $$f .html` ; \
+@@ -271,7 +272,7 @@ main.o: lowdown.h
+
+ clean:
+ rm -f $(OBJS) $(COMPAT_OBJS) main.o
+- rm -f lowdown lowdown-diff liblowdown.a liblowdown.so lowdown.pc
++ rm -f lowdown lowdown-diff liblowdown.a liblowdown.so liblowdown.so.1 lowdown.pc
+ rm -f index.xml diff.xml diff.diff.xml README.xml lowdown.tar.gz.sha512 lowdown.tar.gz
+ rm -f $(PDFS) $(HTMLS) $(THUMBS)
+ rm -f index.latex.aux index.latex.latex index.latex.log index.latex.out
diff --git a/app-text/lowdown/files/lowdown-0.10.0-shared-library.patch b/app-text/lowdown/files/lowdown-0.10.0-shared-library.patch
new file mode 100644
index 000000000000..0adfe762fb57
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-0.10.0-shared-library.patch
@@ -0,0 +1,53 @@
+commit e33536ae131e31adf77d3258c0cdd3da10868534
+Author: Kristaps Dz <kristaps@bsd.lv>
+Date: Thu Nov 4 12:27:21 2021 +0000
+
+ Generate a shared library as well.
+
+ Earlier, the library interface was just moving too quickly. Now, I
+ don't think I'll be changing it much---if at all, unless to add new
+ front-ends.
+
+ References https://github.com/kristapsdz/lowdown/issues/45
+
+diff --git a/Makefile b/Makefile
+index 475f780..f13a364 100644
+--- a/Makefile
++++ b/Makefile
+@@ -118,7 +118,7 @@ REGRESS_ARGS += "--parse-no-autolink"
+ REGRESS_ARGS += "--parse-no-cmark"
+ REGRESS_ARGS += "--parse-no-deflists"
+
+-all: lowdown lowdown-diff lowdown.pc
++all: lowdown lowdown-diff liblowdown.so lowdown.pc
+
+ www: $(HTMLS) $(PDFS) $(THUMBS) lowdown.tar.gz lowdown.tar.gz.sha512
+
+@@ -139,6 +139,10 @@ lowdown-diff: lowdown
+ liblowdown.a: $(OBJS) $(COMPAT_OBJS)
+ $(AR) rs $@ $(OBJS) $(COMPAT_OBJS)
+
++
++liblowdown.so: $(OBJS) $(COMPAT_OBJS)
++ $(CC) -shared -o $@ $(OBJS) $(COMPAT_OBJS) $(LDFLAGS)
++
+ install: all
+ mkdir -p $(DESTDIR)$(BINDIR)
+ mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
+@@ -150,6 +154,7 @@ install: all
+ $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR)
+ $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR)
+ $(INSTALL_LIB) liblowdown.a $(DESTDIR)$(LIBDIR)
++ $(INSTALL_LIB) liblowdown.so $(DESTDIR)$(LIBDIR)
+ $(INSTALL_DATA) lowdown.h $(DESTDIR)$(INCLUDEDIR)
+ for f in $(MANS) ; do \
+ name=`basename $$f .html` ; \
+@@ -267,7 +272,7 @@ main.o: lowdown.h
+
+ clean:
+ rm -f $(OBJS) $(COMPAT_OBJS) main.o
+- rm -f lowdown lowdown-diff liblowdown.a lowdown.pc
++ rm -f lowdown lowdown-diff liblowdown.a liblowdown.so lowdown.pc
+ rm -f index.xml diff.xml diff.diff.xml README.xml lowdown.tar.gz.sha512 lowdown.tar.gz
+ rm -f $(PDFS) $(HTMLS) $(THUMBS)
+ rm -f index.latex.aux index.latex.latex index.latex.log index.latex.out
diff --git a/app-text/lowdown/lowdown-0.10.0.ebuild b/app-text/lowdown/lowdown-0.10.0.ebuild
new file mode 100644
index 000000000000..a38987c1e1aa
--- /dev/null
+++ b/app-text/lowdown/lowdown-0.10.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic
+
+MY_PV="VERSION_${PV//./_}"
+DESCRIPTION="Markdown translator producing HTML5, roff documents in the ms and man formats"
+HOMEPAGE="https://kristaps.bsd.lv/lowdown/"
+SRC_URI="https://github.com/kristapsdz/lowdown/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="virtual/libcrypt:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/lowdown-0.10.0-shared-library.patch"
+ "${FILESDIR}/lowdown-0.10.0-dont-install-static-lib.patch"
+ "${FILESDIR}/lowdown-0.10.0-linking.patch"
+)
+
+src_configure() {
+ append-flags -fPIC
+ tc-export CC AR
+
+ ./configure \
+ PREFIX="/usr" \
+ MANDIR="/usr/share/man" \
+ LDFLAGS="${LDFLAGS}" \
+ CPPFLAGS="${CPPFLAGS}" \
+ LIBDIR="/usr/$(get_libdir)" \
+ || die "./configure failed"
+}
+
+src_compile() {
+ emake $(usex elibc_musl UTF8_LOCALE=C.UTF-8 '')
+}
+
+src_test() {
+ emake regress
+}