summaryrefslogtreecommitdiff
blob: ab06ec51632ae09d9f3f425850d20e719120d607 (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
43
44
45
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/qpxtool/qpxtool-0.7.0_pre4.ebuild,v 1.3 2009/10/19 19:16:40 ssuominen Exp $

EAPI=2
inherit eutils toolchain-funcs

DESCRIPTION="CD/DVD quality checking utilities"
HOMEPAGE="http://qpxtool.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P/_}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="x11-libs/qt-core:4
	x11-libs/qt-gui:4
	media-libs/libpng"
DEPEND="${RDEPEND}"

S=${WORKDIR}/${P/_}

src_prepare() {
	sed \
		-e 's:/usr/local:/usr:g' \
		-e 's:__prefix/man:__prefix/share/man:g' \
		-i configure lib/qpxscan/include/qpx_scan.h || die
	epatch "${FILESDIR}"/${P}-dl.patch
}

src_configure() {
	./configure CXX="$(tc-getCXX)" || die
}

src_compile() {
	emake CXX="$(tc-getCXX)" || die
}

src_install() {
	dodir /usr/bin
	emake DESTDIR="${D}" install || die
	dodoc AUTHORS ChangeLog README ReleaseNotes TODO
	dohtml status.html
}