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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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.4: +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.5.ebuild,v 1.4 2009/08/09 18:58:07 jer Exp $
4
5 EAPI="2"
6
7 inherit autotools libtool versionator
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 ~x86 ~sparc-fbsd ~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+=" linguas_${lingua}"
20 done
21 unset lingua
22 RESTRICT="test"
23
24 RDEPEND="expat? ( dev-libs/expat )
25 !expat? ( dev-libs/libxml2 )
26 gnutls? (
27 >=net-libs/gnutls-2.0
28 pkcs11? ( dev-libs/pakchois )
29 )
30 !gnutls? ( ssl? (
31 >=dev-libs/openssl-0.9.6f
32 pkcs11? ( dev-libs/pakchois )
33 ) )
34 kerberos? ( virtual/krb5 )
35 nls? ( virtual/libintl )
36 socks5? ( net-proxy/dante )
37 zlib? ( sys-libs/zlib )"
38 DEPEND="${RDEPEND}"
39
40 src_prepare() {
41 local lingua linguas
42 for lingua in ${IUSE_LINGUAS}; do
43 use linguas_${lingua} && linguas+=" ${lingua}"
44 done
45 sed -i -e "s/ALL_LINGUAS=.*/ALL_LINGUAS=\"${linguas}\"/g" configure.in
46 sed -i -e "s/socks5/socks/g" macros/neon.m4
47
48 AT_M4DIR="macros" eautoreconf
49
50 elibtoolize
51 }
52
53 src_configure() {
54 local myconf
55
56 if has_version sys-libs/glibc; then
57 einfo "Enabling SSL library thread-safety using POSIX threads..."
58 myconf+=" --enable-threadsafe-ssl=posix"
59 fi
60
61 if use expat; then
62 myconf+=" --with-expat"
63 else
64 myconf+=" --with-libxml2"
65 fi
66
67 if use gnutls; then
68 myconf+=" --with-ssl=gnutls"
69 elif use ssl; then
70 myconf+=" --with-ssl=openssl"
71 fi
72
73 econf \
74 --enable-static \
75 --enable-shared \
76 $(use_with kerberos gssapi) \
77 $(use_enable nls) \
78 $(use_with pkcs11 pakchois) \
79 $(use_with socks5 socks) \
80 $(use_with zlib) \
81 ${myconf}
82 }
83
84 src_install() {
85 emake DESTDIR="${D}" install-lib install-headers install-config install-nls || die "emake install failed"
86
87 if use doc; then
88 emake DESTDIR="${D}" install-docs || die "emake install-docs failed"
89 fi
90
91 dodoc AUTHORS BUGS NEWS README THANKS TODO
92 doman doc/man/*.[1-8]
93 }
94
95 pkg_postinst() {
96 ewarn "Neon has a policy of breaking API across minor versions, this means"
97 ewarn "that any package that links against Neon may be broken after"
98 ewarn "updating. They will remain broken until they are ported to the"
99 ewarn "new API. You can downgrade Neon to the previous version by doing:"
100 ewarn
101 ewarn " emerge --oneshot '<net-misc/neon-$(get_version_component_range 1-2 ${PV})'"
102 ewarn
103 ewarn "You may also have to downgrade any package that has not been"
104 ewarn "ported to the new API yet."
105 }

  ViewVC Help
Powered by ViewVC 1.1.20