openbsd-ports/textproc/dblatex/Makefile

43 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.2 2010/05/10 22:04:59 kili Exp $
2010-05-06 14:08:02 -04:00
COMMENT = convert DocBook to LaTeX, DVI, PostScript, and PDF
DISTNAME = dblatex-0.3
PKGNAME = ${DISTNAME}p0
2010-05-06 14:08:02 -04:00
CATEGORIES = textproc
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
HOMEPAGE = http://dblatex.sourceforge.net
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dblatex/}
EXTRACT_SUFX = .tar.bz2
MODULES = lang/python
MODPY_DISTUTILS_INSTALL =install --prefix=${LOCALBASE} \
--root=${DESTDIR} \
--catalogs=${LOCALBASE}/share/xsl/docbook
RUN_DEPENDS = ::print/texlive/base \
::print/texlive/texmf,-full \
::print/texlive/texmf,-main \
2010-05-06 14:08:02 -04:00
::textproc/libxslt \
::textproc/docbook-xsl \
:ImageMagick-*:graphics/ImageMagick
BUILD_DEPENDS = ${RUN_DEPENDS}
NO_REGRESS = Yes
SUBST_VARS += LOCALBASE MODPY_BIN
2010-05-06 14:08:02 -04:00
post-extract:
@perl -pi -e 's,share/man/man1,man/man1,' ${WRKSRC}/setup.py
post-install:
@rm -r ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/contrib
${SUBST_CMD} -c ${FILESDIR}/dblatex ${WRKSRC}/scripts/dblatex
${INSTALL_SCRIPT} ${WRKSRC}/scripts/dblatex ${PREFIX}/bin/dblatex
.include <bsd.port.mk>