[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.232 and 1.554

version 1.232, 2005/05/07 15:10:24 version 1.554, 2018/11/07 20:58:22
Line 1 
Line 1 
 # $NetBSD$  # $NetBSD$
 #  
   
 DISTNAME=       pkglint-4.13  PKGNAME=        pkglint-5.6.6
 CATEGORIES=     pkgtools devel  DISTFILES=      # none
 MASTER_SITES=   # empty  CATEGORIES=     pkgtools
 DISTFILES=      # empty  
   
 MAINTAINER=     rillig@NetBSD.org  MAINTAINER=     rillig@NetBSD.org
 HOMEPAGE=       ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/Packages.txt  HOMEPAGE=       https://github.com/rillig/pkglint
 COMMENT=        Verifier for NetBSD packages and complete pkgsrc tree  COMMENT=        Verifier for NetBSD packages
   LICENSE=        2-clause-bsd
   CONFLICTS+=     pkglint4-[0-9]*
   
 DEPENDS+=       digest>=20010101:../../pkgtools/digest  NO_CHECKSUM=    yes
   USE_TOOLS+=     pax
 PKG_INSTALLATION_TYPES= overwrite pkgviews  AUTO_MKDIRS=    yes
   GO_SRCPATH=     netbsd.org/pkglint
   
 USE_PERL5=      yes  CHECK_RELRO_SKIP+=      bin/pkglint
   
 WRKSRC=         ${WRKDIR}  SUBST_CLASSES+=         pkglint
 NO_CHECKSUM=    yes  SUBST_STAGE.pkglint=    post-configure
 NO_CONFIGURE=   yes  SUBST_FILES.pkglint+=   pkglint.go
 USE_LANGUAGES=  # empty  SUBST_SED.pkglint+=     -e s\|@VERSION@\|${PKGNAME:S/pkglint-//}\|g
   SUBST_SED.pkglint+=     -e s\|@BMAKE@\|${MAKE:T:Q}\|g
   
   TOOLS_CREATE+=          goyacc
   TOOLS_PATH.goyacc=      ${WRKDIR}/bin/goyacc
   USE_TOOLS+=             goyacc
   
 DISTVER=        ${DISTNAME:S/pkglint-//}  do-extract:
           ${RUN} ${MKDIR} ${WRKDIR}/pkglint
           ${RUN} cd ${FILESDIR} && ${PAX} -rw . ${WRKDIR}/pkglint
           ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} get golang.org/x/tools/cmd/goyacc
           ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install golang.org/x/tools/cmd/goyacc
   
   pre-build:
           ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} generate ${GO_BUILD_PATTERN}
   
   pre-install:
           ${RUN} rm -f ${WRKDIR}/bin/goyacc
           ${RUN} rm -rf ${WRKDIR}/pkg
   
 INSTALLATION_DIRS=      bin man/cat1 man/man1 share/pkglint  post-install: do-install-man
   
 SUBST_CLASSES+=         pkglint  # This needs to come before bsd.prefs.mk so that SSP_SUPPORTED is properly set.
 SUBST_STAGE.pkglint=    pre-build  .include "../../lang/go/go-package.mk"
 SUBST_FILES.pkglint+=   lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl  
 SUBST_FILES.pkglint+=   pkglint.0 pkglint.1 pkglint.pl  
 SUBST_FILES.pkglint+=   plist-clash.pl  
 SUBST_SED.pkglint+=     -e 's|@PREFIX@|${PREFIX}|g'  
 SUBST_SED.pkglint+=     -e 's|@PKGSRCDIR@|${PKGSRCDIR}|g'  
 SUBST_SED.pkglint+=     -e 's|@DISTVER@|${DISTVER}|g'  
 SUBST_SED.pkglint+=     -e 's|@MAKE@|${MAKE}|g'  
 SUBST_SED.pkglint+=     -e 's|@PERL@|${PERL5}|g'  
 SUBST_SED.pkglint+=     -e 's|@DATADIR@|${PREFIX}/share/pkglint|g'  
   
 .include "../../mk/bsd.prefs.mk"  .include "../../mk/bsd.prefs.mk"
   
 do-extract:  do-install-man: .PHONY
 .for _f_ in ${SUBST_FILES.pkglint}  .if ${MANINSTALL:Mcatinstall}
         @${CP} ${FILESDIR}/${_f_} ${WRKSRC}/${_f_}  .  if ${CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss]}
 .endfor          ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
   .  else
 do-build:          ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
         @${DO_NADA}  .  endif
 .if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX"  .endif
    # the pre-generated man-pages are 'mandoc';  these OS need 'man'  .if ${MANINSTALL:Mmaninstall}
 .  for FILE in lintpkgsrc pkglint          ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
         nroff -man ${WRKSRC}/${FILE}.1 > ${WRKSRC}/${FILE}.0  
 .  endfor  
 .endif  .endif
   
 do-install:  .if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
         ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${PREFIX}/bin/pkglint  .  include "../../devel/go-check/buildlink3.mk"
         ${INSTALL_SCRIPT} ${WRKSRC}/lintpkgsrc.pl ${PREFIX}/bin/lintpkgsrc  .endif
         ${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  
         ${INSTALL_DATA} ${FILESDIR}/makevars.map ${PREFIX}/share/pkglint/  
         ${INSTALL_DATA} ${FILESDIR}/deprecated.map ${PREFIX}/share/pkglint/  
   
 .include "../../mk/bsd.pkg.mk"  .include "../../mk/bsd.pkg.mk"

Legend:
Removed from v.1.232  
changed lines
  Added in v.1.554

CVSweb <webmaster@jp.NetBSD.org>