mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
b10266adb2
- Add LICENSE (GPLv2) - Add databases/py-sqlite3 to run dependencies [1] - Bump PORTREVISION - Use shebangfix - Restrict usage to Python 2 (as its dependency py-gtk2) - Use COPYTREE_SHARE to install data - Fix WWW line in pkg-descr - Remove @dirrm keyword from plist PR: 196636 [1] Submitted by: Mike Clarke <jmc-freebsd2@milibyte.co.uk> [1]
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# Created by: Nicola Vitale <nivit@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xpn
|
|
PORTVERSION= 1.2.6
|
|
PORTREVISION= 5
|
|
CATEGORIES= news python
|
|
MASTER_SITES= http://xpn.altervista.org/codice/
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= X Python Newsreader
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gtk2>=2.24.0:${PORTSDIR}/x11-toolkits/py-gtk2 \
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>=2.7.9:${PORTSDIR}/databases/py-sqlite3
|
|
|
|
NO_BUILD= yes
|
|
|
|
python_OLD_CMD= /usr/bin/env python
|
|
# we want a versioned python command
|
|
python_CMD= ${PYTHON_CMD}
|
|
|
|
SHEBANG_FILES= ${XPN}
|
|
SUB_FILES= ${PORTNAME}
|
|
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} XPN=${XPN}
|
|
|
|
USES= gettext python:2 shebangfix
|
|
|
|
XPN= ${PORTNAME}.py
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${XPN} ${STAGEDIR}${DATADIR}/${XPN}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
(cd ${WRKSRC} && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} "-mindepth 2")
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|