c1637f744f
texlive_texmf-minimal (pkgpath print/texlive/texmf,-main), because nobody knows how the texlive interdependencies will change in the future. While here, be nice to SUBST_VARS and give yet another space and a tab, too. "sure", stsp@
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2010/05/10 22:04:59 kili Exp $
|
|
|
|
COMMENT = convert DocBook to LaTeX, DVI, PostScript, and PDF
|
|
DISTNAME = dblatex-0.3
|
|
PKGNAME = ${DISTNAME}p0
|
|
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 \
|
|
::textproc/libxslt \
|
|
::textproc/docbook-xsl \
|
|
:ImageMagick-*:graphics/ImageMagick
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
|
NO_REGRESS = Yes
|
|
|
|
SUBST_VARS += LOCALBASE MODPY_BIN
|
|
|
|
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>
|