/[gentoo-x86]/dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild
Gentoo

Contents of /dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Mar 25 08:21:29 2012 UTC (2 years, 9 months ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Version bump. Drop old. Drop optional libwww support, bug 409549 by Pacho Ramos. Thank slepnoga for this work.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild,v 1.11 2011/07/25 10:21:06 angelos Exp $
4
5 EAPI=1
6
7 inherit eutils
8
9 DESCRIPTION="A lightweigt RPC library based on XML and HTTP"
10 SRC_URI="mirror://sourceforge/${PN}/${P/-c}.tgz"
11 HOMEPAGE="http://xmlrpc-c.sourceforge.net/"
12
13 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
14 IUSE="+curl threads"
15 LICENSE="BSD"
16 SLOT="0"
17
18 DEPEND="dev-libs/libxml2
19 curl? ( net-misc/curl )"
20
21 pkg_setup() {
22 if ! use curl
23 then
24 ewarn "Curl support disabled: No client library will be be built"
25 fi
26 }
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31 epatch "${FILESDIR}"/${P}-curl-easy-setopt.patch
32 epatch "${FILESDIR}"/${P}-abyss-header-fixup.patch
33
34 #CPP test suite doesn't pass, but if we were to get it to pass,
35 #this is needed to get it to build.
36 epatch "${FILESDIR}"/${P}-gcc43-test-fix.patch
37 epatch "${FILESDIR}"/${PN}-1.06.09-asneeded.patch
38 epatch "${FILESDIR}"/${PN}-1.05-pic.patch
39 epatch "${FILESDIR}"/${P}-curl-headers.patch
40
41 # Respect the user's CFLAGS/CXXFLAGS.
42 sed -i -e "/CFLAGS_COMMON/s:-g -O3$:${CFLAGS}:" Makefile.common
43 sed -i -e "/CXXFLAGS_COMMON/s:-g$:${CXXFLAGS}:" Makefile.common
44 }
45
46 src_compile() {
47 #Bug 214137: We need to filter this.
48 unset SRCDIR
49
50 # Respect the user's LDFLAGS.
51 export LADD=${LDFLAGS}
52 econf --disable-wininet-client --enable-libxml2-backend --disable-libwww-client \
53 $(use_enable threads abyss-threads) \
54 $(use_enable curl curl-client) || die "econf failed"
55 emake -j1 || die "emake failed"
56 }
57
58 src_test() {
59 unset SRCDIR
60 unset LDFLAGS LADD
61 cd "${S}"/src/test/
62 einfo "Building general tests"
63 make || die "Make of general tests failed"
64 einfo "Running general tests"
65 ./test || die "General tests failed"
66
67 #C++ tests. They fail.
68 #cd "${S}"/src/cpp/test
69 #einfo "Building C++ tests"
70 #make || die "Make of C++ tests failed"
71 #einfo "Running C++ tests"
72 #./test || die "C++ tests failed"
73 }
74
75 src_install() {
76 unset SRCDIR
77 emake -j1 DESTDIR="${D}" install || die "installation failed"
78
79 dodoc README doc/CREDITS doc/DEVELOPING doc/HISTORY doc/SECURITY doc/TESTING \
80 doc/TODO || die "installing docs failed"
81 }

  ViewVC Help
Powered by ViewVC 1.1.20