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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Mon Mar 20 15:18:23 2006 UTC (13 years, 8 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
- security bump for tftp vuln. CVE-2006-1061 - bug #125766
(Portage version: 2.1_pre5-r4)

1 # Copyright 1999-2005 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.13.2.ebuild,v 1.12 2005/12/13 19:53:22 dragonheart Exp $
4
5 # NOTE: If you bump this ebuild, make sure you bump dev-python/pycurl!
6
7 inherit eutils
8
9 # NOTE: To prevent breakages when upgrading, we compile all the prev
10 # versions we know. We can't slot them because only the libraries
11 # have versioning, all the binaries, manpages don't have versions.
12
13 OLD_PV=7.11.2
14 OLD_PV_LIB=libcurl.so.2
15
16 DESCRIPTION="A Client that groks URLs"
17 HOMEPAGE="http://curl.haxx.se/"
18 SRC_URI="http://curl.haxx.se/download/${PN}-${OLD_PV}.tar.bz2
19 http://curl.haxx.se/download/${P}.tar.bz2"
20
21 LICENSE="MIT X11"
22 SLOT="0"
23 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ~ppc-macos ppc64 s390 sparc x86"
24 IUSE="ssl ipv6 ldap ares"
25
26 DEPEND="ssl? ( >=dev-libs/openssl-0.9.6a )
27 ldap? ( net-nds/openldap )
28 x86? ( ares? ( net-dns/c-ares ) )"
29
30 _curl_has_old_ver() {
31 if test -s ${ROOT}/usr/$(get_libdir)/${OLD_PV_LIB}; then
32 return 0 # /bin/true
33 else
34 return 1
35 fi
36 }
37
38 src_unpack() {
39 unpack ${A}
40 epunt_cxx
41 }
42
43 src_compile() {
44
45 myconf="$(use_enable ldap)
46 $(use_with ssl)
47 --enable-http
48 --enable-ftp
49 --enable-gopher
50 --enable-file
51 --enable-dict
52 --enable-manual
53 --enable-telnet
54 --enable-nonblocking
55 --enable-largefile"
56
57 if use ipv6 && use ares; then
58 ewarn "c-ares support disabled because it is incompatible with ipv6."
59 ewarn "To enable ares support, emerge with USE='-ipv6'."
60 myconf="${myconf} $(use_enable ipv6)"
61 else
62 if use x86; then
63 myconf="${myconf} $(use_enable ipv6) $(use_enable ares)"
64 fi
65 fi
66
67 if _curl_has_old_ver; then
68 einfo "Detected old version of curl - installing compat libs"
69 cd ${WORKDIR}/${PN}-${OLD_PV}
70 econf ${myconf}
71 emake || die "make for old version failed"
72 fi
73
74 cd ${S}
75 econf ${myconf}
76 emake || die "install failed for current version"
77 }
78
79 src_install() {
80 if _curl_has_old_ver; then
81 cd ${WORKDIR}/${PN}-${OLD_PV}/lib
82 make DESTDIR=${D} install-libLTLIBRARIES || die "install failed for old version"
83 fi
84
85 cd ${S}
86 make DESTDIR="${D}" install || die "installed failed for current version"
87
88 insinto /usr/share/aclocal
89 doins docs/libcurl/libcurl.m4
90
91 dodoc CHANGES README
92 dodoc docs/FEATURES docs/INSTALL docs/INTERNALS docs/LIBCURL
93 dodoc docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE
94 }

  ViewVC Help
Powered by ViewVC 1.1.20