Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/xmlrpc-epi/, dev-libs/xmlrpc-epi/files/
Date: Sun, 31 Dec 2017 12:44:39
Message-Id: 1514724248.a1f99240a7ba4a1320c5f5c5c6adb9f83330b4fa.soap@gentoo
1 commit: a1f99240a7ba4a1320c5f5c5c6adb9f83330b4fa
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 31 12:08:18 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 31 12:44:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1f99240
7
8 dev-libs/xmlrpc-epi: Port to EAPI 6
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 .../files/xmlrpc-epi-0.54.2-fix-build-system.patch | 13 +++++++
13 dev-libs/xmlrpc-epi/xmlrpc-epi-0.54.2.ebuild | 42 +++++++++-------------
14 2 files changed, 29 insertions(+), 26 deletions(-)
15
16 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
17 new file mode 100644
18 index 00000000000..0772836e6ba
19 --- /dev/null
20 +++ b/dev-libs/xmlrpc-epi/files/xmlrpc-epi-0.54.2-fix-build-system.patch
21 @@ -0,0 +1,13 @@
22 +--- a/Makefile.in
23 ++++ b/Makefile.in
24 +@@ -218,8 +218,8 @@
25 + top_build_prefix = @top_build_prefix@
26 + top_builddir = @top_builddir@
27 + top_srcdir = @top_srcdir@
28 +-SUBDIRS = src sample
29 +-DIST_SUBDIRS = src sample
30 ++SUBDIRS = src
31 ++DIST_SUBDIRS = src
32 + ACLOCAL_AMFLAGS = -I m4
33 + CHANGE_LOG_GEN_BIN = scripts/cvs2cl.pl
34 + CHANGE_LOG_GEN_FLAGS = -t -r -b --accum -I ChangeLog --gmt --prune
35
36 diff --git a/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54.2.ebuild b/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54.2.ebuild
37 index c3a93596ff9..45df6e8ea28 100644
38 --- a/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54.2.ebuild
39 +++ b/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54.2.ebuild
40 @@ -1,9 +1,7 @@
41 -# Copyright 1999-2012 Gentoo Foundation
42 +# Copyright 1999-2017 Gentoo Foundation
43 # Distributed under the terms of the GNU General Public License v2
44
45 -EAPI="2"
46 -
47 -inherit multilib
48 +EAPI=6
49
50 DESCRIPTION="Epinions implementation of XML-RPC protocol in C"
51 HOMEPAGE="http://xmlrpc-epi.sourceforge.net/"
52 @@ -12,40 +10,32 @@ SRC_URI="mirror://sourceforge/xmlrpc-epi/${P}.tar.bz2"
53 LICENSE="Epinions"
54 SLOT="0"
55 KEYWORDS="amd64 ~ppc ~x86"
56 -IUSE="examples static-libs"
57 +IUSE="static-libs"
58
59 -DEPEND="dev-libs/expat"
60 +DEPEND="dev-libs/expat:="
61 RDEPEND="${DEPEND}"
62
63 -# NOTES:
64 -# to prevent conflict with xmlrpc-c, headers are installed in
65 -# /usr/include/${PN} instead of /usr/include (bug 274291)
66 -
67 -src_prepare() {
68 - # do not build examples
69 - sed -i -e "s:sample::" Makefile.in || die "sed failed"
70 -}
71 +PATCHES=( "${FILESDIR}"/${PN}-0.54.2-fix-build-system.patch )
72
73 src_configure() {
74 + # NOTES:
75 + # to prevent conflict with xmlrpc-c, headers are installed in
76 + # /usr/include/${PN} instead of /usr/include (bug 274291)
77 econf \
78 - --includedir=/usr/include/${PN} \
79 - --disable-dependency-tracking \
80 + --includedir="${EPREFIX}"/usr/include/${PN} \
81 $(use_enable static-libs static)
82 }
83
84 src_install() {
85 - emake DESTDIR="${D}" install || die "emake install failed"
86 + default
87
88 if ! use static-libs; then
89 - # remove useless la files
90 - rm "${D}"/usr/$(get_libdir)/lib${PN}.la || die "rm failed"
91 + # remove useless .la files
92 + find "${D}" -name '*.la' -delete || die
93 fi
94
95 - dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
96 -
97 - if use examples; then
98 - insinto "/usr/share/doc/${PF}/examples"
99 - doins sample/*.c sample/*.php || die "doins failed"
100 - doins -r sample/tests || die "doins failed"
101 - fi
102 + docinto examples
103 + docompress -x /usr/share/doc/${PF}/examples
104 + dodoc sample/*.c sample/*.php
105 + dodoc -r sample/tests
106 }