/[gentoo-x86]/net-misc/neon/neon-0.28.4.ebuild
Gentoo

Contents of /net-misc/neon/neon-0.28.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Aug 28 21:27:20 2009 UTC (10 years, 3 months ago) by betelgeuse
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Remove old security vulnerable versions that also used built_with_use.
(Portage version: 2.2_rc38/cvs/Linux i686)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/neon/neon-0.28.4.ebuild,v 1.7 2009/06/12 23:10:32 arfrever Exp $
4
5 inherit autotools eutils libtool versionator
6
7 RESTRICT="test"
8
9 DESCRIPTION="HTTP and WebDAV client library"
10 HOMEPAGE="http://www.webdav.org/neon/"
11 SRC_URI="http://www.webdav.org/neon/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
16 IUSE="doc expat gnutls kerberos nls pkcs11 socks5 ssl zlib"
17 IUSE_LINGUAS="cs de fr ja nn pl ru tr zh_CN"
18 for lingua in ${IUSE_LINGUAS}; do
19 IUSE="${IUSE} linguas_${lingua}"
20 done
21
22 RDEPEND="expat? ( dev-libs/expat )
23 !expat? ( dev-libs/libxml2 )
24 gnutls? (
25 >=net-libs/gnutls-2.0
26 pkcs11? ( dev-libs/pakchois )
27 )
28 !gnutls? ( ssl? (
29 >=dev-libs/openssl-0.9.6f
30 pkcs11? ( dev-libs/pakchois )
31 ) )
32 kerberos? ( virtual/krb5 )
33 nls? ( virtual/libintl )
34 socks5? ( net-proxy/dante )
35 zlib? ( sys-libs/zlib )"
36 DEPEND="${RDEPEND}"
37
38 src_unpack() {
39 unpack ${A}
40 cd "${S}"
41
42 local lingua linguas
43 for lingua in ${IUSE_LINGUAS}; do
44 use linguas_${lingua} && linguas="${linguas} ${lingua}"
45 done
46 sed -i -e "s/ALL_LINGUAS=.*/ALL_LINGUAS=\"${linguas}\"/g" configure.in
47 sed -i -e "s/socks5/socks/g" macros/neon.m4
48
49 epatch "${FILESDIR}/${P}-SOCK_CLOEXEC.patch"
50
51 AT_M4DIR="macros" eautoreconf
52 }
53
54 src_compile() {
55 local myconf
56
57 if has_version sys-libs/glibc; then
58 if built_with_use --missing true sys-libs/glibc nptlonly \
59 || built_with_use --missing true sys-libs/glibc nptl; then
60 einfo "Enabling SSL library thread-safety using POSIX threads..."
61 myconf="${myconf} --enable-threadsafe-ssl=posix"
62 fi
63 fi
64
65 if use expat; then
66 myconf="${myconf} --with-expat"
67 else
68 myconf="${myconf} --with-libxml2"
69 fi
70
71 if use gnutls; then
72 myconf="${myconf} --with-ssl=gnutls"
73 elif use ssl; then
74 myconf="${myconf} --with-ssl=openssl"
75 fi
76
77 econf \
78 --enable-static \
79 --enable-shared \
80 $(use_with kerberos gssapi) \
81 $(use_enable nls) \
82 $(use_with pkcs11 pakchois) \
83 $(use_with socks5 socks) \
84 $(use_with zlib) \
85 ${myconf}
86 emake || die "emake failed"
87 }
88
89 src_test() {
90 emake check || die "Trying make check without success."
91 }
92
93 src_install() {
94 emake DESTDIR="${D}" install-lib install-headers install-config install-nls || die "emake install failed"
95
96 if use doc; then
97 emake DESTDIR="${D}" install-docs || die "emake install-docs failed"
98 fi
99
100 dodoc AUTHORS BUGS NEWS README THANKS TODO
101 doman doc/man/*.[1-8]
102 }
103
104 pkg_postinst() {
105 ewarn "Neon has a policy of breaking API across minor versions, this means"
106 ewarn "that any package that links against neon may be broken after"
107 ewarn "updating. They will remain broken until they are ported to the"
108 ewarn "new API. You can downgrade neon to the previous version by doing:"
109 ewarn
110 ewarn " emerge --oneshot '<net-misc/neon-$(get_version_component_range 1-2 ${PV})'"
111 ewarn
112 ewarn "You may also have to downgrade any package that has already been"
113 ewarn "ported to the new API."
114 }

  ViewVC Help
Powered by ViewVC 1.1.20