summaryrefslogtreecommitdiff
path: root/textproc/py-X/Makefile
diff options
context:
space:
mode:
authoradrianp <adrianp>2007-05-19 01:14:07 +0000
committeradrianp <adrianp>2007-05-19 01:14:07 +0000
commit3153cfa735256d761dd3cbeb3624fb774c13ffdc (patch)
tree6946a51478e831e9dc15d24b25e1f3bc0d5d9bb4 /textproc/py-X/Makefile
parent847ba90e15a22871c9b99843cdf29a582fcc21ad (diff)
downloadpkgsrc-3153cfa735256d761dd3cbeb3624fb774c13ffdc.tar.gz
Stop py-X from installing a configuration file under /etc
Spotted by joerg@'s bulk builds PKGREVISION++
Diffstat (limited to 'textproc/py-X/Makefile')
-rw-r--r--textproc/py-X/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/textproc/py-X/Makefile b/textproc/py-X/Makefile
index 1d335f8ed64..6ae61dbcc62 100644
--- a/textproc/py-X/Makefile
+++ b/textproc/py-X/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/01/03 14:51:07 adrianp Exp $
+# $NetBSD: Makefile,v 1.2 2007/05/19 01:14:07 adrianp Exp $
#
DISTNAME= PyX-0.9
PKGNAME= ${PYPKGPREFIX}-X-0.9
+PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyx/}
@@ -15,6 +16,22 @@ 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/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"