45 lines
1.0 KiB
Bash
45 lines
1.0 KiB
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools db-use
|
|
|
|
|
|
SRC_URI="mirror://debian/pool/main/r/${PN}/${PN}_${PV}.orig.tar.xz
|
|
https://alioth.debian.org/frs/download.php/file/4109/${PN}_${PV}.orig.tar.xz"
|
|
DESCRIPTION="Debian repository creator and maintainer application"
|
|
HOMEPAGE="http://packages.debian.org/reprepro"
|
|
IUSE="archive bzip2 gpg lzma"
|
|
|
|
DEPEND="sys-libs/db:=
|
|
sys-libs/zlib
|
|
gpg? ( app-crypt/gpgme:1= dev-libs/libgpg-error )
|
|
archive? ( app-arch/libarchive:0= )
|
|
lzma? ( app-arch/lzma )"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
|
|
src_prepare() {
|
|
# eapply "${FILESDIR}"/${PN}-4.1.2-gpgme-header-check-1.patch
|
|
# epatch "${FILESDIR}"/${PN}-3.8.1-db-4_5-1.patch
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
"$(use_with archive libarchive)" \
|
|
"$(use_with bzip2 libbz2)" \
|
|
"$(use_with gpg libgpgme)" \
|
|
"$(use_with lzma liblzma)"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install
|
|
}
|