Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/Makefile,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/Makefile,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.389 retrieving revision 1.427 diff -u -p -r1.389 -r1.427 --- pkgsrc/pkgtools/pkglint/Makefile 2011/05/23 10:59:36 1.389 +++ pkgsrc/pkgtools/pkglint/Makefile 2013/03/26 15:10:31 1.427 @@ -1,15 +1,14 @@ -# $NetBSD: Makefile,v 1.389 2011/05/23 10:59:36 cheusov Exp $ -# +# $NetBSD: Makefile,v 1.427 2013/03/26 15:10:31 schmonz Exp $ # Note: if you update the version number, please have a look at the # changes between the CVS tag "pkglint_current" and HEAD. # After updating, please re-set the CVS tag to HEAD. -DISTNAME= pkglint-4.98 +DISTNAME= pkglint-4.127 CATEGORIES= pkgtools MASTER_SITES= # none DISTFILES= # none -MAINTAINER= rillig@NetBSD.org +OWNER= wiz@NetBSD.org HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/ COMMENT= Verifier for NetBSD packages @@ -17,20 +16,22 @@ DEPENDS+= p5-Digest-SHA1-[0-9]*:../../se DEPENDS+= p5-enum>=1.016:../../devel/p5-enum DEPENDS+= p5-pkgsrc-Dewey>=1.0:../../pkgtools/p5-pkgsrc-Dewey +BUILD_DEPENDS+= p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep +BUILD_DEPENDS+= p5-Test-Trap-[0-9]*:../../devel/p5-Test-Trap + PKG_INSTALLATION_TYPES= overwrite pkgviews -PKG_DESTDIR_SUPPORT= user-destdir WRKSRC= ${WRKDIR} -NO_BUILD= yes +NO_CHECKSUM= yes USE_LANGUAGES= # none +USE_TOOLS+= perl AUTO_MKDIRS= yes .include "../../mk/bsd.prefs.mk" SUBST_CLASSES+= pkglint SUBST_STAGE.pkglint= post-configure -SUBST_FILES.pkglint+= pkglint.pl -SUBST_FILES.pkglint+= plist-clash.pl +SUBST_FILES.pkglint+= build.pl pkglint.pl pkglint.t plist-clash.pl .if defined(BATCH) SUBST_SED.pkglint+= -e s\|@PKGSRCDIR@\|/usr/pkgsrc\|g .else @@ -40,17 +41,31 @@ SUBST_SED.pkglint+= -e s\|@PREFIX@\|${PR SUBST_SED.pkglint+= -e s\|@DISTVER@\|${DISTNAME:S/pkglint-//}\|g SUBST_SED.pkglint+= -e s\|@MAKE@\|${MAKE:Q}\|g SUBST_SED.pkglint+= -e s\|@PERL@\|${PERL5:Q}\|g -SUBST_SED.pkglint+= -e s\|@DATADIR@\|${PREFIX}/share/pkglint\|g +SUBST_SED.pkglint+= -e s\|@DATADIR@\|${FILESDIR}\|g + +SUBST_CLASSES+= mappaths +SUBST_STAGE.mappaths= pre-install +SUBST_FILES.mappaths+= pkglint.pl +SUBST_SED.mappaths+= -e s\|${FILESDIR}\|${PREFIX}/share/pkglint\|g # Note: This target is only intended for use by the pkglint author. .PHONY: quick-install quick-install: ${RM} -rf ${WRKSRC} ${MKDIR} ${WRKSRC} - ${MAKE} do-extract subst-pkglint do-install selftest clean + ${MAKE} do-extract subst-pkglint do-build do-install selftest clean do-extract: - cd ${FILESDIR} && ${CP} pkglint.0 pkglint.1 pkglint.pl plist-clash.pl ${WRKSRC} + cd ${FILESDIR} && ${CP} build.pl pkglint.0 pkglint.1 pkglint.pl pkglint.t plist-clash.pl ${WRKSRC} + mkdir ${WRKSRC}/PkgLint + cd ${FILESDIR} && ${CP} PkgLint/*.pm ${WRKSRC}/PkgLint + +do-build: + cd ${WRKSRC} && ${PERL5} build.pl < pkglint.pl > pkglint.pl.inlined \ + && mv pkglint.pl.inlined pkglint.pl + +do-test: + cd ${WRKSRC} && prove pkglint.t do-install: ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${DESTDIR}${PREFIX}/bin/pkglint