aboutsummaryrefslogtreecommitdiff
path: root/astro/gmapcatcher/Makefile
blob: ee502e21da5e95250d80ef6477ea92a55470486d (plain) (blame)
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
# New ports collection makefile for:	gmapcatcher
# Date created:		24 March 2010
# Whom:			Kevin Lo <kevlo@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gmapcatcher
PORTVERSION=	0.7.6.1
PORTREVISION=	1
CATEGORIES=	astro geography
MASTER_SITES=	http://gmapcatcher.googlecode.com/files/
DISTNAME=	GMapCatcher-${PORTVERSION}

MAINTAINER=	kevlo@FreeBSD.org
COMMENT=	An offline map viewer

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
		${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3

USE_PYTHON=	yes
USE_PYDISTUTILS=yes
USE_GNOME=	pygtk2
PYDISTUTILS_EGGINFO=${DISTNAME}-py${PYTHON_VER}.egg-info

WRKSRC=		${WRKDIR}/${DISTNAME}

MAN1=		mapcatcher.1 \
		mapdownloader.1

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/share/pixmaps,${PREFIX}/share/pixmaps,g' \
		${WRKSRC}/gmapcatcher/mapPixbuf.py
post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/download.py ${PREFIX}/bin/mapdownloader
	${INSTALL_SCRIPT} ${WRKSRC}/maps.py ${PREFIX}/bin/mapcatcher
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/changelog ${DOCSDIR}
.endif

.include <bsd.port.mk>