1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- 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)
This commit is contained in:
Rusmir Dusko 2014-03-22 14:01:14 +00:00
parent 28d4d9e632
commit 0c22e3b364
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348794
2 changed files with 24 additions and 14 deletions

View File

@ -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>

View File

@ -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