From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 66AA4158089 for ; Wed, 8 Nov 2023 19:15:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9DCEF2BC015; Wed, 8 Nov 2023 19:15:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B128B2BC015 for ; Wed, 8 Nov 2023 19:15:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C2976335D16 for ; Wed, 8 Nov 2023 19:15:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 26190AAC for ; Wed, 8 Nov 2023 19:15:20 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1699470916.47c19800a58c623edcb78a3d73834e45190da8a3.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/lowdown/files/, app-text/lowdown/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/lowdown/Manifest app-text/lowdown/files/lowdown-1.1.0-shared-linking.patch app-text/lowdown/lowdown-1.1.0.ebuild X-VCS-Directories: app-text/lowdown/files/ app-text/lowdown/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 47c19800a58c623edcb78a3d73834e45190da8a3 X-VCS-Branch: master Date: Wed, 8 Nov 2023 19:15:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f8e27065-c142-4266-8b05-baedeb636546 X-Archives-Hash: 54ed4ce375319f468b9d5a4a6e992a42 commit: 47c19800a58c623edcb78a3d73834e45190da8a3 Author: Patrick McLean gentoo org> AuthorDate: Wed Nov 8 19:14:57 2023 +0000 Commit: Patrick McLean gentoo org> CommitDate: Wed Nov 8 19:15:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47c19800 app-text/lowdown: add 1.1.0 Signed-off-by: Patrick McLean gentoo.org> app-text/lowdown/Manifest | 1 + .../files/lowdown-1.1.0-shared-linking.patch | 45 +++++++++++++++ app-text/lowdown/lowdown-1.1.0.ebuild | 67 ++++++++++++++++++++++ 3 files changed, 113 insertions(+) diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest index a865f110db26..354ed952a545 100644 --- a/app-text/lowdown/Manifest +++ b/app-text/lowdown/Manifest @@ -1,2 +1,3 @@ DIST lowdown-1.0.0.tar.gz 576167 BLAKE2B fec9857ef1110f4767ff6244dcf06fa9c69a56d4b8709217cf05a148757512e2cb8c141b112673f0cffa260d7e2c376b9905bb16092e3f97f97007dcef922bcb SHA512 fe18db1f3d6dbc4fe0ae33ebcdeb1646b20d6fedd265e29d53475f7931b5b60329a653f9af864a39ff4caa0131751fcbffff0d94cb9519401a3479ada29bd7b8 DIST lowdown-1.0.1.tar.gz 583848 BLAKE2B f0794168f496a3ddd418f27ef0b9bd9fc248f67cabad248ebda0d4b2393efeae083b1de991bf7bd27ff9ae7accd2966b0c69f6bdb54e8a7d7ba1998617de0122 SHA512 ed9fb0162705aa34a69867bd532f22743321e68f93ce0d8909290e2215044d90969e513a772288374d1653eb25336d955dfc8b9394a146cdbe88809bed6ef2f2 +DIST lowdown-1.1.0.tar.gz 599219 BLAKE2B f623399cb41c5eaf180550283c5b2738993563ff30be4cfa1a471df036ed4289057d3f886a7727d85283896fbfe1316e9cc86d32c629cea1fd775af16cf58839 SHA512 b7b788694abf6760ca4abbd8d5d2c226d5406067ebf9b55307f136e1ab373e517fb20187659c09029463872310a5b39a0129842d1bc6b7bd64f2d440390e2676 diff --git a/app-text/lowdown/files/lowdown-1.1.0-shared-linking.patch b/app-text/lowdown/files/lowdown-1.1.0-shared-linking.patch new file mode 100644 index 000000000000..bdee817b8895 --- /dev/null +++ b/app-text/lowdown/files/lowdown-1.1.0-shared-linking.patch @@ -0,0 +1,45 @@ +diff --git a/Makefile b/Makefile +index 32acb09..552d6d3 100644 +--- a/Makefile ++++ b/Makefile +@@ -184,11 +184,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) +@@ -206,14 +206,14 @@ 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 + 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##*.} ; \ +@@ -256,7 +256,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-1.1.0.ebuild b/app-text/lowdown/lowdown-1.1.0.ebuild new file mode 100644 index 000000000000..e196abb00f7a --- /dev/null +++ b/app-text/lowdown/lowdown-1.1.0.ebuild @@ -0,0 +1,67 @@ +# 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.1.0-shared-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() { + LD_LIBRARY_PATH="${S}" emake regress +}