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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20