app-text/xmlstarlet: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Tue, 21 Jan 2020 21:50:43 +0000 (22:50 +0100)
committerDavid Seifert <soap@gentoo.org>
Tue, 21 Jan 2020 21:50:43 +0000 (22:50 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild

index 96f6d174f1ce321f752e40dd00a77d9d5f430ad1..48e432677af1d865d7486a8c408b8f8b0a16f6d0 100644 (file)
@@ -1,7 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=7
+
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="A set of tools to transform, query, validate, and edit XML documents"
 HOMEPAGE="http://xmlstar.sourceforge.net/"
@@ -10,30 +12,28 @@ SRC_URI="mirror://sourceforge/xmlstar/${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE=""
 
-RDEPEND=">=dev-libs/libxml2-2.6.27
-       >=dev-libs/libxslt-1.1.9
-       dev-libs/libgcrypt:0
+RDEPEND="
+       dev-libs/libxml2
+       dev-libs/libxslt
+       dev-libs/libgcrypt:0=
        virtual/libiconv"
-
-DEPEND="${RDEPEND}
-       sys-apps/sed"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
 src_configure() {
+       append-cppflags $($(tc-getPKG_CONFIG) --cflags libxml-2.0)
+
        # NOTE: Fully built documentation is already shipped with the tarball:
        # - doc/xmlstarlet-ug.{pdf,ps,html}
        # - doc/xmlstarlet.txt
        # - doc/xmlstarlet.1
        econf \
-               --docdir="${EPREFIX}/usr/share/doc/${PF}" \
                --disable-build-docs \
-               --disable-static-libs \
-               --disable-silent-rules
+               --disable-static-libs
 }
 
 src_install() {
        default
-
        dosym xml /usr/bin/xmlstarlet
 }