/[gentoo-x86]/net-ftp/pftpfxp/pftpfxp-1.12-r1.ebuild
Gentoo

Contents of /net-ftp/pftpfxp/pftpfxp-1.12-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Apr 14 06:03:12 2014 UTC (5 months, 2 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
net-ftp/pftpfxp removal, bug 465784.

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-ftp/pftpfxp/pftpfxp-1.12-r1.ebuild,v 1.2 2012/07/01 12:44:51 jlec Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 MY_P=pftp-shit.v.${PV}
10
11 DESCRIPTION="The powerful curses-based ftp/fxp client, shit edition"
12 HOMEPAGE="http://www.geekspot.nl/?page_id=6"
13 SRC_URI="http://www.geekspot.nl/wp-content/uploads/2011/03/${MY_P}.zip"
14
15 LICENSE="as-is"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86"
18 IUSE="ssl"
19
20 RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6c )"
21 DEPEND="
22 app-arch/unzip
23 ${RDEPEND}"
24
25 S=${WORKDIR}/${MY_P}
26
27 src_prepare() {
28 epatch "$FILESDIR/1.11-gcc43.patch"
29
30 # do no strip
31 # look for the correct library (bug #408231)
32 sed \
33 -e 's|[^D]*DO.*||g' \
34 -e 's|libssl.a|libssl.so|g' \
35 -e 's:-O2::g' \
36 -e 's:-g::g' \
37 -i configure || die
38
39 #fix permissions of configure script
40 chmod +x configure
41
42 # use CXX not CPP
43 # respect LDFLAGS
44 sed \
45 -e 's/CPP/CXX/g' \
46 -e 's|$(CXX) -o |$(CXX) $(GENTOO_LDFLAGS) -o |g' \
47 -i src/Makefile.in || die
48 }
49
50 src_configure() {
51 #note: not a proper autoconf
52 ./configure $(use ssl || echo --nossl) || die "configure failed"
53 sed -i -e 's:$<:$(CPPFLAGS) $<:' -e 's/LINKFLAGS/LDFLAGS/g' src/Makefile || die
54 }
55
56 src_compile() {
57 emake GENTOO_LDFLAGS="${LDFLAGS}" CXX=$(tc-getCXX)
58 }
59
60 src_install() {
61 dobin pftp
62 dodoc .pftp/config .pftp/keymap README.MEW old/*
63 }
64
65 pkg_postinst() {
66 einfo "In order to use pftp-shit you need to create these files:"
67 einfo " ~/.pftp/config"
68 einfo " ~/.pftp/keymap"
69 einfo "Refer to the examples in /usr/share/doc/${PF} for more information."
70 }

  ViewVC Help
Powered by ViewVC 1.1.20