aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-12-30 09:42:20 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-12-30 09:42:20 +0800
commit2a3c7b8656f4b6689b6cd4beb15e20a200e84195 (patch)
treeb7703f9641c5d8cbbea8ced924f9cd42d49208ed
parent02ddcdd4936021299bf7fb8b0ef652d587376448 (diff)
downloadfreebsd-ports-gnome-2a3c7b8656f4b6689b6cd4beb15e20a200e84195.tar.gz
freebsd-ports-gnome-2a3c7b8656f4b6689b6cd4beb15e20a200e84195.tar.zst
freebsd-ports-gnome-2a3c7b8656f4b6689b6cd4beb15e20a200e84195.zip
- Add LICENSE_FILE
- Add NO_ARCH - Simplify docs installation
-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>