/[gentoo-x86]/sci-geosciences/merkaartor/merkaartor-0.17.2.ebuild
Gentoo

Contents of /sci-geosciences/merkaartor/merkaartor-0.17.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Mar 31 13:15:04 2015 UTC (10 months, 2 weeks ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +4 -7 lines
Use system libs instead of bundled ones, bug #487512; thanks Nikoli for the patch; update live ebuild to new repo location, bug #544862

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/merkaartor/merkaartor-0.17.2.ebuild,v 1.8 2013/03/02 23:21:39 hwoarang Exp $
4
5 EAPI=4
6
7 REDMINE_HASH="253"
8
9 inherit multilib qt4-r2 ${SCM_ECLASS}
10
11 DESCRIPTION="A Qt4 based map editor for the openstreetmap.org project"
12 HOMEPAGE="http://www.merkaartor.be"
13 SRC_URI="http://merkaartor.be/attachments/download/${REDMINE_HASH}/merkaartor-${PV}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17
18 # Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
19 KEYWORDS="~amd64 ~x86"
20
21 IUSE="debug exif gps nls libproxy"
22
23 QT_MINIMAL="4.7.2"
24 DEPEND="
25 >=dev-libs/boost-1.46
26 >=sci-libs/gdal-1.6.0
27 >=sci-libs/proj-4.6
28 >=dev-qt/qtgui-${QT_MINIMAL}:4
29 >=dev-qt/qtsvg-${QT_MINIMAL}:4
30 >=dev-qt/qtwebkit-${QT_MINIMAL}:4
31 exif? ( media-gfx/exiv2 )
32 gps? ( >=sci-geosciences/gpsd-2.92[cxx] )
33 libproxy? ( net-libs/libproxy )
34 "
35 RDEPEND="${DEPEND}"
36
37 DOCS="AUTHORS CHANGELOG HACKING"
38
39 PATCHES=(
40 "${FILESDIR}/${PV}-includes.patch"
41 "${FILESDIR}/${PV}-libproxy.patch"
42 )
43
44 merkaartor_use() {
45 local useflag=${1}
46 [[ -z ${useflag} ]] && die "No useflag specified"
47 if use ${useflag}; then
48 echo "1"
49 else
50 echo "0"
51 fi
52 }
53
54 src_configure() {
55 local myconf
56 myconf+=" RELEASE=1 ZBAR=0" # deps not in main tree so hard-disable
57 myconf+=" GEOIMAGE=$(${PN}_use exif)"
58 myconf+=" GPSDLIB=$(${PN}_use gps)"
59 myconf+=" LIBPROXY=$(${PN}_use libproxy)"
60 myconf+=" NODEBUG=$(use debug && echo "0" || echo "1")" # inverse logic
61 myconf+=" NOUSEWEBKIT=0" # fails to link if disabled, upstream needs to fix
62 myconf+=" TRANSDIR_MERKAARTOR=/usr/share/${PN}/translations TRANSDIR_SYSTEM=/usr/share/qt4/translations" #385671
63
64 if use nls; then
65 lrelease src/src.pro || die "lrelease failed"
66 fi
67
68 eqmake4 Merkaartor.pro LIBDIR=/usr/$(get_libdir) PREFIX=/usr/ ${myconf}
69 }

  ViewVC Help
Powered by ViewVC 1.1.20