2010-02-22 01:26:32 +01:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
2007-02-18 18:10:05 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2010-08-31 21:54:56 +02:00
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
inherit eutils autotools
|
2007-02-18 18:10:05 +01:00
|
|
|
|
|
|
|
DESCRIPTION="A download manager"
|
|
|
|
HOMEPAGE="http://prozilla.genesys.ro/"
|
2010-08-31 21:54:56 +02:00
|
|
|
SRC_URI="http://ftp.disconnected-by-peer.at/prozilla/${P}.tar.bz2
|
2010-02-22 04:46:38 +01:00
|
|
|
ftp://ftp.jpix.ad.jp/pub/FreeBSD/ports/distfiles/${P}.tar.bz2"
|
2007-02-18 18:10:05 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2010-02-22 01:26:32 +01:00
|
|
|
KEYWORDS="amd64 ~arm ~ppc sparc x86"
|
2010-08-31 21:54:56 +02:00
|
|
|
IUSE="static nls pic"
|
2007-02-18 18:10:05 +01:00
|
|
|
|
|
|
|
RDEPEND="virtual/libc
|
|
|
|
>=sys-libs/ncurses-5.2"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
>=sys-apps/sed-4"
|
|
|
|
|
2010-08-31 21:54:56 +02:00
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/prozilla-ac_fixes.patch
|
|
|
|
epatch "${FILESDIR}"/prozilla-Oopt.patch
|
|
|
|
epatch "${FILESDIR}"/prozilla-2.0.4-Oopt-document-1.patch
|
|
|
|
epatch "${FILESDIR}"/prozilla-man.patch
|
|
|
|
epatch "${FILESDIR}"/prozilla-gcc4.patch
|
|
|
|
epatch "${FILESDIR}"/prozilla-opt.patch
|
|
|
|
epatch "${FILESDIR}"/prozilla-2.0.4-home_dir-1.patch
|
|
|
|
epatch "${FILESDIR}"/prozilla-no_memleak.patch
|
|
|
|
head -n 667 libprozilla/acinclude.m4 > tmp
|
|
|
|
mv tmp libprozilla/acinclude.m4
|
|
|
|
# die
|
|
|
|
eautoreconf
|
2007-02-18 18:10:05 +01:00
|
|
|
}
|
|
|
|
|
2010-08-31 21:54:56 +02:00
|
|
|
src_configure() {
|
|
|
|
econf --enable-shared \
|
|
|
|
$(use_enable static) \
|
|
|
|
$(use_enable nls) \
|
|
|
|
$(use_with pic)
|
2007-02-18 18:10:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install () {
|
|
|
|
make DESTDIR="${D}" install || die "make install failed"
|
2010-08-31 21:54:56 +02:00
|
|
|
dodoc AUTHORS CREDITS* ChangeLog docs/FAQ libprozilla/docs/HACKING NEWS README TODO
|
|
|
|
insinto /etc
|
|
|
|
newins "${FILESDIR}"/prozrc.sample prozilla.conf
|
2008-12-08 00:37:48 +01:00
|
|
|
|
2008-12-08 21:08:17 +01:00
|
|
|
rm -f "${D}"/usr/share/locale/locale.alias
|
2007-02-18 18:10:05 +01:00
|
|
|
}
|