diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-21 00:01:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-21 00:01:06 +0100 |
commit | d33b3cf6cff9fdbfc8362bf854c3c34b2c28d518 (patch) | |
tree | 7fb87b3c81930bc74ab84958c42e07fde61f6b7f /app-text/lowdown/lowdown-1.0.1.ebuild | |
parent | 1e2d947ea35b8fd5d14d55f60265f9763fa70a72 (diff) |
gentoo auto-resync : 21:04:2023 - 00:01:05
Diffstat (limited to 'app-text/lowdown/lowdown-1.0.1.ebuild')
-rw-r--r-- | app-text/lowdown/lowdown-1.0.1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
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 +} |