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

Contents of /net-misc/curl/curl-7.20.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Jun 12 16:45:13 2011 UTC (8 years, 6 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Remove overshadowed old version and patches.

(Portage version: 2.2.0_alpha39/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.20.0-r2.ebuild,v 1.7 2010/07/18 04:42:35 dragonheart 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/"
12 #SRC_URI="http://cool.haxx.se/curl-daily/${MY_P}.tar.bz2"
13 SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2"
14
15 LICENSE="MIT"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
18 IUSE="ares gnutls idn ipv6 kerberos ldap libssh2 nss ssl test"
19
20 RDEPEND="ldap? ( net-nds/openldap )
21 ssl? (
22 gnutls? ( net-libs/gnutls app-misc/ca-certificates )
23 nss? ( !gnutls? ( dev-libs/nss app-misc/ca-certificates ) )
24 !gnutls? ( !nss? ( dev-libs/openssl ) )
25 )
26 idn? ( net-dns/libidn )
27 ares? ( >=net-dns/c-ares-1.4.0 )
28 kerberos? ( virtual/krb5 )
29 libssh2? ( >=net-libs/libssh2-0.16 )"
30
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
41 pkg_setup() {
42 if ! use ssl && ( use gnutls || use nss ) ; then
43 ewarn "USE='gnutls nss' are ignored without USE='ssl'."
44 ewarn "Please review the local USE flags for this package."
45 fi
46 }
47
48 src_unpack() {
49 unpack ${A}
50 cd "${S}"
51 epatch "${FILESDIR}"/${P}-strip-ldflags.patch
52 epatch "${FILESDIR}"/${PN}-7.19.7-test241.patch \
53 "${FILESDIR}"/${P}-libcurlm4.patch
54 }
55
56 src_compile() {
57
58 myconf="$(use_enable ldap)
59 $(use_enable ldap ldaps)
60 $(use_with idn libidn)
61 $(use_with kerberos gssapi /usr)
62 $(use_with libssh2)
63 $(use_enable ipv6)
64 $(use_enable ares)
65 --enable-http
66 --enable-ftp
67 --enable-gopher
68 --enable-file
69 --enable-dict
70 --enable-manual
71 --enable-telnet
72 --enable-smtp
73 --enable-pop3
74 --enable-imap
75 --enable-rtsp
76 --enable-nonblocking
77 --enable-largefile
78 --enable-maintainer-mode
79 --disable-sspi
80 --without-krb4
81 --without-spnego"
82
83 if use ssl ; then
84 if use gnutls; then
85 myconf="${myconf} --without-ssl --with-gnutls --without-nss"
86 myconf="${myconf} --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
87 elif use nss; then
88 myconf="${myconf} --without-ssl --without-gnutls --with-nss"
89 myconf="${myconf} --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
90 else
91 myconf="${myconf} --without-gnutls --without-nss --with-ssl"
92 myconf="${myconf} --without-ca-bundle --with-ca-path=/etc/ssl/certs"
93 fi
94 else
95 myconf="${myconf} --without-gnutls --without-nss --without-ssl"
96 fi
97
98 econf ${myconf} || die 'configure failed'
99
100 emake || die "install failed for current version"
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install || die "installed failed for current version"
105 rm -rf "${D}"/etc/
106
107 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
108 insinto /usr/share/aclocal
109 doins docs/libcurl/libcurl.m4
110
111 dodoc CHANGES README
112 dodoc docs/FEATURES docs/INTERNALS
113 dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
114 }

  ViewVC Help
Powered by ViewVC 1.1.20