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

Contents of /net-misc/curl/curl-7.17.0-r1.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-r1.ebuild,v 1.2 2007/10/01 15:09:51 uberlord 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.haxx.se/download/${P}.tar.bz2"
14 #SRC_URI="http://curl.planetmirror.com/download/${P}.tar.bz2"
15
16 LICENSE="MIT X11"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
19 IUSE="ssl libssh2 ipv6 ldap ares gnutls nss idn kerberos test"
20
21 RDEPEND="gnutls? ( net-libs/gnutls )
22 nss? ( !gnutls? ( dev-libs/nss ) )
23 ssl? ( !gnutls? ( !nss? ( dev-libs/openssl ) ) )
24 ldap? ( net-nds/openldap )
25 idn? ( net-dns/libidn )
26 ares? ( >=net-dns/c-ares-1.4.0 )
27 kerberos? ( virtual/krb5 )
28 app-misc/ca-certificates
29 libssh2? ( >=net-libs/libssh2-0.16 )"
30
31 # net-libs/libssh2 (masked) --with-libssh2
32 # fbopenssl (not in gentoo) --with-spnego
33 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
34
35 DEPEND="${RDEPEND}
36 test? (
37 sys-apps/diffutils
38 dev-lang/perl
39 )"
40 # used - but can do without in self test: net-misc/stunnel
41 #S="${WORKDIR}"/${MY_P}
42
43 src_unpack() {
44 unpack ${A}
45 cd "${S}"
46 epatch "${FILESDIR}"/${P}-strip-ldflags.patch
47 # epatch "${FILESDIR}"/curl-7.16.2-strip-ldflags.patch
48 elibtoolize
49 }
50
51 src_compile() {
52
53 myconf="$(use_enable ldap)
54 $(use_enable ldap ldaps)
55 $(use_with idn libidn)
56 $(use_enable kerberos gssapi)
57 $(use_enable ipv6)
58 $(use_with libssh2)
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 --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
71 --without-krb4
72 --without-spnego"
73 # --with-libssh2
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 elif use nss; then
85 myconf="${myconf} --without-ssl --without-gnutls --with-nss"
86 elif use ssl; then
87 myconf="${myconf} --without-gnutls --without-nss --with-ssl"
88 else
89 myconf="${myconf} --without-gnutls --without-nss --without-ssl"
90 fi
91
92 econf ${myconf} || die 'configure failed'
93 emake || die "install failed for current version"
94 }
95
96 src_install() {
97 emake DESTDIR="${D}" install || die "installed failed for current version"
98 rm -rf "${D}"/etc/
99
100 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
101 insinto /usr/share/aclocal
102 doins docs/libcurl/libcurl.m4
103
104 dodoc CHANGES README
105 dodoc docs/FEATURES docs/INTERNALS
106 dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
107 }
108
109 pkg_postinst() {
110 if [[ -e "${ROOT}"/usr/$(get_libdir)/libcurl.so.3 ]] ; then
111 elog "You must re-compile all packages that are linked against"
112 elog "curl-7.15.* by using revdep-rebuild from gentoolkit:"
113 elog "# revdep-rebuild --library libcurl.so.3"
114 fi
115 }

  ViewVC Help
Powered by ViewVC 1.1.20