diff options
Diffstat (limited to 'net-libs/ftplib/ftplib-4.0-r1.ebuild')
-rw-r--r-- | net-libs/ftplib/ftplib-4.0-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-libs/ftplib/ftplib-4.0-r1.ebuild b/net-libs/ftplib/ftplib-4.0-r1.ebuild new file mode 100644 index 000000000000..9d3e7f9c5192 --- /dev/null +++ b/net-libs/ftplib/ftplib-4.0-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit multilib multilib-minimal toolchain-funcs eutils + +DESCRIPTION="A set of routines that implement the FTP protocol" +HOMEPAGE="http://nbpfaus.net/~pfau/ftplib/" +SRC_URI="http://nbpfaus.net/~pfau/ftplib/${P}.tar.gz" + +LICENSE="Artistic-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + sed -i \ + -e '/shared/s:$(CC):$(CC) $(LDFLAGS):' \ + -e 's:/usr/local:$(DESTDIR)/usr:' \ + -e '/^LDFLAGS/s:=:+=:' \ + -e "s:/lib:/$(get_libdir):" \ + -e '/ar -rcs/s:ar:$(AR):' \ + src/Makefile || die + epatch "${FILESDIR}"/${PN}-4.0-crash.patch + + multilib_copy_sources +} + +multilib_src_compile() { + emake -C src \ + DEBUG="${CFLAGS} ${CPPFLAGS}" \ + AR="$(tc-getAR)" \ + CC="$(tc-getCC)" +} + +multilib_src_install() { + dodir /usr/bin /usr/include /usr/$(get_libdir) + emake -C src DESTDIR="${ED}" install +} + +multilib_src_install_all() { + dodoc additional_rfcs CHANGES README* RFC959.txt + dohtml html/* +} |