summaryrefslogtreecommitdiff
path: root/print/papersize
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-07-22 06:52:13 +0000
committerrillig <rillig@pkgsrc.org>2006-07-22 06:52:13 +0000
commitbb5c1e5674d50b2ee1f1157f08a724cd93df416f (patch)
tree373fcf30e1e5bc10ed2cd2daa9b674ed0b78e23b /print/papersize
parent503e7791dd657af128269947905493bd41b24923 (diff)
downloadpkgsrc-bb5c1e5674d50b2ee1f1157f08a724cd93df416f.tar.gz
Changed the phases in which the work is done: The files are extracted in
the extract phase and configured in the configure phase, just as the names suggest. Fixed pkglint warnings.
Diffstat (limited to 'print/papersize')
-rw-r--r--print/papersize/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/print/papersize/Makefile b/print/papersize/Makefile
index 540d30ef25f..e2249690492 100644
--- a/print/papersize/Makefile
+++ b/print/papersize/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2006/03/04 21:30:31 jlam Exp $
+# $NetBSD: Makefile,v 1.25 2006/07/22 06:52:13 rillig Exp $
#
DISTNAME= papersize-1.0.8
@@ -10,17 +10,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Manipulate the default papersize in certain packages
WRKSRC= ${WRKDIR}
-EXTRACT_ONLY= # empty
-USE_LANGUAGES= # empty
+USE_LANGUAGES= # none
NO_CHECKSUM= yes
-NO_CONFIGURE= yes
+NO_BUILD= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
SUBST_CLASSES+= paths
-SUBST_STAGE.paths= post-build
+SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= getpapersize setpapersize
-
SUBST_SED.paths= -e 's,@SH@,${SH},'
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},'
SUBST_SED.paths+= -e 's,@X11BASE@,${X11BASE},'
@@ -34,10 +32,8 @@ SUBST_SED.paths+= -e 's,@TR@,${TR},'
SUBST_SED.paths+= -e 's,@RM@,${RM},'
SUBST_SED.paths+= -e 's,@CHMOD@,${CHMOD},'
-do-build:
- @for f in setpapersize getpapersize; do \
- ${CP} ${FILESDIR}/$$f ${WRKSRC}/$$f; \
- done
+do-extract:
+ cd ${FILESDIR} && cp setpapersize getpapersize ${WRKSRC}/.
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/setpapersize ${PREFIX}/bin/setpapersize