summaryrefslogtreecommitdiffstats
path: root/app-misc/mumpot/mumpot-0.5.ebuild
blob: d733a7b8a16e8559d6c6d197b67b326d418052b1 (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
inherit eutils

DESCRIPTION="OSM map viewing, routing and simple editing program"
HOMEPAGE="http://www.mumpot.org/"
SRC_URI="http://www.mumpot.org/download/${P}.tar.gz"
LICENSE="GPL-3"
IUSE="nls curl"
SLOT="0"
KEYWORDS="x86 amd64"
DEPEND="dev-libs/libxml2
		>=x11-libs/gtk+-2
		media-libs/libpng
		media-libs/jpeg
		app-arch/bzip2
		net-wireless/bluez-libs
		curl? ( net-misc/curl ) 
		nls? ( sys-devel/gettext )"


src_compile() {
# libcurl is needed for uploading data to OSM
	if use curl; then
	  OSM_UPLOAD=
	else
	  OSM_UPLOAD=--disable-osmupload
	fi
	econf $(use_enable nls) $OSM_UPLOAD || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc README || die "dodoc failed"
}