/[gentoo-x86]/net-misc/curl/curl-7.17.1.ebuild
Gentoo

Contents of /net-misc/curl/curl-7.17.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Mar 8 00:05:09 2009 UTC (10 years, 9 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
cleanup
(Portage version: 2.2_rc23/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.17.1.ebuild,v 1.9 2008/12/07 11:05:47 vapier Exp $
4
5 # NOTE: If you bump this ebuild, make sure you bump dev-python/pycurl!
6
7 inherit libtool eutils
8
9 #MY_P=${P/_pre/-}
10 DESCRIPTION="A Client that groks URLs"
11 HOMEPAGE="http://curl.haxx.se/ http://curl.planetmirror.com"
12 #SRC_URI="http://cool.haxx.se/curl-daily/${MY_P}.tar.bz2"
13 SRC_URI="http://curl.planetmirror.com/download/${P}.tar.bz2"
14
15 LICENSE="MIT X11"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
18 IUSE="ssl ipv6 ldap ares gnutls nss idn kerberos test"
19 #IUSE="ssl ipv6 ldap ares gnutls libssh2 nss idn kerberos test"
20
21 RDEPEND="gnutls? ( net-libs/gnutls app-misc/ca-certificates )
22 nss? ( !gnutls? ( dev-libs/nss app-misc/ca-certificates ) )
23 ssl? ( !gnutls? ( !nss? ( dev-libs/openssl app-misc/ca-certificates ) ) )
24 ldap? ( net-nds/openldap )
25 idn? ( net-dns/libidn )
26 ares? ( >=net-dns/c-ares-1.4.0 )
27 kerberos? ( virtual/krb5 )"
28 # libssh2? ( >=net-libs/libssh2-0.16 )"
29
30 # net-libs/libssh2 (masked) --with-libssh2
31 # fbopenssl (not in gentoo) --with-spnego
32 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
33
34 DEPEND="${RDEPEND}
35 test? (
36 sys-apps/diffutils
37 dev-lang/perl
38 )"
39 # used - but can do without in self test: net-misc/stunnel
40 #S="${WORKDIR}"/${MY_P}
41
42 src_unpack() {
43 unpack ${A}
44 cd "${S}"
45 # epatch "${FILESDIR}"/${P}-strip-ldflags.patch
46 epatch "${FILESDIR}"/curl-7.16.2-strip-ldflags.patch
47 epatch "${FILESDIR}"/${P}-null-handler-segfault.patch
48 elibtoolize
49 }
50
51 src_compile() {
52
53 myconf="$(use_enable ldap)
54 $(use_enable ldap ldaps)
55 $(use_with idn libidn)
56 $(use_with kerberos gssapi /usr)
57 $(use_enable ipv6)
58 --enable-http
59 --enable-ftp
60 --enable-gopher
61 --enable-file
62 --enable-dict
63 --enable-manual
64 --enable-telnet
65 --enable-nonblocking
66 --enable-largefile
67 --enable-maintainer-mode
68 --disable-sspi
69 --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
70 --without-krb4
71 --without-libssh2
72 --without-spnego"
73 # $(use_with libssh2)
74
75 if use ldap && use kerberos; then
76 die 'ldap and kerberos (gssapi) not playing nicely try version >=7.18.1'
77 fi
78
79 if use ipv6 && use ares; then
80 elog "c-ares support disabled because it is incompatible with ipv6."
81 myconf="${myconf} --disable-ares"
82 else
83 myconf="${myconf} $(use_enable ares)"
84 fi
85
86 if use gnutls; then
87 myconf="${myconf} --without-ssl --with-gnutls --without-nss"
88 elif use nss; then
89 myconf="${myconf} --without-ssl --without-gnutls --with-nss"
90 elif use ssl; then
91 myconf="${myconf} --without-gnutls --without-nss --with-ssl"
92 else
93 myconf="${myconf} --without-gnutls --without-nss --without-ssl"
94 fi
95
96 econf ${myconf} || die 'configure failed'
97 emake || die "install failed for current version"
98 }
99
100 src_test() {
101 if use gnutls; then
102 elog 'disabling test 405 ftps as gnutls does differing return codes'
103 elog 'that the test case does not allow for. '
104 elog 'https://bugs.gentoo.org/show_bug.cgi?id=204130 refers'
105 cd "${S}"/tests
106 ./runtests.pl -a -s '!405' || die 'self test failed'
107 else
108 make check || die 'self test failed'
109 fi
110 }
111
112 src_install() {
113 emake DESTDIR="${D}" install || die "installed failed for current version"
114 rm -rf "${D}"/etc/
115
116 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
117 insinto /usr/share/aclocal
118 doins docs/libcurl/libcurl.m4
119
120 dodoc CHANGES README
121 dodoc docs/FEATURES docs/INTERNALS
122 dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
123 }
124
125 pkg_postinst() {
126 if [[ -e "${ROOT}"/usr/$(get_libdir)/libcurl.so.3 ]] ; then
127 elog "You must re-compile all packages that are linked against"
128 elog "curl-7.15.* by using revdep-rebuild from gentoolkit:"
129 elog "# revdep-rebuild --library libcurl.so.3"
130 fi
131 }

  ViewVC Help
Powered by ViewVC 1.1.20