aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
Diffstat (limited to 'net-im')
-rw-r--r--net-im/cjc/Makefile33
-rw-r--r--net-im/cjc/pkg-plist5
2 files changed, 24 insertions, 14 deletions
diff --git a/net-im/cjc/Makefile b/net-im/cjc/Makefile
index 71dcf01f7151..406360228d33 100644
--- a/net-im/cjc/Makefile
+++ b/net-im/cjc/Makefile
@@ -11,9 +11,7 @@ COMMENT= Console Jabber Client
LICENSE= GPLv2
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyxmpp>=1.1.0:${PORTSDIR}/net-im/py-pyxmpp
-
-OPTIONS_DEFINE= DOCS
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyxmpp>=0:${PORTSDIR}/net-im/py-pyxmpp
USE_GITHUB= yes
GH_ACCOUNT= Jajcus
@@ -24,17 +22,34 @@ USES= shebangfix
SHEBANG_FILES= cjc.in cjc.py cjc/main.py
USE_PYTHON= 2
+PORTDOCS= *
+
+DOCSRCDIR1= ${WRKSRC}
+DOC_FILES1= ChangeLog README
+
+DOCSRCDIR2= ${WRKSRC}/doc
+DOCSDIR2= ${DOCSDIR}/doc
+DOC_FILES2= manual.html
+
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e \
- "s|prefix=.*|prefix=${PREFIX}| ; \
- /^DOCS/s|COPYING|| ; \
- s|INSTALL=.*|INSTALL=${INSTALL}| ; \
- s|INSTALL_DATA=.*|INSTALL_DATA=${INSTALL_DATA}| ; \
- s|INSTALL_DIR=.*|INSTALL_DIR=${MKDIR}|g ; \
- /compileall/d" ${WRKSRC}/Makefile
+ 's|prefix=.*|prefix=${PREFIX}|; \
+ s|$$(INSTALL_DIR) $$(DESTDIR)$$(pkg_docdir)||; \
+ s|$$(INSTALL_DATA) $$(DOCS) $$(DESTDIR)$$(pkg_docdir)||; \
+ s|INSTALL=.*|INSTALL=${INSTALL}|; \
+ s|INSTALL_DATA=.*|INSTALL_DATA=${INSTALL_DATA}|; \
+ s|^INSTALL_DIR=.*|INSTALL_DIR=${MKDIR}|; \
+ /compileall/d' ${WRKSRC}/Makefile
post-install:
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
-d ${PREFIX} -f ${DATADIR_REL})
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR2}
+ ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+
.include <bsd.port.mk>
diff --git a/net-im/cjc/pkg-plist b/net-im/cjc/pkg-plist
index b53ceceeab84..d4806134cdc0 100644
--- a/net-im/cjc/pkg-plist
+++ b/net-im/cjc/pkg-plist
@@ -95,11 +95,6 @@ bin/cjc
%%DATADIR%%/plugins/version.pyc
%%DATADIR%%/plugins/xmlconsole.py
%%DATADIR%%/plugins/xmlconsole.pyc
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%%%DOCSDIR%%/manual.html
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%/plugins
@dirrm %%DATADIR%%/cjc/ui
@dirrm %%DATADIR%%/cjc