diff options
author | Sam James <sam@gentoo.org> | 2023-01-16 16:04:22 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-16 16:05:08 +0000 |
commit | 2575ec6caaa80ed8d3c9361312c797837c7c2ec3 (patch) | |
tree | 87fd6e282e103bb8ce2676c13d0f9e1357372790 /sys-apps/ed/ed-1.19-r1.ebuild | |
parent | app-misc/ranger: add myself as a maintainer (diff) | |
download | gentoo-2575ec6caaa80ed8d3c9361312c797837c7c2ec3.tar.gz gentoo-2575ec6caaa80ed8d3c9361312c797837c7c2ec3.tar.bz2 gentoo-2575ec6caaa80ed8d3c9361312c797837c7c2ec3.zip |
sys-apps/ed: workaround unpacker.eclass/Portage dep resolution bug
1. unpacker_src_uri_depends doesn't flatten the deps (bug #891133) and emits
several || ( ... ) blocks (4).
2. Portage doesn't handle several repeated identical || ( ...) blocks correctly
and takes ages to resolve (bug #891137). It should merge them together.
Bug: https://bugs.gentoo.org/891137
Bug: https://bugs.gentoo.org/891133
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/ed/ed-1.19-r1.ebuild')
-rw-r--r-- | sys-apps/ed/ed-1.19-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sys-apps/ed/ed-1.19-r1.ebuild b/sys-apps/ed/ed-1.19-r1.ebuild new file mode 100644 index 000000000000..8f805d415665 --- /dev/null +++ b/sys-apps/ed/ed-1.19-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/antoniodiazdiaz.asc +inherit edo toolchain-funcs unpacker verify-sig + +MY_P="${PN}-${PV/_/-}" + +DESCRIPTION="Your basic line editor" +HOMEPAGE="https://www.gnu.org/software/ed/" +SRC_URI=" + mirror://gnu/ed/${MY_P}.tar.lz + https://download.savannah.gnu.org/releases/ed/${MY_P}.tar.lz + verify-sig? ( + mirror://gnu/ed/${MY_P}.tar.lz.sig + https://download.savannah.gnu.org/releases/ed/${MY_P}.tar.lz.sig + ) +" +S="${WORKDIR}"/${MY_P} + +LICENSE="GPL-2+" +SLOT="0" +if [[ ${PV} != *_rc* ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +# We don't use unpacker_src_uri_depends here right now because: +# 1. unpacker_src_uri_depends doesn't flatten the deps (bug #891133) and emits +# several || ( ... ) blocks (4). +# 2. Portage doesn't handle several repeated identical || ( ...) blocks correctly +# and takes ages to resolve (bug #891137). It should merge them together. +BDEPEND=" + sys-apps/texinfo + || ( + >=app-arch/xz-utils-5.4.0 + app-arch/plzip + app-arch/pdlzip + app-arch/lzip + ) + verify-sig? ( sec-keys/openpgp-keys-antoniodiazdiaz ) +" + +src_unpack() { + use verify-sig && verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.lz{,.sig} + unpacker "${DISTDIR}"/${MY_P}.tar.lz +} + +src_configure() { + edo ./configure \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + --bindir="${EPREFIX}/bin" \ + --prefix="${EPREFIX}/usr" +} |