summaryrefslogtreecommitdiff
path: root/textproc/py-X/Makefile
blob: 358e87154b6ef76754a226c6eebab71d2af0491d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile,v 1.5 2008/04/25 20:39:12 joerg Exp $
#

DISTNAME=	PyX-0.9
PKGNAME=	${PYPKGPREFIX}-X-0.9
PKGREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=pyx/}

DEPENDS+=	teTeX-bin-[0-9]*:../../print/teTeX3-bin

PYBINMODULE=	yes
PYDISTUTILSPKG=	yes

MAINTAINER=	adrianp@NetBSD.org
HOMEPAGE=	http://pyx.sourceforge.net/
COMMENT=	Package for the creation of PostScript and PDF files

CONF_FILES=	${PREFIX}/share/examples/PyX/pyxrc \
		${PKG_SYSCONFDIR}/pyxrc

SUBST_CLASSES+=		conf
SUBST_STAGE.conf=	post-patch
SUBST_MESSAGE.conf=	Fixing configuration files.
SUBST_FILES.conf=	setup.py
SUBST_SED.conf+=	-e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"

pre-install:
	${CP} ${WRKSRC}/pyxrc ${WRKSRC}/pyxrc.default
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/PyX

post-install:
	${CP} ${WRKSRC}/pyxrc.default ${PREFIX}/share/examples/PyX/pyxrc

.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"