2010-02-18 19:44:09 +01:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
2009-04-16 16:08:20 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
inherit eutils autotools db-use
|
|
|
|
|
|
|
|
|
|
|
|
SRC_URI="mirror://debian/pool/main/r/${PN}/${PN}_${PV}.orig.tar.gz"
|
|
|
|
DESCRIPTION="Debian repository creator and maintainer application"
|
|
|
|
HOMEPAGE="http://packages.debian.org/reprepro"
|
|
|
|
DEPEND="app-arch/bzip2
|
|
|
|
app-arch/gzip
|
|
|
|
app-arch/libarchive
|
|
|
|
app-crypt/gpgme
|
|
|
|
dev-libs/libgpg-error
|
|
|
|
>=sys-libs/db-4.3"
|
|
|
|
|
2010-02-18 19:44:09 +01:00
|
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
2009-04-16 16:08:20 +02:00
|
|
|
IUSE="bzip2"
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/${PN}-3.8.1-gpgme-header-check-1.patch
|
|
|
|
epatch "${FILESDIR}"/${PN}-3.8.1-db-4_5-1.patch
|
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local myconf="--with-libarchive=yes --with-libdb=$(db_ver_to_slot $(db_findver sys-libs/db))"
|
|
|
|
use bzip2 && myconf="${myconf} --with-libbz2=yes" || myconf="${myconf} --with-libbz2=no"
|
|
|
|
econf ${myconf} || die "econf failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install
|
|
|
|
}
|