/[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.1 - (show annotations) (download)
Fri Mar 16 16:48:38 2012 UTC (2 years, 9 months ago) by jer
Branch: MAIN
Fix bug #408231. Set RDEPEND. Move preparation stuff to src_prepare(). Respect LDFLAGS. Remove old patches. Do not automagically compile against dev-libs/openssl.

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

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

  ViewVC Help
Powered by ViewVC 1.1.20