/[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 - (hide annotations) (download)
Mon Apr 14 06:03:12 2014 UTC (7 months, 1 week ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
net-ftp/pftpfxp removal, bug 465784.

1 jer 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ulm 1.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 jer 1.1
5     EAPI=4
6 jlec 1.2
7 jer 1.1 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 jlec 1.2 ${RDEPEND}"
24 jer 1.1
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 jlec 1.2 sed \
33 jer 1.1 -e 's|[^D]*DO.*||g' \
34     -e 's|libssl.a|libssl.so|g' \
35 jlec 1.2 -e 's:-O2::g' \
36     -e 's:-g::g' \
37     -i configure || die
38 jer 1.1
39     #fix permissions of configure script
40     chmod +x configure
41    
42     # use CXX not CPP
43     # respect LDFLAGS
44 jlec 1.2 sed \
45 jer 1.1 -e 's/CPP/CXX/g' \
46     -e 's|$(CXX) -o |$(CXX) $(GENTOO_LDFLAGS) -o |g' \
47 jlec 1.2 -i src/Makefile.in || die
48 jer 1.1 }
49    
50     src_configure() {
51     #note: not a proper autoconf
52     ./configure $(use ssl || echo --nossl) || die "configure failed"
53 jlec 1.2 sed -i -e 's:$<:$(CPPFLAGS) $<:' -e 's/LINKFLAGS/LDFLAGS/g' src/Makefile || die
54 jer 1.1 }
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