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

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

MAINTAINER= kevlo@FreeBSD.org
COMMENT=    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>