pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/editors/ce-doc Enable pkgviews installation, and use s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f6df486a226a
branches:  trunk
changeset: 478710:f6df486a226a
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Wed Jul 28 17:24:59 2004 +0000

description:
Enable pkgviews installation, and use subst.mk.

diffstat:

 editors/ce-doc/Makefile |  15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r d4f02f17bd89 -r f6df486a226a editors/ce-doc/Makefile
--- a/editors/ce-doc/Makefile   Wed Jul 28 17:24:28 2004 +0000
+++ b/editors/ce-doc/Makefile   Wed Jul 28 17:24:59 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2002/04/08 20:02:43 schmonz Exp $
+# $NetBSD: Makefile,v 1.2 2004/07/28 17:24:59 schmonz Exp $
 #
 
 .include "../ce/Makefile.common"
@@ -6,13 +6,18 @@
 PKGNAME=               ce-doc-${VERSION}
 COMMENT+=              , documentation
 
+PKG_INSTALLATION_TYPES=        overwrite pkgviews
+
 NO_BUILD=              # defined
 
 INSTALL_TARGET=                doc-install
 
-post-configure:
-       cd ${WRKSRC} && \
-       ${SED} -e 's|@PREFIX@|${PREFIX}|g' teach-ce > teach-ce.tmp && \
-       ${MV} teach-ce.tmp teach-ce
+INSTALLATION_DIRS=     bin share/doc/ce
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     do-configure
+SUBST_FILES.paths=     teach-ce
+SUBST_SED.paths=       -e 's|@LN@|${LN}|g' -e 's|@PREFIX@|${PREFIX}|g'
+SUBST_SED.paths+=      -e 's|@LOCALBASE@|${LOCALBASE}|g'
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index