60 lines
1.3 KiB
Bash
60 lines
1.3 KiB
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-cdr/mirage2iso/mirage2iso-9999.ebuild,v 1.1 2012/12/15 12:33:50 mgorny Exp $
|
|
|
|
EAPI=4
|
|
|
|
#if LIVE
|
|
AUTOTOOLS_AUTORECONF=yes
|
|
EGIT_REPO_URI="http://bitbucket.org/mgorny/${PN}.git"
|
|
|
|
inherit git-2
|
|
#endif
|
|
|
|
inherit autotools-utils versionator
|
|
|
|
TESTS_PV=$(get_version_component_range 1-2)
|
|
|
|
DESCRIPTION="CD/DVD image converter using libmirage"
|
|
HOMEPAGE="https://bitbucket.org/mgorny/mirage2iso/"
|
|
SRC_URI="mirror://bitbucket/mgorny/${PN}/downloads/${P}.tar.bz2
|
|
test? ( mirror://bitbucket/mgorny/${PN}/downloads/${PN}-${TESTS_PV}-tests.tar.xz )"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="pinentry test"
|
|
|
|
COMMON_DEPEND="dev-libs/libmirage
|
|
dev-libs/glib:2
|
|
pinentry? ( dev-libs/libassuan )"
|
|
DEPEND="${COMMON_DEPEND}
|
|
virtual/pkgconfig
|
|
test? ( app-arch/xz-utils )"
|
|
RDEPEND="${COMMON_DEPEND}
|
|
pinentry? ( app-crypt/pinentry )"
|
|
|
|
#if LIVE
|
|
DEPEND="${DEPEND}
|
|
dev-libs/libassuan"
|
|
KEYWORDS=
|
|
SRC_URI=
|
|
#endif
|
|
|
|
src_configure() {
|
|
myeconfargs=(
|
|
$(use_with pinentry libassuan)
|
|
)
|
|
|
|
autotools-utils_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
#if LIVE
|
|
autotools-utils_src_test
|
|
return ${?}
|
|
|
|
#endif
|
|
mv "${WORKDIR}"/${PN}-${TESTS_PV}/tests/* tests/ || die
|
|
autotools-utils_src_test
|
|
}
|