commit:     0dd3abf1be75aa4a4d854d65515fcc82c3af634f
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  6 17:15:05 2024 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Fri Dec  6 17:15:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dd3abf1

app-text/lowdown: add 1.3.1

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 app-text/lowdown/Manifest             |  1 +
 app-text/lowdown/lowdown-1.3.1.ebuild | 67 +++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest
index f3d4fa09ac05..ec52f260334b 100644
--- a/app-text/lowdown/Manifest
+++ b/app-text/lowdown/Manifest
@@ -2,3 +2,4 @@ DIST lowdown-1.1.1.tar.gz 600635 BLAKE2B 
39c0a2472ff6b9b3fa2b6d72c1f2d482592976f
 DIST lowdown-1.1.2.tar.gz 603453 BLAKE2B 
02c549ad803d3e7a0bfc7fb05094452d57dbfd2ada9f5211571a3df45bef7fdca0b1cbd54a28cb86e6bec6b6be2d914ace05c728a3c0263bafe00f47eb52b7c2
 SHA512 
b8a649814bda946740695b5fe1120ad8653fe058acf37cc3c033fa78a0d49b0036eb2f4ada9b4aeda5d2c85ede7195d681c2605c6113f3c6a1113f760a7f2e49
 DIST lowdown-1.2.0.tar.gz 657032 BLAKE2B 
73b3bfc1b09bc6beb38949a344e5b458f8a1537a99ce48710d170f0553c099d0226b6082923b01c02971d3f82c9773ae95e8792f56ccf0d530708aecab480766
 SHA512 
ed989e12f1bd6da03cbf139bfe0fb0100fbe23cac266990bb1bc34a3e0be3d4512e1ab1da2397c439d20dc40dd7daa4fc4318116ef2b5e759368e9a28e483744
 DIST lowdown-1.3.0.tar.gz 666560 BLAKE2B 
8bf9da6163a65bff7ac5774d0d31a0dc1438832944b2560a9f725bf9c83c359575fdb828d5065a0138e84466c9a95ca514c72cba6c457a0bb02f9e4558cce017
 SHA512 
ac51e8ff74450bf02d3c8e41f129f15f2ac92d47a07c020f10eea143b506fd113afac0e9bec447c336cf70176ebc886a8933fa38f5779931c9dfd9c06421fcda
+DIST lowdown-1.3.1.tar.gz 668638 BLAKE2B 
5d3541e104a25519a580d6b0e8fdfdb03642dcefcdab016f8d1744f5dcd704611d792ca79b988962a014cbcfb20d05e8a8be62eb50708e4c85c5a3d1fe512df1
 SHA512 
b530bd0ad050a1197e04de971bb10e63c185736f487bcf91467f53d9c63b698aa40d364f8a0d340e3bbf929a9318050c68fdc8127c5ddf526bded327f57419df

diff --git a/app-text/lowdown/lowdown-1.3.1.ebuild 
b/app-text/lowdown/lowdown-1.3.1.ebuild
new file mode 100644
index 000000000000..3857bd5c0a85
--- /dev/null
+++ b/app-text/lowdown/lowdown-1.3.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2021-2024 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 ~arm ~arm64 ~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
+)
+
+PATCHES=(
+       "${FILESDIR}/lowdown-0.10.0-pkgconfig-libmd.patch"
+       "${FILESDIR}/lowdown-1.3.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
+}

Reply via email to