1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/net-im/cjc/Makefile
Rusmir Dusko 0c22e3b364 - 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)
2014-03-22 14:01:14 +00:00

56 lines
1.3 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= cjc
PORTVERSION= 1.2.1
CATEGORIES= net-im python
MASTER_SITES= GHC
MAINTAINER= ports@FreeBSD.org
COMMENT= Console Jabber Client
LICENSE= GPLv2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyxmpp>=0:${PORTSDIR}/net-im/py-pyxmpp
USE_GITHUB= yes
GH_ACCOUNT= Jajcus
WRKSRC= ${WRKDIR}/${DISTNAME}
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}|; \
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>