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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Dec 26 12:04:28 2012 UTC (20 months, 3 weeks ago) by maksbotan
Branch: MAIN
Bump to 1.32.05, bug #443872. Thanks to slepnoga.

(Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key F8DBDADE)

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.3 2012/10/31 02:49:16 ottxor 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="http://dev.gentoo.org/~maksbotan/${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"
28
29 REQUIRED_USE="test? ( static-libs abyss curl cxx )"
30
31 DEPEND="
32 sys-libs/ncurses
33 sys-libs/readline
34 curl? ( net-misc/curl )
35 libxml2? ( dev-libs/libxml2 )"
36
37 RDEPEND="${DEPEND}"
38
39 S="${WORKDIR}/advanced"
40
41 pkg_setup() {
42 use curl || ewarn "Curl support disabled: No client library will be be built"
43 }
44
45 #Bug 214137: We need to filter this.
46 unset SRCDIR
47
48 # Bug 255440
49 export LC_ALL=C
50 export LANG=C
51
52 src_prepare() {
53 sed -i \
54 -e "/CFLAGS_COMMON/s|-g -O3$||" \
55 -e "/CXXFLAGS_COMMON/s|-g$||" \
56 "${S}"/common.mk || die
57
58 export LADD=${LDFLAGS} # Respect the user's LDFLAGS.
59
60 use static-libs || { sed \
61 -e '/\(^TARGET_STATIC_LIBRARIES =\)/{s:\(^TARGET_STATIC_LIBRARIES =\).*:\1:;P;N;d;}' \
62 -i common.mk || die; }
63 }
64
65 src_configure() {
66 #Disable libwww support due GBZ #409549 and #320253
67
68 econf --disable-wininet-client \
69 $(use_enable libxml2 libxml2-backend) \
70 --disable-libwww-client \
71 --without-libwww-ssl \
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