/[gentoo-x86]/net-libs/ftplib/ftplib-4.0-r1.ebuild
Gentoo

Contents of /net-libs/ftplib/ftplib-4.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Mar 31 04:27:25 2014 UTC (6 years, 8 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Fix crash in FtpClose and other issues.  Convert to multilib-minimal.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/ftplib/ftplib-4.0.ebuild,v 1.2 2014/03/23 06:54:44 vapier Exp $
4
5 EAPI=4
6
7 inherit multilib multilib-minimal toolchain-funcs eutils
8
9 DESCRIPTION="A set of routines that implement the FTP protocol"
10 HOMEPAGE="http://nbpfaus.net/~pfau/ftplib/"
11 SRC_URI="http://nbpfaus.net/~pfau/ftplib/${P}.tar.gz"
12
13 LICENSE="Artistic-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 src_prepare() {
19 sed -i \
20 -e '/shared/s:$(CC):$(CC) $(LDFLAGS):' \
21 -e 's:/usr/local:$(DESTDIR)/usr:' \
22 -e '/^LDFLAGS/s:=:+=:' \
23 -e "s:/lib:/$(get_libdir):" \
24 -e '/ar -rcs/s:ar:$(AR):' \
25 src/Makefile || die
26 epatch "${FILESDIR}"/${PN}-4.0-crash.patch
27
28 multilib_copy_sources
29 }
30
31 multilib_src_compile() {
32 emake -C src \
33 DEBUG="${CFLAGS} ${CPPFLAGS}" \
34 AR="$(tc-getAR)" \
35 CC="$(tc-getCC)"
36 }
37
38 multilib_src_install() {
39 dodir /usr/bin /usr/include /usr/$(get_libdir)
40 emake -C src DESTDIR="${ED}" install
41 }
42
43 multilib_src_install_all() {
44 dodoc additional_rfcs CHANGES README* RFC959.txt
45 dohtml html/*
46 }

  ViewVC Help
Powered by ViewVC 1.1.20