Thu Sep 27 23:00:48 2018 UTC ()
pkg_notify: SUBST in pre-configure doesn't work when NO_CONFIGURE=yes


(tnn)
diff -r1.27 -r1.28 pkgsrc/pkgtools/pkg_notify/Makefile

cvs diff -r1.27 -r1.28 pkgsrc/pkgtools/pkg_notify/Makefile (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_notify/Makefile 2018/08/22 09:46:11 1.27
+++ pkgsrc/pkgtools/pkg_notify/Makefile 2018/09/27 23:00:48 1.28
@@ -1,39 +1,39 @@ @@ -1,39 +1,39 @@
1# $NetBSD: Makefile,v 1.27 2018/08/22 09:46:11 wiz Exp $ 1# $NetBSD: Makefile,v 1.28 2018/09/27 23:00:48 tnn Exp $
2 2
3PKGNAME= pkg_notify-0.4.6 3PKGNAME= pkg_notify-0.4.6
4PKGREVISION= 1 4PKGREVISION= 1
5CATEGORIES= pkgtools 5CATEGORIES= pkgtools
6 6
7MAINTAINER= imil@gcu.info 7MAINTAINER= imil@gcu.info
8HOMEPAGE= # none 8HOMEPAGE= # none
9COMMENT= Notifies package maintainer when a new version is available 9COMMENT= Notifies package maintainer when a new version is available
10LICENSE= modified-bsd 10LICENSE= modified-bsd
11 11
12DEPENDS+= p5-libwww>=5.76:../../www/p5-libwww 12DEPENDS+= p5-libwww>=5.76:../../www/p5-libwww
13 13
14NO_BUILD= yes 14NO_BUILD= yes
15NO_CONFIGURE= yes 15NO_CONFIGURE= yes
16USE_TOOLS+= perl:run 16USE_TOOLS+= perl:run
17WRKSRC= ${WRKDIR} 17WRKSRC= ${WRKDIR}
18 18
19EGDIR= ${PREFIX}/share/examples/${PKGBASE} 19EGDIR= ${PREFIX}/share/examples/${PKGBASE}
20CONF_FILES= ${EGDIR}/${PKGBASE}.list \ 20CONF_FILES= ${EGDIR}/${PKGBASE}.list \
21 ${PKG_SYSCONFDIR}/${PKGBASE}.list 21 ${PKG_SYSCONFDIR}/${PKGBASE}.list
22 22
23.include "../../mk/bsd.prefs.mk" 23.include "../../mk/bsd.prefs.mk"
24 24
25SUBST_CLASSES+= pkg_notify 25SUBST_CLASSES+= pkg_notify
26SUBST_STAGE.pkg_notify= pre-configure 26SUBST_STAGE.pkg_notify= pre-install
27SUBST_FILES.pkg_notify= pkg_notify 27SUBST_FILES.pkg_notify= pkg_notify
28SUBST_FILES.pkg_notify+= pkg_notify.1 28SUBST_FILES.pkg_notify+= pkg_notify.1
29SUBST_SED.pkg_notify= -e 's|@PKGSRCDIR@|${PKGSRCDIR}|' 29SUBST_SED.pkg_notify= -e 's|@PKGSRCDIR@|${PKGSRCDIR}|'
30SUBST_SED.pkg_notify+= -e 's|@PREFIX@|${PREFIX}|g' 30SUBST_SED.pkg_notify+= -e 's|@PREFIX@|${PREFIX}|g'
31SUBST_SED.pkg_notify+= -e 's|@MAKE@|${MAKE:Q}|g' 31SUBST_SED.pkg_notify+= -e 's|@MAKE@|${MAKE:Q}|g'
32SUBST_SED.pkg_notify+= -e 's|@PERL@|${PERL5:Q}|g' 32SUBST_SED.pkg_notify+= -e 's|@PERL@|${PERL5:Q}|g'
33SUBST_SED.pkg_notify+= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' 33SUBST_SED.pkg_notify+= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
34 34
35INSTALLATION_DIRS= bin ${EGDIR} ${PKGMANDIR}/man1 35INSTALLATION_DIRS= bin ${EGDIR} ${PKGMANDIR}/man1
36 36
37do-extract: 37do-extract:
38 cd ${FILESDIR} && \ 38 cd ${FILESDIR} && \
39 ${CP} pkg_notify pkg_notify.list pkg_notify.1 ${WRKSRC} 39 ${CP} pkg_notify pkg_notify.list pkg_notify.1 ${WRKSRC}