summaryrefslogtreecommitdiff
blob: 409eb750de4efff0772337da644c7e041666f233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/pftpfxp/pftpfxp-0.11.4.6-r3.ebuild,v 1.5 2009/03/08 03:00:36 dragonheart Exp $

inherit eutils toolchain-funcs

DESCRIPTION="The powerful curses-based ftp/fxp client, mew edition"
HOMEPAGE="http://pftpmew.tanesha.net"
SRC_URI="http://www.derijk.org/pftp/pftpfxp-v0.11.4mew6.tgz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE="ssl"

DEPEND="ssl? ( >=dev-libs/openssl-0.9.6c )"

S="${WORKDIR}/pftpfxp-mew"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${PV}-gcc3.4.fix || die "patch failed"
	epatch "${FILESDIR}"/pftpfxp-v0.11.4mew6-pret.patch || die "patch failed"
	epatch "${FILESDIR}"/${PV}-correct_config_fix.patch || die "patch failed"
	epatch "${FILESDIR}"/${PV}-correct_bookmark_path.patch || die "patch failed"
	sed -i -e "s/^CPP=.*/CPP=$(tc-getCXX)/" \
		-e "s:^CPPF=.*:CPPF=\"-Wall -D_REENTRANT -I../include ${CFLAGS}\":" \
		configure
}

src_compile() {
	#note: not a propper autoconf
	./configure || die "configure failed"
	emake DO=true || die "emake failed"
}

src_install() {
	dobin pftp || die "dobin failed"
	dodoc .pftp/config .pftp/keymap README.MEW old/*
	cd "${WORKDIR}"
	mv irssi  mIRC-mew  pftpfxp-autoconnect "${D}"/usr/share/doc/${PF}
}

pkg_postinst() {
	elog "In order to use pftp-mew you need to create these files:"
	elog "    ~/.pftp/config"
	elog "    ~/.pftp/keymap"
	elog "Refer to the examples in /usr/share/doc/${PF} for more information."
}