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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 31 02:49:16 2012 UTC (21 months, 3 weeks ago) by ottxor
Branch: MAIN
Changes since 1.2: +2 -2 lines
added prefix keywords

(Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key C2000586)

1 # Copyright 1999-2012 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.29.02.ebuild,v 1.2 2012/03/25 20:56:35 mr_bones_ Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib
8
9 # Maintainer notes: Take a look at http://xmlrpc-c.sourceforge.net/release.html
10 # We use "advanced" branch, so for the current release revision take look here:
11 # http://xmlrpc-c.svn.sourceforge.net/viewvc/xmlrpc-c/advanced/version.mk?view=log
12 # e.g. for 1.27.05 corresponds following revision 2182 and thus following URL:
13 # http://xmlrpc-c.svn.sourceforge.net/viewvc/xmlrpc-c/advanced.tar.gz?view=tar&pathrev=2182
14 # Note: autogenerated tarball checksum changes every download, thus download it
15 # manually and distribute on mirrors.
16 # It's possible to build net-libs/libwww without ssl support, but taking into
17 # account that libwww is not really well maintained and upstream is dead we
18 # better use it only in case ssl is required.
19
20 DESCRIPTION="A lightweigt RPC library based on XML and HTTP"
21 HOMEPAGE="http://xmlrpc-c.sourceforge.net/"
22 SRC_URI="mirror://gentoo/${P}.tar.gz"
23
24 LICENSE="BSD"
25 SLOT="0"
26 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ppc-aix ~x86-freebsd ~hppa-hpux ~ia64-hpux ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
27 IUSE="abyss +cgi +curl +cxx +libxml2 static-libs threads tools"
28
29 REQUIRED_USE="test? ( static-libs abyss curl cxx )"
30
31 DEPEND="
32 tools? ( dev-perl/frontier-rpc
33 sys-libs/readline )
34 curl? ( net-misc/curl )
35 libxml2? ( dev-libs/libxml2 )"
36 RDEPEND="${DEPEND}"
37
38 S="${WORKDIR}/advanced"
39
40 pkg_setup() {
41 use curl || ewarn "Curl support disabled: No client library will be be built"
42 }
43
44 #Bug 214137: We need to filter this.
45 unset SRCDIR
46
47 # Bug 255440
48 export LC_ALL=C
49 export LANG=C
50
51 src_prepare() {
52 sed -i \
53 -e "/CFLAGS_COMMON/s|-g -O3$||" \
54 -e "/CXXFLAGS_COMMON/s|-g$||" \
55 "${S}"/common.mk || die
56
57 export LADD=${LDFLAGS} # Respect the user's LDFLAGS.
58
59 use static-libs || { sed \
60 -e '/\(^TARGET_STATIC_LIBRARIES =\)/{s:\(^TARGET_STATIC_LIBRARIES =\).*:\1:;P;N;d;}' \
61 -i common.mk || die; }
62 }
63
64 src_configure() {
65 #Disable libwww support due GBZ #409549 and #320253
66
67 econf --disable-wininet-client \
68 $(use_enable libxml2 libxml2-backend) \
69 --disable-libwww-client \
70 --disable-libwww-ssl \
71 $(use_enable tools) \
72 $(use_enable threads abyss-threads) \
73 $(use_enable cgi cgi-server) \
74 $(use_enable abyss abyss-server) \
75 $(use_enable cxx cplusplus) \
76 $(use_enable curl curl-client)
77 }
78
79 src_compile() {
80 emake -r
81 }
82
83 src_test() {
84 unset LDFLAGS LADD SRCDIR
85 cd "${S}"/test/
86 einfo "Building general tests"
87 make || die "Make of general tests failed"
88 einfo "Running general tests"
89 ./test || die "General tests failed"
90 cd "${S}"/test/cpp/
91 einfo "Running C++ tests"
92 ./test || die "C++ tests failed"
93 }

  ViewVC Help
Powered by ViewVC 1.1.20