sthen 6f193fe71d avoid a two-step SUBST_CMD/INSTALL_SCRIPT process by using new(ish)
SUBST_CMD -m to set the mode while copying.

regen distinfo and switch to mandoc while there.
2013-05-04 09:41:32 +00:00

39 lines
1005 B
Makefile

# $OpenBSD: Makefile,v 1.12 2013/05/04 09:41:32 sthen Exp $
COMMENT = convert DocBook to LaTeX, DVI, PostScript, and PDF
DISTNAME = dblatex-0.3
REVISION = 7
CATEGORIES = textproc
# GPLv2+
PERMIT_PACKAGE_CDROM = 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/docbook-xsl \
graphics/ImageMagick
BUILD_DEPENDS = ${RUN_DEPENDS}
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_CMD} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
-c ${FILESDIR}/dblatex ${PREFIX}/bin/dblatex
.include <bsd.port.mk>