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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Aug 2 21:35:06 2008 UTC (11 years, 2 months ago) by corsair
Branch: MAIN
Changes since 1.5: +2 -2 lines
Stable on ppc64; bug #233122
(Portage version: 2.1.4.4)

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.18.2.ebuild,v 1.5 2008/08/01 18:39:29 nixnut Exp $
4
5 # NOTE: If you bump this ebuild, make sure you bump dev-python/pycurl!
6
7 inherit libtool autotools
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 # TODO - change to openssl USE flag in the not too distant future
22 # https://bugs.gentoo.org/show_bug.cgi?id=207653#c3 (April 2008)
23
24 RDEPEND="gnutls? ( net-libs/gnutls app-misc/ca-certificates )
25 nss? ( !gnutls? ( dev-libs/nss app-misc/ca-certificates ) )
26 ssl? ( !gnutls? ( !nss? ( dev-libs/openssl app-misc/ca-certificates ) ) )
27 ldap? ( net-nds/openldap )
28 idn? ( net-dns/libidn )
29 ares? ( >=net-dns/c-ares-1.4.0 )
30 kerberos? ( virtual/krb5 )
31 libssh2? ( >=net-libs/libssh2-0.16 )"
32
33 # fbopenssl (not in gentoo) --with-spnego
34 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
35
36 DEPEND="${RDEPEND}
37 test? (
38 sys-apps/diffutils
39 dev-lang/perl
40 )"
41 # used - but can do without in self test: net-misc/stunnel
42 #S="${WORKDIR}"/${MY_P}
43
44 src_unpack() {
45 unpack ${A}
46 cd "${S}"
47 epatch "${FILESDIR}"/curl-7.17.0-strip-ldflags.patch
48 }
49
50 src_compile() {
51
52 myconf="$(use_enable ldap)
53 $(use_enable ldap ldaps)
54 $(use_with idn libidn)
55 $(use_with kerberos gssapi /usr)
56 $(use_with libssh2)
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 --without-krb4
70 --without-spnego"
71
72 if use ipv6 && use ares; then
73 elog "c-ares support disabled because it is incompatible with ipv6."
74 myconf="${myconf} --disable-ares"
75 else
76 myconf="${myconf} $(use_enable ares)"
77 fi
78
79 if use gnutls; then
80 myconf="${myconf} --without-ssl --with-gnutls --without-nss"
81 myconf="${myconf} --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
82 elif use nss; then
83 myconf="${myconf} --without-ssl --without-gnutls --with-nss"
84 myconf="${myconf} --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
85 elif use ssl; then
86 myconf="${myconf} --without-gnutls --without-nss --with-ssl"
87 myconf="${myconf} --without-ca-bundle --with-ca-path=/etc/ssl/certs"
88 else
89 myconf="${myconf} --without-gnutls --without-nss --without-ssl"
90 fi
91
92 econf ${myconf} || die 'configure failed'
93
94 emake || die "install failed for current version"
95 }
96
97 src_install() {
98 emake DESTDIR="${D}" install || die "installed failed for current version"
99 rm -rf "${D}"/etc/
100
101 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
102 insinto /usr/share/aclocal
103 doins docs/libcurl/libcurl.m4
104
105 dodoc CHANGES README
106 dodoc docs/FEATURES docs/INTERNALS
107 dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
108 }
109
110 pkg_postinst() {
111 if [[ -e "${ROOT}"/usr/$(get_libdir)/libcurl.so.3 ]] ; then
112 elog "You must re-compile all packages that are linked against"
113 elog "curl-7.15.* by using revdep-rebuild from gentoolkit:"
114 elog "# revdep-rebuild --library libcurl.so.3"
115 fi
116 }

  ViewVC Help
Powered by ViewVC 1.1.20