7eeb51b534
Do it for all packages that * mention perl, or * have a directory name starting with p5-*, or * depend on a package starting with p5- like last time, for 5.18, where this didn't lead to complaints. Let me know if you have any this time.
31 lines
777 B
Makefile
31 lines
777 B
Makefile
# $NetBSD: Makefile,v 1.9 2014/05/29 23:37:14 wiz Exp $
|
|
|
|
PKGNAME= pkg_distinst-0.02
|
|
PKGREVISION= 3
|
|
CATEGORIES= pkgtools
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= Remove any distfiles not belonging to an installed package
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
USE_TOOLS+= perl:run
|
|
NO_BUILD= yes
|
|
USE_LANGUAGES= # none
|
|
AUTO_MKDIRS= yes
|
|
|
|
SUBST_CLASSES+= di
|
|
SUBST_STAGE.di= do-configure
|
|
SUBST_FILES.di= pkg_distinst.pl
|
|
SUBST_SED.di= -e 's,@PERL5@,${PERL5},g'
|
|
SUBST_SED.di+= -e 's,@PKGSRCDIR@,${PKGSRCDIR},g'
|
|
SUBST_SED.di+= -e 's,@MAKE@,${MAKE},g'
|
|
SUBST_MESSAGE.di= Fixing script for installation.
|
|
|
|
do-extract:
|
|
cd ${FILESDIR} && cp pkg_distinst.pl ${WRKSRC}/
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pkg_distinst.pl \
|
|
${DESTDIR}${PREFIX}/bin/pkg_distinst
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|