1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/textproc/py-genshi-devel/Makefile
Dennis Herrmann dc9974675d - Update to 0.6.1052
- Connect to the build

PR:		ports/134304
Submitted by:	Alexey V.Degtyarev <alexey@renatasystems.org> (maintainer)
Approved by:	miwi (mentor)
2009-05-11 20:16:09 +00:00

61 lines
1.9 KiB
Makefile

# New ports collection makefile for: py-genshi-devel
# Date created: Wed 06 May 2009
# Whom: Alexey V. Degtyarev <alexey@renatasystems.org>
#
# $FreeBSD$
#
PORTNAME= Genshi
PORTVERSION= 0.6.1052
CATEGORIES= textproc www python
MASTER_SITES= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= -devel
MAINTAINER= alexey@renatasystems.org
COMMENT= Python toolkit for stream-based generation of output for the web
USE_PYTHON= 2.4+
USE_PYDISTUTILS= easy_install
WRKSRC= ${WRKDIR}/genshi
CONFLICTS= py-genshi-[0-9]*
PYEASYINSTALL_ARCHDEP= yes
PYDISTUTILS_PKGVERSION= ${PORTVERSION:R}dev
PYDISTUTILS_INSTALLARGS= -Z -O 1 -N \
-S ${PYTHONPREFIX_SITELIBDIR}/site-packages \
-d ${PYTHONPREFIX_SITELIBDIR} \
${WRKSRC}/dist/${PYEASYINSTALL_EGG}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
# This target is only meant to be used by the port maintainer.
x-generate-plist:
(${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX} \
| ${SED} -E \
's,.*share/nls/.+$$,,g \
;s,@dirrm share/man(/.*)?$$,,g \
;s,${PYTHON_SITELIBDIR:S,^${PYTHONBASE}/,,},%%PYTHON_SITELIBDIR%%,g \
;s,^${DOCSDIR_REL},%%PORTDOCS%%%%DOCSDIR%%,g \
;s,@dirrm ${DOCSDIR_REL},%%PORTDOCS%%@dirrm %%DOCSDIR%%,g \
;s,^${EXAMPLESDIR_REL},%%PORTEXAMPLES%%%%EXAMPLESDIR%%,g \
;s,@dirrm ${EXAMPLESDIR_REL},%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%,g \
;s,${PYEASYINSTALL_EGG},%%PYEASYINSTALL_EGG%%,g \
;s,@dirrm (%%PYTHON_SITELIBDIR%%|${PYTHON_LIBDIR:S,${PYTHONBASE}/,,})$$,,g \
' | ${TR} -s '\n') > temp-pkg-plist
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>