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

Annotation of pkgsrc/pkgtools/pkglint/Makefile, Revision 1.592

1.592   ! bsiegert    1: # $NetBSD: Makefile,v 1.591 2019/08/02 18:55:07 rillig Exp $
1.1       tsarna      2:
1.591     rillig      3: PKGNAME=       pkglint-5.7.19
1.592   ! bsiegert    4: PKGREVISION=   1
1.305     rillig      5: CATEGORIES=    pkgtools
1.556     rillig      6: DISTNAME=      tools
                      7: MASTER_SITES=  ${MASTER_SITE_GITHUB:=golang/}
                      8: GITHUB_PROJECT=        tools
                      9: GITHUB_TAG=    92d8274bd7b8a4c65f24bafe401a029e58392704
1.1       tsarna     10:
1.501     rillig     11: MAINTAINER=    rillig@NetBSD.org
1.527     rillig     12: HOMEPAGE=      https://github.com/rillig/pkglint
1.369     rillig     13: COMMENT=       Verifier for NetBSD packages
1.435     rillig     14: LICENSE=       2-clause-bsd
1.468     rillig     15: CONFLICTS+=    pkglint4-[0-9]*
1.101     hubertf    16:
1.556     rillig     17: USE_TOOLS+=            pax
                     18: AUTO_MKDIRS=           yes
                     19: GO_SRCPATH=            golang.org/x/tools
                     20: GO_DIST_BASE=          ${GO_SRCPATH}
                     21: GO_BUILD_PATTERN=      netbsd.org/pkglint/...
1.360     rillig     22:
1.516     wiz        23: CHECK_RELRO_SKIP+=     bin/pkglint
                     24:
1.207     wiz        25: SUBST_CLASSES+=                pkglint
1.240     rillig     26: SUBST_STAGE.pkglint=   post-configure
1.556     rillig     27: SUBST_FILES.pkglint+=  ${WRKSRC.pkglint}/pkglint.go
                     28: SUBST_SED.pkglint+=    -e s\|@VERSION@\|${PKGVERSION}\|g
1.545     rillig     29: SUBST_SED.pkglint+=    -e s\|@BMAKE@\|${MAKE:T:Q}\|g
1.180     jschauma   30:
1.582     rillig     31: EXTRACT_PAX_ARGS=      -s ',.*/CVS$$,,' -s ',.*/CVS/.*,,' -s ',.*/\..*,,'
1.556     rillig     32:
                     33: WRKSRC.tools=          ${WRKSRC}/golang.org/x/tools
                     34: WRKSRC.pkglint=                ${WRKSRC}/netbsd.org/pkglint
                     35:
1.558     rillig     36: PREPEND_PATH+=         ${WRKDIR}/bin   # for goyacc
                     37:
1.556     rillig     38: post-extract:
                     39:        ${RUN} ${MKDIR} ${WRKSRC.pkglint}
                     40:        ${RUN} cd ${FILESDIR} && ${PAX} -rw ${EXTRACT_PAX_ARGS} . ${WRKSRC.pkglint}
                     41:
                     42:        ${RUN} ${MKDIR} ${WRKSRC.tools}
                     43:        ${RUN} ${MV} ${WRKDIR}/tools-*/* ${WRKSRC.tools}
1.554     rillig     44:
                     45: pre-build:
1.556     rillig     46:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install -v golang.org/x/tools/cmd/goyacc
1.554     rillig     47:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} generate ${GO_BUILD_PATTERN}
1.488     rillig     48:
1.556     rillig     49: do-test:
                     50:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} test -vet=off -v ${GO_BUILD_PATTERN}
                     51:
                     52: do-install:
1.561     rillig     53:        ${RUN} cd ${WRKDIR} && ${PAX} -rw bin/pkglint ${DESTDIR}${PREFIX}
                     54:        ${RUN} cd ${WRKDIR} && ${PAX} -rw src/netbsd.org/pkglint        \
                     55:                pkg/${GO_PLATFORM}/netbsd.org/pkglint* ${DESTDIR}${PREFIX}/gopkg
1.506     rillig     56:
1.512     rillig     57: post-install: do-install-man
1.467     rillig     58:
1.557     rillig     59: # This needs to come before bsd.prefs.mk so that SSP_SUPPORTED is properly set.
                     60: .include "../../lang/go/go-package.mk"
                     61: WRKSRC=                ${WRKDIR}/src   # Is set unconditionally by go-package.mk
                     62:
                     63: .include "../../mk/bsd.prefs.mk"
                     64:
1.478     rillig     65: do-install-man: .PHONY
1.506     rillig     66: .if ${MANINSTALL:Mcatinstall}
                     67: .  if ${CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss]}
1.556     rillig     68:        ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
1.434     jperkin    69: .  else
1.556     rillig     70:        ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
1.434     jperkin    71: .  endif
1.364     rillig     72: .endif
1.506     rillig     73: .if ${MANINSTALL:Mmaninstall}
1.556     rillig     74:        ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
1.238     rillig     75: .endif
1.356     rillig     76:
1.561     rillig     77: # Require devel/go-check even when PKGSRC_RUN_TEST is disabled
                     78: # because netbsd.org/pkglint/intqa depends on it.
                     79: # This package is always installed.
                     80: BUILDLINK_DEPMETHOD.go-check=  full
                     81:
                     82: .include "../../devel/go-check/buildlink3.mk"
1.570     rillig     83: .include "../../security/go-crypto/buildlink3.mk"
1.1       tsarna     84: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>