You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-ftp/pftpfxp/pftpfxp-1.12-r1.ebuild

71 lines
1.6 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/pftpfxp/pftpfxp-1.12-r1.ebuild,v 1.2 2012/07/01 12:44:51 jlec Exp $
EAPI=4
inherit eutils toolchain-funcs
MY_P=pftp-shit.v.${PV}
DESCRIPTION="The powerful curses-based ftp/fxp client, shit edition"
HOMEPAGE="http://www.geekspot.nl/?page_id=6"
SRC_URI="http://www.geekspot.nl/wp-content/uploads/2011/03/${MY_P}.zip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="ssl"
RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6c )"
DEPEND="
app-arch/unzip
${RDEPEND}"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "$FILESDIR/1.11-gcc43.patch"
# do no strip
# look for the correct library (bug #408231)
sed \
-e 's|[^D]*DO.*||g' \
-e 's|libssl.a|libssl.so|g' \
-e 's:-O2::g' \
-e 's:-g::g' \
-i configure || die
#fix permissions of configure script
chmod +x configure
# use CXX not CPP
# respect LDFLAGS
sed \
-e 's/CPP/CXX/g' \
-e 's|$(CXX) -o |$(CXX) $(GENTOO_LDFLAGS) -o |g' \
-i src/Makefile.in || die
}
src_configure() {
#note: not a proper autoconf
./configure $(use ssl || echo --nossl) || die "configure failed"
sed -i -e 's:$<:$(CPPFLAGS) $<:' -e 's/LINKFLAGS/LDFLAGS/g' src/Makefile || die
}
src_compile() {
emake GENTOO_LDFLAGS="${LDFLAGS}" CXX=$(tc-getCXX)
}
src_install() {
dobin pftp
dodoc .pftp/config .pftp/keymap README.MEW old/*
}
pkg_postinst() {
einfo "In order to use pftp-shit you need to create these files:"
einfo " ~/.pftp/config"
einfo " ~/.pftp/keymap"
einfo "Refer to the examples in /usr/share/doc/${PF} for more information."
}