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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 9 13:08:42 2010 UTC (4 years, 6 months ago) by abcd
Branch: MAIN
Changes since 1.1: +3 -3 lines
QA: Do not use absolute path to icon when in standard dirs (in make_desktop_entry())
(Portage version: -svn/cvs/Linux i686)

1 # Copyright 1999-2010 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.13.1.ebuild,v 1.1 2009/04/03 10:37:40 hanno Exp $
4
5 EAPI="1"
6
7 inherit eutils qt4
8
9 DESCRIPTION="A Qt4 based map editor for the openstreetmap.org project"
10 HOMEPAGE="http://www.merkaartor.org"
11 SRC_URI="http://www.merkaartor.org/downloads/source/${P}.tar.bz2"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="nls webkit exif proj gdal"
16 DEPEND="x11-libs/qt-gui:4
17 x11-libs/qt-svg:4
18 webkit? ( >=x11-libs/qt-webkit-4.3.3 )
19 exif? ( media-gfx/exiv2 )
20 proj? ( sci-libs/proj )
21 gdal? ( sci-libs/gdal )"
22 RDEPEND="${DEPEND}"
23
24 S="${WORKDIR}/${P}"
25
26 src_compile() {
27 local myconf
28 use webkit || myconf="${myconf} NOUSEWEBKIT=1"
29 use exif && myconf="${myconf} GEOIMAGE=1" || myconf="${myconf} GEOIMAGE=0"
30 use proj && myconf="${myconf} PROJ=1" || myconf="${myconf} PROJ=0"
31 use gdal && myconf="${myconf} GDAL=1" || myconf="${myconf} GDAL=0"
32
33 if use nls; then
34 lrelease Merkaartor.pro || die "lrelease failed"
35 fi
36
37 eqmake4 Merkaartor.pro PREFIX=/usr ${myconf} || die "eqmake4 failed"
38 emake || die "make failed"
39 }
40
41 src_install() {
42 emake INSTALL_ROOT="${D}" install || die "install failed"
43 dodoc AUTHORS CHANGELOG HACKING || die "dodoc failed"
44
45 doicon Icons/Mercator_100x100.png
46 make_desktop_entry merkaartor "Merkaartor" Mercator_100x100 "Science;Geoscience"
47 }

  ViewVC Help
Powered by ViewVC 1.1.20