[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.547 and 1.597

version 1.547, 2018/08/16 20:41:42 version 1.597, 2019/09/12 21:15:48
Line 1 
Line 1 
 # $NetBSD$  # $NetBSD$
   
 PKGNAME=        pkglint-5.6.1  PKGNAME=        pkglint-5.7.24
 DISTFILES=      # none  
 CATEGORIES=     pkgtools  CATEGORIES=     pkgtools
   DISTNAME=       tools
   MASTER_SITES=   ${MASTER_SITE_GITHUB:=golang/}
   GITHUB_PROJECT= tools
   GITHUB_TAG=     92d8274bd7b8a4c65f24bafe401a029e58392704
   
 MAINTAINER=     rillig@NetBSD.org  MAINTAINER=     rillig@NetBSD.org
 HOMEPAGE=       https://github.com/rillig/pkglint  HOMEPAGE=       https://github.com/rillig/pkglint
Line 10  COMMENT= Verifier for NetBSD packages
Line 13  COMMENT= Verifier for NetBSD packages
 LICENSE=        2-clause-bsd  LICENSE=        2-clause-bsd
 CONFLICTS+=     pkglint4-[0-9]*  CONFLICTS+=     pkglint4-[0-9]*
   
 NO_CHECKSUM=    yes  USE_TOOLS+=             pax
 USE_TOOLS+=     pax  AUTO_MKDIRS=            yes
 AUTO_MKDIRS=    yes  GO_SRCPATH=             golang.org/x/tools
 GO_SRCPATH=     netbsd.org/pkglint  GO_DIST_BASE=           ${GO_SRCPATH}
   GO_BUILD_PATTERN=       netbsd.org/pkglint/...
   
 CHECK_RELRO_SKIP+=      bin/pkglint  CHECK_RELRO_SKIP+=      bin/pkglint
 CHECK_RELRO_SKIP+=      bin/plist-clash  
   
 SUBST_CLASSES+=         pkglint  SUBST_CLASSES+=         pkglint
 SUBST_STAGE.pkglint=    post-configure  SUBST_STAGE.pkglint=    post-configure
 SUBST_FILES.pkglint+=   pkglint.go  SUBST_FILES.pkglint+=   ${WRKSRC.pkglint}/pkglint.go
 SUBST_SED.pkglint+=     -e s\|@VERSION@\|${PKGNAME:S/pkglint-//}\|g  SUBST_SED.pkglint+=     -e s\|@VERSION@\|${PKGVERSION}\|g
 SUBST_SED.pkglint+=     -e s\|@BMAKE@\|${MAKE:T:Q}\|g  SUBST_SED.pkglint+=     -e s\|@BMAKE@\|${MAKE:T:Q}\|g
   
 do-extract:  EXTRACT_PAX_ARGS=       -s ',.*/CVS$$,,' -s ',.*/CVS/.*,,' -s ',.*/\..*,,'
         ${RUN} ${MKDIR} ${WRKDIR}/pkglint  
         ${RUN} cd ${FILESDIR} && ${PAX} -rw . ${WRKDIR}/pkglint  
   
 pre-install:  WRKSRC.tools=           ${WRKSRC}/golang.org/x/tools
         ${RUN} rm -rf ${WRKDIR}/pkg  WRKSRC.pkglint=         ${WRKSRC}/netbsd.org/pkglint
   
   PREPEND_PATH+=          ${WRKDIR}/bin   # for goyacc
   
   post-extract:
           ${RUN} ${MKDIR} ${WRKSRC.pkglint}
           ${RUN} cd ${FILESDIR} && ${PAX} -rw ${EXTRACT_PAX_ARGS} . ${WRKSRC.pkglint}
   
           ${RUN} ${MKDIR} ${WRKSRC.tools}
           ${RUN} ${MV} ${WRKDIR}/tools-*/* ${WRKSRC.tools}
   
   pre-build:
           ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install -v golang.org/x/tools/cmd/goyacc
           ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} generate ${GO_BUILD_PATTERN}
   
   do-test:
           ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} test -vet=off -v ${GO_BUILD_PATTERN}
   
   do-install:
           ${RUN} cd ${WRKDIR} && ${PAX} -rw bin/pkglint ${DESTDIR}${PREFIX}
           ${RUN} cd ${WRKDIR} && ${PAX} -rw src/netbsd.org/pkglint        \
                   pkg/${GO_PLATFORM}/netbsd.org/pkglint* ${DESTDIR}${PREFIX}/gopkg
   
 post-install: do-install-man  post-install: do-install-man
   
   # This needs to come before bsd.prefs.mk so that SSP_SUPPORTED is properly set.
   .include "../../lang/go/go-package.mk"
   WRKSRC=         ${WRKDIR}/src   # Is set unconditionally by go-package.mk
   
 .include "../../mk/bsd.prefs.mk"  .include "../../mk/bsd.prefs.mk"
   
 do-install-man: .PHONY  do-install-man: .PHONY
 .if ${MANINSTALL:Mcatinstall}  .if ${MANINSTALL:Mcatinstall}
 .  if ${CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss]}  .  if ${CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss]}
         ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1          ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
 .  else  .  else
         ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1          ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
 .  endif  .  endif
 .endif  .endif
 .if ${MANINSTALL:Mmaninstall}  .if ${MANINSTALL:Mmaninstall}
         ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1          ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 .endif  .endif
   
 .include "../../lang/go/go-package.mk"  # Require devel/go-check even when PKGSRC_RUN_TEST is disabled
 .if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])  # because netbsd.org/pkglint/intqa depends on it.
 .  include "../../devel/go-check/buildlink3.mk"  # This package is always installed.
 .endif  BUILDLINK_DEPMETHOD.go-check=   full
   
   .include "../../devel/go-check/buildlink3.mk"
   .include "../../security/go-crypto/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"  .include "../../mk/bsd.pkg.mk"

Legend:
Removed from v.1.547  
changed lines
  Added in v.1.597

CVSweb <webmaster@jp.NetBSD.org>