From d33b3cf6cff9fdbfc8362bf854c3c34b2c28d518 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 21 Apr 2023 00:01:06 +0100 Subject: gentoo auto-resync : 21:04:2023 - 00:01:05 --- app-text/lowdown/Manifest | 3 + app-text/lowdown/files/lowdown-1.0.1-linking.patch | 45 ++++++++++++++ app-text/lowdown/lowdown-1.0.1.ebuild | 68 ++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 app-text/lowdown/files/lowdown-1.0.1-linking.patch create mode 100644 app-text/lowdown/lowdown-1.0.1.ebuild (limited to 'app-text/lowdown') diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest index f641998a294d..58fb4414685f 100644 --- a/app-text/lowdown/Manifest +++ b/app-text/lowdown/Manifest @@ -1,5 +1,8 @@ AUX lowdown-0.10.0-pkgconfig-libmd.patch 309 BLAKE2B 617d3af07f0414fce674573e48f86f541f3b6c6c6b1649d7ba4302b0817fa8a8edf0beb1d0628c7deb79eb64934089b8ae9ff8f50171f3e94cd93427464a9c59 SHA512 f40f0a04deb70708b3059ccce394cbb78b8ba6020db4df62533abe1d3d125e1372947a5c249b9aa9a655b9b67f3f448a8963fe53fbd7d13c87b637143b36e9b0 AUX lowdown-0.11.1-linking.patch 1330 BLAKE2B adffc64357e84d9f6ef82b4c85e0c7302995304859c20c5dc1c6ab3f4c32c0aca4d4c5739f43515386f00f59e4ab58a2c9d3e9ffde15a338bdcc210de5ab9ad5 SHA512 47c44d73eeac0a7b607c16afe8a24e9ee9a75672e90119cc63d577bd39db69d1dce8985a90535504f33eb1ea39728a175bcedd718730cf47fb822a0a0169aea3 +AUX lowdown-1.0.1-linking.patch 1660 BLAKE2B eae0e876e33b91a09b0fcaa1aa829b30109d4796a7c15cb25ed7fdfff5300e852f04e536626151ee2dcd3e5f2f7d0a0b2273e20220e2230ef164f4a6ca451d7e SHA512 276f6cfedc55cbf69f9459e33632ead8d637114bd5693f77062f92ed5b67ca1cfeff6b4b27380df24ae2ab9662174bf84fddacc453efc6302e17bd3e6b2cd1dc DIST lowdown-1.0.0.tar.gz 576167 BLAKE2B fec9857ef1110f4767ff6244dcf06fa9c69a56d4b8709217cf05a148757512e2cb8c141b112673f0cffa260d7e2c376b9905bb16092e3f97f97007dcef922bcb SHA512 fe18db1f3d6dbc4fe0ae33ebcdeb1646b20d6fedd265e29d53475f7931b5b60329a653f9af864a39ff4caa0131751fcbffff0d94cb9519401a3479ada29bd7b8 +DIST lowdown-1.0.1.tar.gz 583848 BLAKE2B f0794168f496a3ddd418f27ef0b9bd9fc248f67cabad248ebda0d4b2393efeae083b1de991bf7bd27ff9ae7accd2966b0c69f6bdb54e8a7d7ba1998617de0122 SHA512 ed9fb0162705aa34a69867bd532f22743321e68f93ce0d8909290e2215044d90969e513a772288374d1653eb25336d955dfc8b9394a146cdbe88809bed6ef2f2 EBUILD lowdown-1.0.0.ebuild 985 BLAKE2B 4f66f72f76c73d402608b8c2414ede720da7c9b87d738cef0034b2ad00fc9b6d684f8045ac7e0da267842f75c4f50cc79ef9648c7b0d91fd9fb5f2a179bff8ea SHA512 d481879a3d9a9d25c695ac4c65a7b3be2c91478e75383d691e5faa81c3c73e76176b0257224e3785f6a99743b09270759db42408579bc71409fe24a2465aac8a +EBUILD lowdown-1.0.1.ebuild 1281 BLAKE2B 2db28188f8c01363211f0cc638c1e1e92f82f478197ed0e5b5f34a4a8a2d136370419335100e5a148a2b15a2016cabc27010e14ab88af880f31e9f13c47b5acb SHA512 30652282259749860e6a73d37ac68f8a19f94710de02c6832aa7d15ba7c36fa16e7e3c7d9aa25c28c7098dcaadfd7f8dfe3dc3fe04bce217d87f4d15c9ec4274 MISC metadata.xml 333 BLAKE2B cfa2021e507b7538cf73840fb9eb8e1f6c157f7090b1156e4bd1cd917547adeea76cc31d619d60b0d189c915ae4748437b8d9a9a96a532276d6deb1d0f2258d9 SHA512 fa991b0162a4eab9c81815b4a523d33a08e7a7716b5a443165f0cc05d906b7dc3d7da388d0e3d3202a7262a7971d771ffb29debf42659c8ed3c3de6ed184d73e diff --git a/app-text/lowdown/files/lowdown-1.0.1-linking.patch b/app-text/lowdown/files/lowdown-1.0.1-linking.patch new file mode 100644 index 000000000000..26996956ff58 --- /dev/null +++ b/app-text/lowdown/files/lowdown-1.0.1-linking.patch @@ -0,0 +1,45 @@ +diff --git a/Makefile b/Makefile +index 775aef1..c7094f8 100644 +--- a/Makefile ++++ b/Makefile +@@ -173,11 +173,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 ++ $(CC) -o $@ main.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) +@@ -186,14 +186,14 @@ liblowdown.so: $(OBJS) $(COMPAT_OBJS) + $(CC) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) $(LDADD_MD5) -lm -Wl,${LINKER_SONAME},$@.$(LIBVER) $(LDLIBS) + ln -sf $@.$(LIBVER) $@ + +-install: bins ++install: bins install_libs + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(MANDIR)/man1 + mkdir -p $(DESTDIR)$(MANDIR)/man5 + mkdir -p $(DESTDIR)$(SHAREDIR)/lowdown/odt + $(INSTALL_DATA) share/odt/styles.xml $(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##*.} ; \ +@@ -219,7 +219,7 @@ install_shared: liblowdown.so install_lib_common + install_static: liblowdown.a install_lib_common + $(INSTALL_LIB) liblowdown.a $(DESTDIR)$(LIBDIR) + +-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-1.0.1.ebuild b/app-text/lowdown/lowdown-1.0.1.ebuild new file mode 100644 index 000000000000..177c7a8af1d3 --- /dev/null +++ b/app-text/lowdown/lowdown-1.0.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 2021-2023 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/2" +KEYWORDS="~amd64 ~arm64 ~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 +) + +PATCHES=( + "${FILESDIR}/lowdown-0.10.0-pkgconfig-libmd.patch" + "${FILESDIR}/lowdown-1.0.1-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)" \ + LDLIBS="-lbsd" \ + || die "./configure failed" +} + +src_compile() { + emake $(usex elibc_musl UTF8_LOCALE=C.UTF-8 '') +} + +src_test() { + LD_LIBRARY_PATH="${S}" emake regress +} -- cgit v1.2.3