aboutsummaryrefslogtreecommitdiffstats
path: root/news/xpn/Makefile
blob: 7e21cedc249d2b634dca38e8a0f382a0963487a9 (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
44
45
46
# New ports collection makefile for:    xpn
# Date created:     2007-01-14
# Whom:         Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   xpn
PORTVERSION=    1.0.0
#PORTREVISION=  0
PORTREVISION=   1
CATEGORIES= news python
MASTER_SITES=   http://xpn.altervista.org/codice/ \
        http://nivi.interfree.it/distfiles/${PORTNAME}/

MAINTAINER= nivit@FreeBSD.org
COMMENT=    X Python Newsreader

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2

NO_BUILD=   yes

USE_PYTHON= 2.4+

FIND_DIRS=  -type d
FIND_DATA=  -type f -mindepth 2 -not -name "*~"

SUB_FILES=  ${PORTNAME}
SUB_LIST=   PYTHON_CMD=${PYTHON_CMD} XPN=${XPN}

USE_GETTEXT=    yes

XPN=    ${PORTNAME}.py

do-install:
    ${MKDIR} ${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/${XPN} ${DATADIR}/${XPN}
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
    cd ${WRKSRC} && ${FIND} . ${FIND_DIRS} -exec ${MKDIR} ${DATADIR}/{} ";"
    cd ${WRKSRC} && ${FIND} . ${FIND_DATA} -exec ${INSTALL_DATA} {} ${DATADIR}/{} ";"
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
.endif

.include <bsd.port.mk>