[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 and 1.561

version, 2002/08/23 05:09:25 version 1.561, 2018/12/17 00:15:39
Line 1 
Line 1 
 # $NetBSD$  # $NetBSD$
 DISTNAME=       pkglint-3.30  PKGNAME=        pkglint-5.6.9
 CATEGORIES=     pkgtools devel  CATEGORIES=     pkgtools
 MASTER_SITES=   # empty  DISTNAME=       tools
 DISTFILES=      # empty  MASTER_SITES=   ${MASTER_SITE_GITHUB:=golang/}
   GITHUB_TAG=     92d8274bd7b8a4c65f24bafe401a029e58392704
   MAINTAINER=     rillig@NetBSD.org
   HOMEPAGE=       https://github.com/rillig/pkglint
   COMMENT=        Verifier for NetBSD packages
   LICENSE=        2-clause-bsd
   CONFLICTS+=     pkglint4-[0-9]*
   USE_TOOLS+=             pax
   AUTO_MKDIRS=            yes
   GO_SRCPATH=             golang.org/x/tools
   GO_DIST_BASE=           ${GO_SRCPATH}
   GO_BUILD_PATTERN=       netbsd.org/pkglint/...
   CHECK_RELRO_SKIP+=      bin/pkglint
   SUBST_CLASSES+=         pkglint
   SUBST_STAGE.pkglint=    post-configure
   SUBST_FILES.pkglint+=   ${WRKSRC.pkglint}/pkglint.go
   SUBST_SED.pkglint+=     -e s\|@VERSION@\|${PKGVERSION}\|g
   SUBST_SED.pkglint+=     -e s\|@BMAKE@\|${MAKE:T:Q}\|g
   EXTRACT_PAX_ARGS=       -s ',.*/CVS$$,,' -s ',.*/CVS/.*,,'
   WRKSRC.tools=           ${WRKSRC}/golang.org/x/tools
   WRKSRC.pkglint=         ${WRKSRC}/netbsd.org/pkglint
   PREPEND_PATH+=          ${WRKDIR}/bin   # for goyacc
           ${RUN} ${MKDIR} ${WRKSRC.pkglint}
           ${RUN} cd ${FILESDIR} && ${PAX} -rw ${EXTRACT_PAX_ARGS} . ${WRKSRC.pkglint}
           ${RUN} ${MKDIR} ${WRKSRC.tools}
           ${RUN} ${MV} ${WRKDIR}/tools-*/* ${WRKSRC.tools}
           ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install -v golang.org/x/tools/cmd/goyacc
           ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} generate ${GO_BUILD_PATTERN}
 MAINTAINER=     hubertf@netbsd.org  do-test:
 HOMEPAGE=       ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/Packages.txt          ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} test -vet=off -v ${GO_BUILD_PATTERN}
 COMMENT=        Verifier for NetBSD packages and complete pkgsrc tree  
 DEPENDS+=       digest-2001*:../../pkgtools/digest  do-install:
           ${RUN} cd ${WRKDIR} && ${PAX} -rw bin/pkglint ${DESTDIR}${PREFIX}
 USE_PERL5=      YES          ${RUN} cd ${WRKDIR} && ${PAX} -rw src/netbsd.org/pkglint        \
                   pkg/${GO_PLATFORM}/netbsd.org/pkglint* ${DESTDIR}${PREFIX}/gopkg
 EXTRACT_ONLY=   # empty  
 WRKSRC=         ${WRKDIR}  post-install: do-install-man
 NO_CHECKSUM=    yes  
 NO_PATCH=       yes  # This needs to come before bsd.prefs.mk so that SSP_SUPPORTED is properly set.
 NO_CONFIGURE=   yes  .include "../../lang/go/go-package.mk"
   WRKSRC=         ${WRKDIR}/src   # Is set unconditionally by go-package.mk
 DISTVER=        ${DISTNAME:S/pkglint-//}  
 .include "../../mk/bsd.prefs.mk"  .include "../../mk/bsd.prefs.mk"
 .if ${OPSYS} == "SunOS"  do-install-man: .PHONY
 # This doesn't create readable manual pages. "mandoc" should be added  .if ${MANINSTALL:Mcatinstall}
 # to zoularis.  .  if ${CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss]}
 NROFF=          nroff -man          ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
 .else  .  else
 NROFF=          nroff -mandoc          ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
   .  endif
   .if ${MANINSTALL:Mmaninstall}
           ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 .endif  .endif
 do-build:  # Require devel/go-check even when PKGSRC_RUN_TEST is disabled
 .for FILE in pkglint lintpkgsrc plist-clash  # because netbsd.org/pkglint/intqa depends on it.
         ${SED} -e 's|@PREFIX@|${PREFIX}|g'              \  # This package is always installed.
                 -e 's|@PORTSDIR@|${_PKGSRCDIR}|g'       \  BUILDLINK_DEPMETHOD.go-check=   full
                 -e 's|@DISTVER@|${DISTVER}|g'           \  
                 < ${FILESDIR}/${FILE}.pl                \  
                 > ${WRKSRC}/${FILE}  
 .for FILE in pkglint lintpkgsrc  
         ${SED} -e 's|@PREFIX@|${PREFIX}|g'              \  
                 -e 's|@PORTSDIR@|${_PKGSRCDIR}|g'       \  
                 < ${FILESDIR}/${FILE}.1                 \  
                 > ${WRKSRC}/${FILE}.1  
         ${NROFF} ${WRKSRC}/${FILE}.1 >${WRKSRC}/${FILE}.0  
         ${INSTALL_SCRIPT} ${WRKSRC}/pkglint ${PREFIX}/bin/pkglint  
         ${INSTALL_SCRIPT} ${WRKSRC}/lintpkgsrc ${PREFIX}/bin/lintpkgsrc  
         ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash ${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 "../../devel/go-check/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"  .include "../../mk/bsd.pkg.mk"

Removed from v.  
changed lines
  Added in v.1.561

CVSweb <webmaster@jp.NetBSD.org>