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

Contents of /net-libs/ftplib/ftplib-3.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Dec 22 18:10:49 2011 UTC (8 years, 11 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Initial commit.

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6 inherit eutils multilib toolchain-funcs versionator
7
8 DEB_REV=9
9 MY_PV=$(replace_version_separator 2 -)
10
11 DESCRIPTION="A set of routines that implement the FTP protocol"
12 HOMEPAGE="http://nbpfaus.net/~pfau/ftplib/"
13 DEB_URI="mirror://debian/pool/main/f/${PN}"
14 SRC_URI="${DEB_URI}/${PN}_${MY_PV}.orig.tar.gz
15 ${DEB_URI}/${PN}_${MY_PV}-${DEB_REV}.debian.tar.gz"
16
17 LICENSE="GPL-2 LGPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE=""
21
22 S=${WORKDIR}/${PN}-${MY_PV}
23
24 src_prepare() {
25 epatch "${WORKDIR}"/debian/patches/{check-getservbyname-failure,fix-ascii-read-without-eol}
26
27 sed -i \
28 -e '/shared/s:$(CC):$(CC) $(LDFLAGS):' \
29 -e 's:/usr/local:$(DESTDIR)/usr:' \
30 -e '/^LDFLAGS/s:=:+=:' \
31 -e "s:/lib:/$(get_libdir):" \
32 linux/Makefile || die
33 }
34
35 src_compile() {
36 tc-export CC
37 emake -C linux DEBUG="${CFLAGS}"
38 }
39
40 src_install() {
41 dodir /usr/bin /usr/include /usr/$(get_libdir)
42 emake -C linux DESTDIR="${D}" install
43 dodoc additional_rfcs CHANGES ftplib.lsm NOTES README* RFC959.txt TODO
44 }

  ViewVC Help
Powered by ViewVC 1.1.20