From db128a96d702b5b749aeaf7034265bee292b6d8b Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Fri, 21 Apr 2023 10:21:58 -0700 Subject: app-text/lowdown: Get rid of artificial libbsd dep (bug #904729) Closes: https://bugs.gentoo.org/904729 Signed-off-by: Patrick McLean --- app-text/lowdown/lowdown-1.0.1-r1.ebuild | 67 +++++++++++++++++++++++++++++++ app-text/lowdown/lowdown-1.0.1.ebuild | 68 -------------------------------- 2 files changed, 67 insertions(+), 68 deletions(-) create mode 100644 app-text/lowdown/lowdown-1.0.1-r1.ebuild delete mode 100644 app-text/lowdown/lowdown-1.0.1.ebuild (limited to 'app-text/lowdown') diff --git a/app-text/lowdown/lowdown-1.0.1-r1.ebuild b/app-text/lowdown/lowdown-1.0.1-r1.ebuild new file mode 100644 index 000000000000..9d1ea4a9509e --- /dev/null +++ b/app-text/lowdown/lowdown-1.0.1-r1.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.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)" \ + || die "./configure failed" +} + +src_compile() { + emake $(usex elibc_musl UTF8_LOCALE=C.UTF-8 '') +} + +src_test() { + LD_LIBRARY_PATH="${S}" emake regress +} diff --git a/app-text/lowdown/lowdown-1.0.1.ebuild b/app-text/lowdown/lowdown-1.0.1.ebuild deleted file mode 100644 index 177c7a8af1d3..000000000000 --- a/app-text/lowdown/lowdown-1.0.1.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# 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-65-gdbad