diff options
Diffstat (limited to 'app-text/lowdown')
-rw-r--r-- | app-text/lowdown/Manifest | 3 | ||||
-rw-r--r-- | app-text/lowdown/files/lowdown-2.0.0-shared-linking.patch | 66 | ||||
-rw-r--r-- | app-text/lowdown/lowdown-2.0.0.ebuild | 69 |
3 files changed, 138 insertions, 0 deletions
diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest index 167b3be911bd..83e7098c734f 100644 --- a/app-text/lowdown/Manifest +++ b/app-text/lowdown/Manifest @@ -1,10 +1,13 @@ AUX lowdown-0.10.0-pkgconfig-libmd.patch 309 BLAKE2B 617d3af07f0414fce674573e48f86f541f3b6c6c6b1649d7ba4302b0817fa8a8edf0beb1d0628c7deb79eb64934089b8ae9ff8f50171f3e94cd93427464a9c59 SHA512 f40f0a04deb70708b3059ccce394cbb78b8ba6020db4df62533abe1d3d125e1372947a5c249b9aa9a655b9b67f3f448a8963fe53fbd7d13c87b637143b36e9b0 AUX lowdown-1.1.0-shared-linking.patch 1504 BLAKE2B d53f317fb68c6a627a96243df871a205d460124fa91c4d08373a5a3134bbc4877a0ffdeb7e0336342d049f67b003e82d978cbbbba9b660fabd82550deafbd2e7 SHA512 21f282ca34c319f33795a71c5dbb0937a171853bd570538c750537013dcfc93c06035ee14eca468382e27bba427cb009fb57fef54c34d9509a93279abd52c05b AUX lowdown-1.3.0-shared-linking.patch 1548 BLAKE2B 9a2e7d03c17f34ca3a9b04ab144a7944e422e92db53f8a031beebf9d964913f7b060a1e4b0ecba00716379b1422423c48627edd5e3dc8b8f2204988a6b710480 SHA512 ec6891da03a56178610bc70e7133f3fbe5757093f2ad2939215db636fc10c652172c48b6a273cd886e696139923af4a849c0d3288185c076ff1df992d9265653 +AUX lowdown-2.0.0-shared-linking.patch 2362 BLAKE2B c5e78dd136d3fa85eef5ada5106cb189de442563d4fddb9820575330301b507d2e19f44bfda05e4a12a8904d60f13b6f4c7d0043ebc68f703905f878324baf6c SHA512 ef97a8da449aad65d9bc39ff717851d28b8af7223d4e1172e51be2bf667fb21a9afd559597964a8c388ad4019a0baafc09fd944e586b251f9961e83b492725ce DIST lowdown-1.1.1.tar.gz 600635 BLAKE2B 39c0a2472ff6b9b3fa2b6d72c1f2d482592976f7b50c1bbaf1965bfbb6d28f22e0a7498bb54087bb83070bd74ea673409be97815f51a0a5a67e980bbfc4e01b2 SHA512 2a69da945a83696480651e8221d73bcb18bac9bc38bb88126ddf73520d2a4ff396dde08a7abf6f550669ec9ba34abdaa186b0980f312fa157371ee754576bb6a DIST lowdown-1.3.2.tar.gz 670610 BLAKE2B 80238e7c6a27c45d6b3f65fbb9435639db5f424aad28c05a94093c5fab3982b1b05b5c3d779e5f74d8b2e71046301c2e3c0ee83496f44f6b8597cd0b3797eb14 SHA512 9592fd270c61d7e827a0e7885ce5faef545a33e61afa0d4cf4549cf5866d82873b042a9cb4465d7b504c686a7b89c748257c470c3b3ccb1ec6f1203a7e6bf392 DIST lowdown-1.4.0.tar.gz 675327 BLAKE2B 1e734acefe3d293dd6e60f27ff943b484ac99a9e393fd118df09be6dd9671294a91de306393817af9422fec67ed9eda22e2515538b490ac07bdd93ac2e5617e4 SHA512 61b88fc24c9c69a324536bc5cc3edbd453f59945cda264df8751cf361992487081911d3ba6cb04346d5ef451d96a4b56e69a76985849349ef049eca0a098b7ee +DIST lowdown-2.0.0.tar.gz 675824 BLAKE2B 01df89f7703f3c313b373b0eee2eee86d409a06fe298be6f90cd0198fb84a3eedf8e5ea9c03082797bfa0ff76b28f6c4d032e28f6b1d233af2a988bef46cf689 SHA512 520741453556710ebdd379de2f1b6444c0019ed556e5c9852b1bb8b2cbd5853cf5edb80e65dc9e1d4fabfb028b96af0adf776642ba07aa3af436d4c57e7d7811 EBUILD lowdown-1.1.1.ebuild 1266 BLAKE2B 23880fdc922652be5d7b0c8e328ab10c7060c16e4bb92bee272922b355e61a5f463971146a8ce0ec022a7bf5801f4544424c7a6ad7c405df2f9cc1b6b5fca436 SHA512 e42892e8c56d18141c3037727e126b55f6381170f4ca11d52678d6b4a46c8f20f73d328e54062e235514659f024784e52f0d84dd3fb4db5199626d057656bb62 EBUILD lowdown-1.3.2.ebuild 1364 BLAKE2B 7ae2d251f10a2a61da190343a3617070dfc1fe08930d0b98a06631e0ce36bbc68bc1e2264941a4a886513428ac69cd5d38bf2eec31f8a8799e6b12a0a2fbb42c SHA512 88f42e33fd7bbc349e1077f29c15ec9b3830d51969fffc5e6e4e2c289a2a88421eebb3016045e3b2f8e8b5639effe215c3caa00b0739a01d799fd34c7298ad31 EBUILD lowdown-1.4.0.ebuild 1364 BLAKE2B 7ae2d251f10a2a61da190343a3617070dfc1fe08930d0b98a06631e0ce36bbc68bc1e2264941a4a886513428ac69cd5d38bf2eec31f8a8799e6b12a0a2fbb42c SHA512 88f42e33fd7bbc349e1077f29c15ec9b3830d51969fffc5e6e4e2c289a2a88421eebb3016045e3b2f8e8b5639effe215c3caa00b0739a01d799fd34c7298ad31 +EBUILD lowdown-2.0.0.ebuild 1364 BLAKE2B a43607fbc7fe5295dc274b2773fff6eb862c2fc2b4bd61908a6533b230c9738c73e988e34592a3eb84663544bb605db130b970a5fcbb3cd775c507439d24fcc1 SHA512 f5a78e2d472f9a935041bc4bc2355f63019b907f76dc31338e69c3633829941dbe8f36bfe700ba5fb457927010370c8c0ab860e3fa4061735bb83c5805c6f7a9 MISC metadata.xml 333 BLAKE2B cfa2021e507b7538cf73840fb9eb8e1f6c157f7090b1156e4bd1cd917547adeea76cc31d619d60b0d189c915ae4748437b8d9a9a96a532276d6deb1d0f2258d9 SHA512 fa991b0162a4eab9c81815b4a523d33a08e7a7716b5a443165f0cc05d906b7dc3d7da388d0e3d3202a7262a7971d771ffb29debf42659c8ed3c3de6ed184d73e diff --git a/app-text/lowdown/files/lowdown-2.0.0-shared-linking.patch b/app-text/lowdown/files/lowdown-2.0.0-shared-linking.patch new file mode 100644 index 000000000000..6e68260a6225 --- /dev/null +++ b/app-text/lowdown/files/lowdown-2.0.0-shared-linking.patch @@ -0,0 +1,66 @@ +diff --git a/Makefile b/Makefile +index 3b61566..3d0548f 100644 +--- a/Makefile ++++ b/Makefile +@@ -122,19 +122,6 @@ THUMBS = screen-mandoc.thumb.jpg \ + screen-groff.thumb.jpg \ + screen-term.thumb.jpg + CFLAGS += -DVERSION=\"$(VERSION)\" +-# Hack around broken Mac OS X nested sandboxes. +-# If SANDBOX_INIT_ERROR_IGNORE is set to "always", errors from +-# sandbox_init() are ignored. If set to anything else, the user must +-# also set SANDBOX_INIT_ERROR_IGNORE in their environment to ignore +-# failure. +-# Has no effect unless HAVE_SANDBOX_INIT is defined. +-.ifdef SANDBOX_INIT_ERROR_IGNORE +-.if $(SANDBOX_INIT_ERROR_IGNORE) == "always" +-CFLAGS += -DSANDBOX_INIT_ERROR_IGNORE=2 +-.else +-CFLAGS += -DSANDBOX_INIT_ERROR_IGNORE=1 +-.endif +-.endif + # Because the objects will be compiled into a shared library: + CFLAGS += -fPIC + # To avoid exporting internal functions (lowdown.h has default visibility). +@@ -171,11 +158,11 @@ 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 $(LDADD) ++lowdown: liblowdown.so main.o compats.o ++ $(CC) -o $@ main.o compats.o -L. -llowdown $(LDFLAGS) $(LDADD_MD5) -lm $(LDADD) + + lowdown-diff: lowdown +- ln -f lowdown lowdown-diff ++ ln -s lowdown lowdown-diff + + liblowdown.a: $(OBJS) $(COMPAT_OBJS) + $(AR) rs $@ $(OBJS) $(COMPAT_OBJS) +@@ -193,7 +180,7 @@ uninstall: + rm -f $(MANDIR)/man$$section/$$name ; \ + done + +-install: bins ++install: bins install_libs + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(MANDIR)/man1 + mkdir -p $(DESTDIR)$(MANDIR)/man5 +@@ -208,7 +195,7 @@ install: bins + $(INSTALL_DATA) share/ms/* $(DESTDIR)$(SHAREDIR)/lowdown/ms + $(INSTALL_DATA) share/odt/* $(DESTDIR)$(SHAREDIR)/lowdown/odt + $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR) +- $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR) ++ ln -s lowdown $(DESTDIR)$(BINDIR)/lowdown-diff + for f in $(MAN1S) $(MAN5S) ; do \ + name=`basename $$f .html` ; \ + section=$${name##*.} ; \ +@@ -251,7 +238,7 @@ install_static: liblowdown.a install_lib_common + + uninstall_libs: uninstall_shared uninstall_static + +-install_libs: install_shared install_static ++install_libs: install_shared + + distcheck: lowdown.tar.gz.sha512 + mandoc -Tlint -Werror man/*.[135] diff --git a/app-text/lowdown/lowdown-2.0.0.ebuild b/app-text/lowdown/lowdown-2.0.0.ebuild new file mode 100644 index 000000000000..b7265610ed8c --- /dev/null +++ b/app-text/lowdown/lowdown-2.0.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 2021-2025 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/3" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~x86" + +DEPEND=" + virtual/libcrypt:= +" +RDEPEND=" + ${DEPEND} +" + +# configure tests for a bunch of BSD functions on Linux +QA_CONFIG_IMPL_DECL_SKIP=( + crypt_newhash + crypt_checkpass + warnc + errc + getexecname + getprogname + memset_s + pledge + recallocarray + strlcat + strlcpy + strtonum + TAILQ_FOREACH_SAFE + unveil + arc4random + b64_ntop +) + +PATCHES=( + "${FILESDIR}/lowdown-0.10.0-pkgconfig-libmd.patch" + "${FILESDIR}/lowdown-2.0.0-shared-linking.patch" +) + +src_configure() { + append-flags -fPIC + tc-export CC AR + + ./configure \ + PREFIX="${EPREFIX}/usr" \ + MANDIR="${EPREFIX}/usr/share/man" \ + LDFLAGS="${LDFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + || die "./configure failed" +} + +src_compile() { + emake $(usex elibc_musl UTF8_LOCALE=C.UTF-8 '') +} + +src_test() { + LD_LIBRARY_PATH="${S}" emake regress +} |