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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Jun 22 20:13:06 2010 UTC (9 years, 5 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
net-misc/neon renamed to net-libs/neon.

1 # Copyright 1999-2010 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.29.3.ebuild,v 1.8 2010/05/16 19:50:58 hwoarang Exp $
4
5 EAPI="2"
6
7 inherit autotools libtool versionator eutils
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 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16 IUSE="doc expat gnutls kerberos libproxy nls pkcs11 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 libproxy? ( net-libs/libproxy )
36 nls? ( virtual/libintl )
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
47 epatch "${FILESDIR}"/neon-0.29-sni-fix.patch
48
49 AT_M4DIR="macros" eautoreconf
50
51 elibtoolize
52 }
53
54 src_configure() {
55 local myconf
56
57 if has_version sys-libs/glibc; then
58 einfo "Enabling SSL library thread-safety using POSIX threads..."
59 myconf+=" --enable-threadsafe-ssl=posix"
60 fi
61
62 if use expat; then
63 myconf+=" --with-expat"
64 else
65 myconf+=" --with-libxml2"
66 fi
67
68 if use gnutls; then
69 myconf+=" --with-ssl=gnutls --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
70 elif use ssl; then
71 myconf+=" --with-ssl=openssl"
72 fi
73
74 econf \
75 --enable-static \
76 --enable-shared \
77 $(use_with kerberos gssapi) \
78 $(use_with libproxy) \
79 $(use_enable nls) \
80 $(use_with pkcs11 pakchois) \
81 $(use_with zlib) \
82 ${myconf}
83 }
84
85 src_install() {
86 emake DESTDIR="${D}" install-lib install-headers install-config install-nls || die "emake install failed"
87
88 if use doc; then
89 emake DESTDIR="${D}" install-docs || die "emake install-docs failed"
90 fi
91
92 dodoc AUTHORS BUGS NEWS README THANKS TODO
93 doman doc/man/*.[1-8]
94 }
95
96 pkg_postinst() {
97 ewarn "Neon has a policy of breaking API across minor versions, this means"
98 ewarn "that any package that links against Neon may be broken after"
99 ewarn "updating. They will remain broken until they are ported to the"
100 ewarn "new API. You can downgrade Neon to the previous version by doing:"
101 ewarn
102 ewarn " emerge --oneshot '<net-misc/neon-$(get_version_component_range 1-2 ${PV})'"
103 ewarn
104 ewarn "You may also have to downgrade any package that has not been"
105 ewarn "ported to the new API yet."
106 }

  ViewVC Help
Powered by ViewVC 1.1.20