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

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

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

CVSweb <webmaster@jp.NetBSD.org>