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/app-cdr/mirage2iso/mirage2iso-0.4.1-r2.ebuild

41 lines
908 B

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
TESTS_P=${PN}-0.3
DESCRIPTION="CD/DVD image converter using libmirage"
HOMEPAGE="https://github.com/mgorny/mirage2iso/"
SRC_URI="https://github.com/mgorny/${PN}/releases/download/${P}/${P}.tar.bz2
test? ( https://github.com/mgorny/${PN}/releases/download/${P}/${TESTS_P}-tests.tar.xz )"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pinentry test"
COMMON_DEPEND="<dev-libs/libmirage-3.0.5:0=
dev-libs/glib:2=
pinentry? ( dev-libs/libassuan:0= )"
DEPEND="${COMMON_DEPEND}
virtual/pkgconfig
test? ( app-arch/xz-utils )"
RDEPEND="${COMMON_DEPEND}
pinentry? ( app-crypt/pinentry )"
RESTRICT="!test? ( test )"
src_configure() {
local myconf=(
$(use_with pinentry libassuan)
)
econf "${myconf[@]}"
}
src_test() {
mv "${WORKDIR}"/${TESTS_P}/tests/* tests/ || die
default
}