diff options
author | Sam James <sam@gentoo.org> | 2021-01-24 17:16:37 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-01-24 17:26:22 +0000 |
commit | 94f4e55006a4ae7ea61c4204d29874e05979f71a (patch) | |
tree | 83335d5a60d10bed337cf87198b65b7b18f7767d /app-text/build-docbook-catalog | |
parent | app-arch/pigz: Bump to version 2.5 (diff) | |
download | gentoo-94f4e55006a4ae7ea61c4204d29874e05979f71a.tar.gz gentoo-94f4e55006a4ae7ea61c4204d29874e05979f71a.tar.bz2 gentoo-94f4e55006a4ae7ea61c4204d29874e05979f71a.zip |
app-text/build-docbook-catalog: port to EAPI 7
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text/build-docbook-catalog')
-rw-r--r-- | app-text/build-docbook-catalog/build-docbook-catalog-1.21.ebuild | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/app-text/build-docbook-catalog/build-docbook-catalog-1.21.ebuild b/app-text/build-docbook-catalog/build-docbook-catalog-1.21.ebuild index debf2a49806b..e742d2865f52 100644 --- a/app-text/build-docbook-catalog/build-docbook-catalog-1.21.ebuild +++ b/app-text/build-docbook-catalog/build-docbook-catalog-1.21.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 DESCRIPTION="DocBook XML catalog auto-updater" HOMEPAGE="https://sources.gentoo.org/gentoo-src/build-docbook-catalog/" @@ -11,23 +11,27 @@ SRC_URI="mirror://gentoo/${P}.tar.xz LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~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" -IUSE="" -RDEPEND="|| ( sys-apps/util-linux app-misc/getopt ) +RDEPEND=" + dev-libs/libxml2 + || ( sys-apps/util-linux app-misc/getopt ) !<app-text/docbook-xsl-stylesheets-1.73.1 - dev-libs/libxml2" -DEPEND="" - -pkg_setup() { - # export for bug #490754 - export MAKEOPTS+=" EPREFIX=${EPREFIX}" -} +" src_prepare() { + default + sed -i -e "/^EPREFIX=/s:=.*:='${EPREFIX}':" build-docbook-catalog || die has_version sys-apps/util-linux || sed -i -e '/^GETOPT=/s/getopt/&-long/' build-docbook-catalog || die } +src_configure() { + # export for bug #490754 + export MAKEOPTS+=" EPREFIX=${EPREFIX}" + + default +} + pkg_postinst() { # New version -> regen files build-docbook-catalog |