summaryrefslogtreecommitdiff
blob: b4a78a8f06ee6a67e5ead9a80b2140cadc1d7e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit toolchain-funcs

DESCRIPTION="CD/DVD image converter using libmirage"
HOMEPAGE="http://github.com/mgorny/mirage2iso/"
SRC_URI="http://github.com/downloads/mgorny/${PN}/${P}.tar.bz2
	test? ( http://github.com/downloads/mgorny/${PN}/${P}-tests.tar.xz )"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pinentry test"

COMMON_DEPEND="dev-libs/libmirage
	pinentry? ( dev-libs/libassuan )"
DEPEND="${COMMON_DEPEND}
	test? ( app-arch/xz-utils )"
RDEPEND="${COMMON_DEPEND}
	pinentry? ( app-crypt/pinentry )"

src_configure() {
	tc-export CC
	econf \
		$(use_with pinentry assuan)
}

src_test() {
	xz -cd "${DISTDIR}"/${P}-tests.tar.xz | \
		tar -x --strip-components 1 || die
	emake check || die
}

src_install() {
	emake DESTDIR="${D}" install || die 'install failed'

	dodoc NEWS README || die 'dodoc failed'
}