blob: a6e8ea331f21a518e9304137094e37a207c97323 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/merkaartor/merkaartor-9999.ebuild,v 1.13 2012/06/16 08:29:42 scarabeus Exp $
EAPI=4
REDMINE_HASH="253"
[[ ${PV} == 9999 ]] && SCM_ECLASS=git-2
EGIT_REPO_URI="git://gitorious.org/merkaartor/main.git"
EGIT_PROJECT=${PN}
inherit multilib qt4-r2 ${SCM_ECLASS}
DESCRIPTION="A Qt4 based map editor for the openstreetmap.org project"
HOMEPAGE="http://www.merkaartor.be"
[[ ${PV} == 9999 ]] || SRC_URI="http://merkaartor.be/attachments/download/${REDMINE_HASH}/merkaartor-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
[[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~x86"
IUSE="debug exif gps nls libproxy webkit"
QT_MINIMAL="4.7.2"
RDEPEND="
>=sci-libs/gdal-1.6.0
>=sci-libs/proj-4.6
>=x11-libs/qt-gui-${QT_MINIMAL}:4
>=x11-libs/qt-svg-${QT_MINIMAL}:4
exif? ( media-gfx/exiv2 )
gps? ( >=sci-geosciences/gpsd-2.92[cxx] )
libproxy? ( net-libs/libproxy )
webkit? ( >=x11-libs/qt-webkit-${QT_MINIMAL}:4 )
"
DEPEND="${DEPEND}
>=dev-libs/boost-1.46
"
DOCS="AUTHORS CHANGELOG HACKING"
MAKEOPTS+=" -j1"
merkaartor_use() {
local useflag=${1}
[[ -z ${useflag} ]] && die "No useflag specified"
if use ${useflag}; then
echo "1"
else
echo "0"
fi
}
src_configure() {
local myconf
myconf+=" RELEASE=1 ZBAR=0" # deps not in main tree so hard-disable
myconf+=" GEOIMAGE=$(${PN}_use exif)"
myconf+=" GPSDLIB=$(${PN}_use gps)"
myconf+=" LIBPROXY=$(${PN}_use libproxy)"
myconf+=" NODEBUG=$(use debug && echo "0" || echo "1")" # inverse logic
myconf+=" NOUSEWEBKIT=$(use webkit && echo "0" || echo "1")" # inverse logic
myconf+=" TRANSDIR_MERKAARTOR=/usr/share/${PN}/translations TRANSDIR_SYSTEM=/usr/share/qt4/translations" #385671
if use nls; then
lrelease src/src.pro || die "lrelease failed"
fi
eqmake4 Merkaartor.pro LIBDIR=/usr/$(get_libdir) PREFIX=/usr/ ${myconf}
}
|