c23c396c1b
- Stage support - Use PYDISTUTILS_AUTOPLIST
38 lines
1 KiB
Makefile
38 lines
1 KiB
Makefile
# Created by: Peter Johnson <johnson.peter@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dblatex
|
|
PORTVERSION= 0.3.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= johnson.peter@gmail.com
|
|
COMMENT= DocBook to LaTeX/ConTeXt Publishing
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/texmf-local/tex/latex/ifxetex/ifxetex.sty:${PORTSDIR}/print/ifxetex
|
|
RUN_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt \
|
|
${LOCALBASE}/share/xml/docbook/4.2/docbook.cat:${PORTSDIR}/textproc/docbook-xml
|
|
|
|
USE_BZIP2= yes
|
|
USE_TEX= tex
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS=yes
|
|
PYDISTUTILS_AUTOPLIST=yes
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
|
@${REINPLACE_CMD} -e '/pdfdocs),/d' ${WRKSRC}/setup.py
|
|
@${REINPLACE_CMD} -e '/htmldoc)/d' ${WRKSRC}/setup.py
|
|
.endif
|
|
@${REINPLACE_CMD} -e "s,share/man/man1,man/man1,g" ${WRKSRC}/setup.py
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
PYDISTUTILS_INSTALLARGS+= --catalogs=${PREFIX}/share/xml/catalog.ports
|
|
|
|
.include <bsd.port.post.mk>
|