dev-libs/xmlrpc-epi: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Sun, 31 Dec 2017 12:08:18 +0000 (13:08 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 31 Dec 2017 12:44:08 +0000 (13:44 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

dev-libs/xmlrpc-epi/files/xmlrpc-epi-0.54.2-fix-build-system.patch [new file with mode: 0644]
dev-libs/xmlrpc-epi/xmlrpc-epi-0.54.2.ebuild

diff --git a/dev-libs/xmlrpc-epi/files/xmlrpc-epi-0.54.2-fix-build-system.patch b/dev-libs/xmlrpc-epi/files/xmlrpc-epi-0.54.2-fix-build-system.patch
new file mode 100644 (file)
index 0000000..0772836
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -218,8 +218,8 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = src sample
+-DIST_SUBDIRS = src sample
++SUBDIRS = src
++DIST_SUBDIRS = src
+ ACLOCAL_AMFLAGS = -I m4
+ CHANGE_LOG_GEN_BIN = scripts/cvs2cl.pl
+ CHANGE_LOG_GEN_FLAGS = -t -r -b --accum -I ChangeLog --gmt --prune
index c3a93596ff91cd45564cf2935c5173baa2490d7c..45df6e8ea2849916a71f5f750fa4bfd925d0e2a6 100644 (file)
@@ -1,9 +1,7 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="2"
-
-inherit multilib
+EAPI=6
 
 DESCRIPTION="Epinions implementation of XML-RPC protocol in C"
 HOMEPAGE="http://xmlrpc-epi.sourceforge.net/"
@@ -12,40 +10,32 @@ SRC_URI="mirror://sourceforge/xmlrpc-epi/${P}.tar.bz2"
 LICENSE="Epinions"
 SLOT="0"
 KEYWORDS="amd64 ~ppc ~x86"
-IUSE="examples static-libs"
+IUSE="static-libs"
 
-DEPEND="dev-libs/expat"
+DEPEND="dev-libs/expat:="
 RDEPEND="${DEPEND}"
 
-# NOTES:
-# to prevent conflict with xmlrpc-c, headers are installed in
-#      /usr/include/${PN} instead of /usr/include (bug 274291)
-
-src_prepare() {
-       # do not build examples
-       sed -i -e "s:sample::" Makefile.in || die "sed failed"
-}
+PATCHES=( "${FILESDIR}"/${PN}-0.54.2-fix-build-system.patch )
 
 src_configure() {
+       # NOTES:
+       # to prevent conflict with xmlrpc-c, headers are installed in
+       #       /usr/include/${PN} instead of /usr/include (bug 274291)
        econf \
-               --includedir=/usr/include/${PN} \
-               --disable-dependency-tracking \
+               --includedir="${EPREFIX}"/usr/include/${PN} \
                $(use_enable static-libs static)
 }
 
 src_install() {
-       emake DESTDIR="${D}" install || die "emake install failed"
+       default
 
        if ! use static-libs; then
-               # remove useless la files
-               rm "${D}"/usr/$(get_libdir)/lib${PN}.la || die "rm failed"
+               # remove useless .la files
+               find "${D}" -name '*.la' -delete || die
        fi
 
-       dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
-
-       if use examples; then
-               insinto "/usr/share/doc/${PF}/examples"
-               doins sample/*.c sample/*.php || die "doins failed"
-               doins -r sample/tests || die "doins failed"
-       fi
+       docinto examples
+       docompress -x /usr/share/doc/${PF}/examples
+       dodoc sample/*.c sample/*.php
+       dodoc -r sample/tests
 }