summaryrefslogtreecommitdiff
path: root/net-im/cjc
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-30 01:42:20 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-30 01:42:20 +0000
commit7b7d139a47af7939d7fbdbc2b3037e1e7370a0c9 (patch)
treeb7703f9641c5d8cbbea8ced924f9cd42d49208ed /net-im/cjc
parent- Switch to options helpers (diff)
- Add LICENSE_FILE
- Add NO_ARCH - Simplify docs installation
Notes
Notes: svn path=/head/; revision=404793
Diffstat (limited to 'net-im/cjc')
-rw-r--r--net-im/cjc/Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/net-im/cjc/Makefile b/net-im/cjc/Makefile
index 809a6ca797e1..76d2fdb33b92 100644
--- a/net-im/cjc/Makefile
+++ b/net-im/cjc/Makefile
@@ -10,26 +10,19 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Console Jabber Client
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyxmpp>=0:${PORTSDIR}/net-im/py-pyxmpp
USE_GITHUB= yes
GH_ACCOUNT= Jajcus
-WRKSRC= ${WRKDIR}/${DISTNAME}
-
USES= python:2 shebangfix
SHEBANG_FILES= cjc.in cjc.py cjc/main.py
+NO_ARCH= yes
PORTDOCS= *
-DOCSRCDIR1= ${WRKSRC}
-DOC_FILES1= ChangeLog README
-
-DOCSRCDIR2= ${WRKSRC}/doc
-DOCSDIR2= ${DOCSDIR}/doc
-DOC_FILES2= manual.html
-
OPTIONS_DEFINE= DOCS
post-patch:
@@ -46,9 +39,9 @@ post-install:
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
-d ${PREFIX} -f ${DATADIR_REL})
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
- @${MKDIR} ${STAGEDIR}${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README \
+ ${WRKSRC}/doc/manual.html ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>