[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkglint

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/pkgtools/pkglint/Makefile between version 1.184 and 1.462

version 1.184, 2004/04/17 17:26:40 version 1.462, 2015/06/12 10:50:56
Line 1 
Line 1 
 # $NetBSD$  # $NetBSD$
 #  
   
 DISTNAME=       pkglint-3.72  PKGNAME=        pkglint-4.154
 CATEGORIES=     pkgtools devel  PKGREVISION=    1
 MASTER_SITES=   # empty  CATEGORIES=     pkgtools
 DISTFILES=      # empty  
   OWNER=          wiz@NetBSD.org
   HOMEPAGE=       http://www.NetBSD.org/docs/pkgsrc/
   COMMENT=        Verifier for NetBSD packages
   LICENSE=        2-clause-bsd
   
   DEPENDS+=       p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
   DEPENDS+=       p5-enum>=1.016:../../devel/p5-enum
   DEPENDS+=       p5-pkgsrc-Dewey>=1.0:../../pkgtools/p5-pkgsrc-Dewey
   
 MAINTAINER=     hubertf@NetBSD.org  #BUILD_DEPENDS+=        p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep
 HOMEPAGE=       ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/Packages.txt  #BUILD_DEPENDS+=        p5-Test-Trap-[0-9]*:../../devel/p5-Test-Trap
 COMMENT=        Verifier for NetBSD packages and complete pkgsrc tree  
   
 DEPENDS+=       digest>=20010101:../../pkgtools/digest  
   
 PKG_INSTALLATION_TYPES= overwrite pkgviews  
   
 USE_PERL5=      yes  
   
 WRKSRC=         ${WRKDIR}  WRKSRC=         ${WRKDIR}
 NO_BUILDLINK=   yes  
 NO_CHECKSUM=    yes  NO_CHECKSUM=    yes
 NO_CONFIGURE=   yes  USE_LANGUAGES=  # none
 USE_LANGUAGES=  # empty  USE_TOOLS+=     perl:run
   AUTO_MKDIRS=    yes
   
 MAKE_ENV=       PKGSRCDIR=${_PKGSRCDIR:Q}  .include "../../mk/bsd.prefs.mk"
   
 DISTVER=        ${DISTNAME:S/pkglint-//}  
   
 INSTALLATION_DIRS=      bin man/cat1 man/man1  SUBST_CLASSES+=         pkglint
   SUBST_STAGE.pkglint=    post-configure
   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
   SUBST_SED.pkglint+=     -e s\|@PKGSRCDIR@\|${PKGSRCDIR}\|g
   .endif
   SUBST_SED.pkglint+=     -e s\|@PREFIX@\|${PREFIX}\|g
   SUBST_SED.pkglint+=     -e s\|@DISTVER@\|${PKGNAME: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@\|${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
   
   do-extract:
           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
   
 SUBST_FILES=    lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl pkglint.1 pkglint.0  do-build:
 SUBST_FILES+=   pkglint.pl plist-clash.pl          cd ${WRKSRC} && ${PERL5} build.pl < pkglint.pl > pkglint.pl.inlined \
                   && mv pkglint.pl.inlined pkglint.pl
   
 .include "../../mk/bsd.prefs.mk"  do-test:
           cd ${WRKSRC} && prove pkglint.t
   
 do-build:  do-install:
         @${MKDIR} ${WRKSRC}/src          ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${DESTDIR}${PREFIX}/bin/pkglint
 .for FILE in ${SUBST_FILES}          ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${DESTDIR}${PREFIX}/bin/plist-clash
         ${SED} -e 's|@PREFIX@|${PREFIX}|g'              \  .if !empty(MANINSTALL:Mcatinstall)
                 -e 's|@PORTSDIR@|${_PKGSRCDIR}|g'       \  .  if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
                 -e 's|@DISTVER@|${DISTVER}|g'           \          ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
                 -e 's|@MAKE@|${MAKE}|g'                 \  .  else
                 -e 's|@PERL@|${PERL5}|g'                \          ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
                 ${FILESDIR}/${FILE} > ${WRKSRC}/${FILE}  .  endif
 .endfor  .endif
 .if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX"  .if !empty(MANINSTALL:Mmaninstall)
    # the pre-generated man-pages are 'mandoc';  these OS need 'man'          ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 .  for FILE in lintpkgsrc pkglint  
         nroff -man ${WRKSRC}/${FILE}.1 > ${WRKSRC}/${FILE}.0  
 .  endfor  
 .endif  .endif
           ${INSTALL_DATA} ${FILESDIR}/makevars.map ${DESTDIR}${PREFIX}/share/pkglint/
           ${INSTALL_DATA} ${FILESDIR}/deprecated.map ${DESTDIR}${PREFIX}/share/pkglint/
   
 do-install:  selftest: .PHONY
         ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${PREFIX}/bin/pkglint          ${PREFIX}/bin/pkglint
         ${INSTALL_SCRIPT} ${WRKSRC}/lintpkgsrc.pl ${PREFIX}/bin/lintpkgsrc  
         ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${PREFIX}/bin/plist-clash  
         ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.0 ${PREFIX}/man/cat1  
         ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.1 ${PREFIX}/man/man1  
         ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${PREFIX}/man/cat1  
         ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${PREFIX}/man/man1  
   
 .include "../../mk/bsd.pkg.mk"  .include "../../mk/bsd.pkg.mk"

Legend:
Removed from v.1.184  
changed lines
  Added in v.1.462

CVSweb <webmaster@jp.NetBSD.org>