aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/cjc
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-12-19 20:49:09 +0800
committerdanilo <danilo@FreeBSD.org>2013-12-19 20:49:09 +0800
commit5a3521caa2813dbc32babf032d1238017566bce2 (patch)
treeb624d04fd1c4249cc26e58931c056befb84f7b49 /net-im/cjc
parentbe6903c9138765603169c79341896a8ee330d1cf (diff)
downloadfreebsd-ports-gnome-5a3521caa2813dbc32babf032d1238017566bce2.tar.gz
freebsd-ports-gnome-5a3521caa2813dbc32babf032d1238017566bce2.tar.zst
freebsd-ports-gnome-5a3521caa2813dbc32babf032d1238017566bce2.zip
- Support USE_GITHUB
- Improve COMMENT - Add stage support PR: ports/184818 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'net-im/cjc')
-rw-r--r--net-im/cjc/Makefile31
1 files changed, 15 insertions, 16 deletions
diff --git a/net-im/cjc/Makefile b/net-im/cjc/Makefile
index 9370ab3a16bb..71dcf01f7151 100644
--- a/net-im/cjc/Makefile
+++ b/net-im/cjc/Makefile
@@ -4,38 +4,37 @@
PORTNAME= cjc
PORTVERSION= 1.2.1
CATEGORIES= net-im python
-MASTER_SITES= http://cloud.github.com/downloads/Jajcus/cjc/
+MASTER_SITES= GHC
MAINTAINER= ports@FreeBSD.org
-COMMENT= The Console Jabber Client
+COMMENT= Console Jabber Client
LICENSE= GPLv2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyxmpp>=1.1.0:${PORTSDIR}/net-im/py-pyxmpp
+OPTIONS_DEFINE= DOCS
+
+USE_GITHUB= yes
+GH_ACCOUNT= Jajcus
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+USES= shebangfix
+SHEBANG_FILES= cjc.in cjc.py cjc/main.py
USE_PYTHON= 2
-NO_STAGE= yes
post-patch:
- @${GREP} -lR "/usr/bin/python" ${WRKSRC} | ${XARGS} \
- ${REINPLACE_CMD} -e "s|/usr/bin/python|${PYTHON_CMD}|"
@${REINPLACE_CMD} -e \
"s|prefix=.*|prefix=${PREFIX}| ; \
- /pkg_docdir/s|^|#|g ; \
+ /^DOCS/s|COPYING|| ; \
s|INSTALL=.*|INSTALL=${INSTALL}| ; \
s|INSTALL_DATA=.*|INSTALL_DATA=${INSTALL_DATA}| ; \
s|INSTALL_DIR=.*|INSTALL_DIR=${MKDIR}|g ; \
- s|python |${PYTHON_CMD} |g" ${WRKSRC}/Makefile
-
-.include <bsd.port.options.mk>
+ /compileall/d" ${WRKSRC}/Makefile
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
-.endif
+ (cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
+ -d ${PREFIX} -f ${DATADIR_REL})
.include <bsd.port.mk>