[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.76 and 1.580

version 1.76, 2001/01/26 13:16:52 version 1.580, 2019/05/21 17:59:48
Line 1 
Line 1 
 # $NetBSD$  # $NetBSD$
 #  
   
 DISTNAME=               pkglint-2.35  PKGNAME=        pkglint-5.7.10
 CATEGORIES=             pkgtools devel  CATEGORIES=     pkgtools
 MASTER_SITES=           # empty  DISTNAME=       tools
 DISTFILES=              # empty  MASTER_SITES=   ${MASTER_SITE_GITHUB:=golang/}
   GITHUB_PROJECT= tools
 MAINTAINER=             hubertf@netbsd.org  GITHUB_TAG=     92d8274bd7b8a4c65f24bafe401a029e58392704
 HOMEPAGE=               ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/Packages.txt  
   MAINTAINER=     rillig@NetBSD.org
 USE_PERL5=              YES  HOMEPAGE=       https://github.com/rillig/pkglint
   COMMENT=        Verifier for NetBSD packages
 EXTRACT_ONLY=   # empty  LICENSE=        2-clause-bsd
 NO_WRKSUBDIR=   yes  CONFLICTS+=     pkglint4-[0-9]*
 NO_CHECKSUM=    yes  
 NO_PATCH=       yes  USE_TOOLS+=             pax
 NO_CONFIGURE=   yes  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
   
   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}
   
 PKGSRCDIR?=     ${.CURDIR}/../..  do-test:
 MAKE_ENV=       PKGSRCDIR=${PKGSRCDIR}          ${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
   
   # 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"
   
 .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
   .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
                 < ${FILESDIR}/${FILE}.pl                \  
                 > ${WRKSRC}/${FILE}  
 .endfor  
 .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  
 .endfor  
   
 do-install:  
         ${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 "../../security/go-crypto/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"  .include "../../mk/bsd.pkg.mk"

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.580

CVSweb <webmaster@jp.NetBSD.org>