aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-03-22 22:01:14 +0800
committernemysis <nemysis@FreeBSD.org>2014-03-22 22:01:14 +0800
commit77cbd823cbef34705a8b0c4ce10886adce6cb5c9 (patch)
treec47a87b6337138efe448219d242fd2e35a15eecd /net-im
parentb2fea6dc95c8cd6968cad1c91dae4302be04dbb4 (diff)
downloadfreebsd-ports-gnome-77cbd823cbef34705a8b0c4ce10886adce6cb5c9.tar.gz
freebsd-ports-gnome-77cbd823cbef34705a8b0c4ce10886adce6cb5c9.tar.zst
freebsd-ports-gnome-77cbd823cbef34705a8b0c4ce10886adce6cb5c9.zip
- Change dependency for net-im/py-pyxmpp
- Change DOCS, remove from pkg-plist - Change REINPLACE, install conditional DOCS PR: ports/179201 Submitted by: nemysis (self)
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