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

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

1.556   ! rillig      1: # $NetBSD: Makefile,v 1.555 2018/11/08 19:41:32 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.555     rillig     30: # This needs to come before bsd.prefs.mk so that SSP_SUPPORTED is properly set.
                     31: .include "../../lang/go/go-package.mk"
1.556   ! rillig     32: WRKSRC=                ${WRKDIR}/src   # Is set unconditionally by go-package.mk
1.555     rillig     33:
                     34: .include "../../mk/bsd.prefs.mk"
                     35:
1.556   ! rillig     36: EXTRACT_PAX_ARGS=      ${"${PKGSRC_RUN_TEST:M[yY][eE][sS]}" :?: -s '|.*/intqa/.*||'}
        !            37:
        !            38: WRKSRC.tools=          ${WRKSRC}/golang.org/x/tools
        !            39: WRKSRC.pkglint=                ${WRKSRC}/netbsd.org/pkglint
        !            40:
        !            41: post-extract:
        !            42:        ${RUN} ${MKDIR} ${WRKSRC.pkglint}
        !            43:        ${RUN} cd ${FILESDIR} && ${PAX} -rw ${EXTRACT_PAX_ARGS} . ${WRKSRC.pkglint}
        !            44:
        !            45:        ${RUN} ${MKDIR} ${WRKSRC.tools}
        !            46:        ${RUN} ${MV} ${WRKDIR}/tools-*/* ${WRKSRC.tools}
1.554     rillig     47:
                     48: pre-build:
1.556   ! rillig     49:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install -v golang.org/x/tools/cmd/goyacc
1.554     rillig     50:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} generate ${GO_BUILD_PATTERN}
1.488     rillig     51:
1.556   ! rillig     52: do-test:
        !            53:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} test -vet=off -v ${GO_BUILD_PATTERN}
        !            54:
        !            55: do-install:
        !            56:        ${RUN} cd ${WRKDIR} && pax -rw bin/pkglint ${DESTDIR}/${PREFIX}
1.506     rillig     57:
1.512     rillig     58: post-install: do-install-man
1.467     rillig     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>