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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Mar 11 18:01:15 2010 UTC (9 years, 8 months ago) by spatz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Version bump (bug 306097), remove old.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

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/curl/curl-7.19.4.ebuild,v 1.6 2010/02/11 17:08:45 ulm Exp $
4
5 # NOTE: If you bump this ebuild, make sure you bump dev-python/pycurl!
6
7 inherit multilib 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 SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2"
15
16 LICENSE="MIT"
17 SLOT="0"
18 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
19 #IUSE="ssl ipv6 ldap ares gnutls nss idn kerberos test"
20 IUSE="ssl ipv6 ldap ares gnutls libssh2 nss idn kerberos test"
21
22 # TODO - change to openssl USE flag in the not too distant future
23 # https://bugs.gentoo.org/show_bug.cgi?id=207653#c3 (April 2008)
24
25 RDEPEND="gnutls? ( net-libs/gnutls app-misc/ca-certificates )
26 nss? ( !gnutls? ( dev-libs/nss app-misc/ca-certificates ) )
27 ssl? ( !gnutls? ( !nss? ( dev-libs/openssl app-misc/ca-certificates ) ) )
28 ldap? ( net-nds/openldap )
29 idn? ( net-dns/libidn )
30 ares? ( >=net-dns/c-ares-1.4.0 )
31 kerberos? ( virtual/krb5 )
32 libssh2? ( >=net-libs/libssh2-0.16 )"
33
34 # fbopenssl (not in gentoo) --with-spnego
35 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
36
37 DEPEND="${RDEPEND}
38 test? (
39 sys-apps/diffutils
40 dev-lang/perl
41 )"
42 # used - but can do without in self test: net-misc/stunnel
43 #S="${WORKDIR}"/${MY_P}
44
45 src_unpack() {
46 unpack ${A}
47 cd "${S}"
48 epatch "${FILESDIR}"/curl-7.17.0-strip-ldflags.patch
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_with libssh2)
58 $(use_enable ipv6)
59 --enable-http
60 --enable-ftp
61 --enable-gopher
62 --enable-file
63 --enable-dict
64 --enable-manual
65 --enable-telnet
66 --enable-nonblocking
67 --enable-largefile
68 --enable-maintainer-mode
69 --disable-sspi
70 --without-krb4
71 --without-spnego"
72
73 if use ipv6 && use ares; then
74 elog "c-ares support disabled because it is incompatible with ipv6."
75 myconf="${myconf} --disable-ares"
76 else
77 myconf="${myconf} $(use_enable ares)"
78 fi
79
80 if use gnutls; then
81 myconf="${myconf} --without-ssl --with-gnutls --without-nss"
82 myconf="${myconf} --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
83 elif use nss; then
84 myconf="${myconf} --without-ssl --without-gnutls --with-nss"
85 myconf="${myconf} --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
86 elif use ssl; then
87 myconf="${myconf} --without-gnutls --without-nss --with-ssl"
88 myconf="${myconf} --without-ca-bundle --with-ca-path=/etc/ssl/certs"
89 else
90 myconf="${myconf} --without-gnutls --without-nss --without-ssl"
91 fi
92
93 econf ${myconf} || die 'configure failed'
94
95 emake || die "install failed for current version"
96 }
97
98 src_install() {
99 emake DESTDIR="${D}" install || die "installed failed for current version"
100 rm -rf "${D}"/etc/
101
102 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
103 insinto /usr/share/aclocal
104 doins docs/libcurl/libcurl.m4
105
106 dodoc CHANGES README
107 dodoc docs/FEATURES docs/INTERNALS
108 dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
109 }

  ViewVC Help
Powered by ViewVC 1.1.20