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

Contents of /net-misc/curl/curl-7.17.0_pre20070828.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Oct 14 06:40:18 2007 UTC (12 years, 2 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
revision snapshot to fix bug #195706. thanks Christoph Mende and Daniel Stenberg. removed older versions
(Portage version: 2.1.3.9)

1 # Copyright 1999-2007 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.0_pre20070828.ebuild,v 1.2 2007/08/29 07:11:27 mr_bones_ 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 ~x86 ~x86-fbsd"
18 IUSE="ssl ipv6 ldap ares gnutls nss idn kerberos test"
19
20 RDEPEND="gnutls? ( net-libs/gnutls )
21 nss? ( !gnutls? ( dev-libs/nss ) )
22 ssl? ( !gnutls? ( !nss? ( dev-libs/openssl ) ) )
23 ldap? ( net-nds/openldap )
24 idn? ( net-dns/libidn )
25 ares? ( >=net-dns/c-ares-1.4.0 )
26 kerberos? ( virtual/krb5 )
27 app-misc/ca-certificates"
28
29 # net-libs/libssh2 (masked) --with-libssh2
30 # fbopenssl (not in gentoo) --with-spnego
31 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
32
33 DEPEND="${RDEPEND}
34 test? (
35 sys-apps/diffutils
36 dev-lang/perl
37 )"
38 # used - but can do without in self test: net-misc/stunnel
39 S="${WORKDIR}"/${MY_P}
40
41 src_unpack() {
42 unpack ${A}
43 cd "${S}"
44 # epatch "${FILESDIR}"/${P}-strip-ldflags.patch
45 epatch "${FILESDIR}"/curl-7.16.2-strip-ldflags.patch
46 elibtoolize
47 }
48
49 src_compile() {
50
51 myconf="$(use_enable ldap)
52 $(use_with idn libidn)
53 $(use_enable kerberos gssapi)
54 $(use_enable ipv6)
55 --enable-http
56 --enable-ftp
57 --enable-gopher
58 --enable-file
59 --enable-dict
60 --enable-manual
61 --enable-telnet
62 --enable-nonblocking
63 --enable-largefile
64 --enable-maintainer-mode
65 --disable-sspi
66 --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
67 --without-krb4
68 --without-libssh2
69 --without-spnego"
70
71 if use ipv6 && use ares; then
72 elog "c-ares support disabled because it is incompatible with ipv6."
73 myconf="${myconf} --disable-ares"
74 else
75 myconf="${myconf} $(use_enable ares)"
76 fi
77
78 if use gnutls; then
79 myconf="${myconf} --without-ssl --with-gnutls --without-nss"
80 elif use nss; then
81 myconf="${myconf} --without-ssl --without-gnutls --with-nss"
82 elif use ssl; then
83 myconf="${myconf} --without-gnutls --without-nss --with-ssl"
84 else
85 myconf="${myconf} --without-gnutls --without-nss --without-ssl"
86 fi
87
88 econf ${myconf} || die 'configure failed'
89 emake || die "install failed for current version"
90 }
91
92 src_install() {
93 emake DESTDIR="${D}" install || die "installed failed for current version"
94 rm -rf "${D}"/etc/
95
96 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
97 insinto /usr/share/aclocal
98 doins docs/libcurl/libcurl.m4
99
100 dodoc CHANGES README
101 dodoc docs/FEATURES docs/INTERNALS
102 dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
103 }
104
105 pkg_postinst() {
106 if [[ -e "${ROOT}"/usr/$(get_libdir)/libcurl.so.3 ]] ; then
107 elog "You must re-compile all packages that are linked against"
108 elog "curl-7.15.* by using revdep-rebuild from gentoolkit:"
109 elog "# revdep-rebuild --library libcurl.so.3"
110 fi
111 }

  ViewVC Help
Powered by ViewVC 1.1.20