blob: f9e617a5d5756991d551eb0c5ad813dbbf648522 (
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
46
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/engauge/engauge-4.1.ebuild,v 1.1 2009/06/05 22:39:35 calchan Exp $
EAPI=2
inherit versionator qt3 eutils
DESCRIPTION="Convert an image file showing a graph or map into numbers"
HOMEPAGE="http://digitizer.sourceforge.net/"
SRC_URI="mirror://sourceforge/digitizer/digit-src-$(replace_version_separator . _).tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc examples"
DEPEND="x11-libs/qt:3
sci-libs/fftw:3.0"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
src_prepare() {
# Some patching and using the DEBIAN_PACKAGE ifdef is necessary to make sure the
# documentation is looked for in the proper directory
sed -i -e "s:/usr/share/doc/engauge-digitizer-doc:${ROOT}/usr/share/doc/${PF}:" \
src/digitmain.cpp || die "sed failed"
sed -i -e '/unix {/a \
DEFINES += DEBIAN_PACKAGE' engauge/digitizer.pro || die "sed failed"
}
src_configure() {
eqmake3 "${PN}"/digitizer.pro
}
serc_compile() {
emake -DDEBIAN_PACKAGE || die "make failed"
}
src_install() {
dobin bin/engauge
newicon src/img/lo32-app-digitizer.png "${PN}.png"
make_desktop_entry engauge "Engauge Digitizer" "${PN}.png" Graphics
use doc && dodoc -r usermanual
use examples && dodoc -r samples
}
|