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

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

1.557   ! rillig      1: # $NetBSD: Makefile,v 1.556 2018/11/10 11:41:40 rillig Exp $
1.1       tsarna      2:
1.554     rillig      3: PKGNAME=       pkglint-5.6.6
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.556     rillig     30: EXTRACT_PAX_ARGS=      ${"${PKGSRC_RUN_TEST:M[yY][eE][sS]}" :?: -s '|.*/intqa/.*||'}
                     31:
                     32: WRKSRC.tools=          ${WRKSRC}/golang.org/x/tools
                     33: WRKSRC.pkglint=                ${WRKSRC}/netbsd.org/pkglint
                     34:
                     35: post-extract:
                     36:        ${RUN} ${MKDIR} ${WRKSRC.pkglint}
                     37:        ${RUN} cd ${FILESDIR} && ${PAX} -rw ${EXTRACT_PAX_ARGS} . ${WRKSRC.pkglint}
                     38:
                     39:        ${RUN} ${MKDIR} ${WRKSRC.tools}
                     40:        ${RUN} ${MV} ${WRKDIR}/tools-*/* ${WRKSRC.tools}
1.554     rillig     41:
                     42: pre-build:
1.556     rillig     43:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install -v golang.org/x/tools/cmd/goyacc
1.554     rillig     44:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} generate ${GO_BUILD_PATTERN}
1.488     rillig     45:
1.556     rillig     46: do-test:
                     47:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} test -vet=off -v ${GO_BUILD_PATTERN}
                     48:
                     49: do-install:
                     50:        ${RUN} cd ${WRKDIR} && pax -rw bin/pkglint ${DESTDIR}/${PREFIX}
1.506     rillig     51:
1.512     rillig     52: post-install: do-install-man
1.467     rillig     53:
1.557   ! rillig     54: # This needs to come before bsd.prefs.mk so that SSP_SUPPORTED is properly set.
        !            55: .include "../../lang/go/go-package.mk"
        !            56: WRKSRC=                ${WRKDIR}/src   # Is set unconditionally by go-package.mk
        !            57:
        !            58: .include "../../mk/bsd.prefs.mk"
        !            59:
1.478     rillig     60: do-install-man: .PHONY
1.506     rillig     61: .if ${MANINSTALL:Mcatinstall}
                     62: .  if ${CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss]}
1.556     rillig     63:        ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
1.434     jperkin    64: .  else
1.556     rillig     65:        ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
1.434     jperkin    66: .  endif
1.364     rillig     67: .endif
1.506     rillig     68: .if ${MANINSTALL:Mmaninstall}
1.556     rillig     69:        ${INSTALL_MAN} ${WRKSRC.pkglint}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
1.238     rillig     70: .endif
1.356     rillig     71:
1.478     rillig     72: .if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
1.506     rillig     73: .  include "../../devel/go-check/buildlink3.mk"
1.478     rillig     74: .endif
1.1       tsarna     75: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>