if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
39 lines
997 B
Makefile
39 lines
997 B
Makefile
# $OpenBSD: Makefile,v 1.17 2021/02/23 19:39:44 sthen Exp $
|
|
|
|
COMMENT = convert DocBook to LaTeX, DVI, PostScript, and PDF
|
|
DISTNAME = dblatex-0.3
|
|
REVISION = 9
|
|
CATEGORIES = textproc
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
HOMEPAGE = http://dblatex.sourceforge.net
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dblatex/}
|
|
EXTRACT_SUFX = .tar.bz2
|
|
|
|
MODULES = lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
|
|
MODPY_DISTUTILS_INSTALL =install --prefix=${LOCALBASE} \
|
|
--root=${DESTDIR} \
|
|
--catalogs=${LOCALBASE}/share/xsl/docbook
|
|
|
|
RUN_DEPENDS = print/texlive/texmf,-full \
|
|
textproc/docbook-xsl \
|
|
graphics/ImageMagick
|
|
BUILD_DEPENDS = print/texlive/base \
|
|
textproc/docbook-xsl \
|
|
graphics/ImageMagick
|
|
NO_TEST = Yes
|
|
|
|
SUBST_VARS += LOCALBASE MODPY_BIN
|
|
|
|
post-extract:
|
|
@cd ${WRKSRC}/docs/manpage/ && gunzip dblatex.1.gz
|
|
|
|
post-install:
|
|
@rm -r ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/contrib
|
|
${SUBST_PROGRAM} ${FILESDIR}/dblatex ${PREFIX}/bin/dblatex
|
|
|
|
.include <bsd.port.mk>
|