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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Aug 3 04:31:47 2008 UTC (11 years, 4 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
small purge since it caused problems for people
(Portage version: 2.2_rc1/cvs/Linux 2.6.22-vs2.2.0.7-gentoo 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.18.1.ebuild,v 1.3 2008/04/04 14:13:08 dragonheart 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 # below: bug #216096
49 sed -i -e 's:gssapi/gssapi.h:gssapi/gssapi_generic.h:g' configure.ac
50 eautoreconf
51 }
52
53 src_compile() {
54
55 myconf="$(use_enable ldap)
56 $(use_enable ldap ldaps)
57 $(use_with idn libidn)
58 $(use_with kerberos gssapi /usr)
59 $(use_with libssh2)
60 $(use_enable ipv6)
61 --enable-http
62 --enable-ftp
63 --enable-gopher
64 --enable-file
65 --enable-dict
66 --enable-manual
67 --enable-telnet
68 --enable-nonblocking
69 --enable-largefile
70 --enable-maintainer-mode
71 --disable-sspi
72 --without-krb4
73 --without-spnego"
74
75 if use ipv6 && use ares; then
76 elog "c-ares support disabled because it is incompatible with ipv6."
77 myconf="${myconf} --disable-ares"
78 else
79 myconf="${myconf} $(use_enable ares)"
80 fi
81
82 if use gnutls; then
83 myconf="${myconf} --without-ssl --with-gnutls --without-nss"
84 myconf="${myconf} --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
85 elif use nss; then
86 myconf="${myconf} --without-ssl --without-gnutls --with-nss"
87 myconf="${myconf} --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
88 elif use ssl; then
89 myconf="${myconf} --without-gnutls --without-nss --with-ssl"
90 myconf="${myconf} --without-ca-bundle --with-ca-path=/etc/ssl/certs"
91 else
92 myconf="${myconf} --without-gnutls --without-nss --without-ssl"
93 fi
94
95 econf ${myconf} || die 'configure failed'
96
97 emake || die "install failed for current version"
98 }
99
100 src_install() {
101 emake DESTDIR="${D}" install || die "installed failed for current version"
102 rm -rf "${D}"/etc/
103
104 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
105 insinto /usr/share/aclocal
106 doins docs/libcurl/libcurl.m4
107
108 dodoc CHANGES README
109 dodoc docs/FEATURES docs/INTERNALS
110 dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
111 }
112
113 pkg_postinst() {
114 if [[ -e "${ROOT}"/usr/$(get_libdir)/libcurl.so.3 ]] ; then
115 elog "You must re-compile all packages that are linked against"
116 elog "curl-7.15.* by using revdep-rebuild from gentoolkit:"
117 elog "# revdep-rebuild --library libcurl.so.3"
118 fi
119 }

  ViewVC Help
Powered by ViewVC 1.1.20