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

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

1.555   ! rillig      1: # $NetBSD: Makefile,v 1.554 2018/11/07 20:58:22 rillig Exp $
1.1       tsarna      2:
1.554     rillig      3: PKGNAME=       pkglint-5.6.6
1.467     rillig      4: DISTFILES=     # none
1.305     rillig      5: CATEGORIES=    pkgtools
1.1       tsarna      6:
1.501     rillig      7: MAINTAINER=    rillig@NetBSD.org
1.527     rillig      8: HOMEPAGE=      https://github.com/rillig/pkglint
1.369     rillig      9: COMMENT=       Verifier for NetBSD packages
1.435     rillig     10: LICENSE=       2-clause-bsd
1.468     rillig     11: CONFLICTS+=    pkglint4-[0-9]*
1.101     hubertf    12:
1.391     cheusov    13: NO_CHECKSUM=   yes
1.478     rillig     14: USE_TOOLS+=    pax
1.367     rillig     15: AUTO_MKDIRS=   yes
1.467     rillig     16: GO_SRCPATH=    netbsd.org/pkglint
1.360     rillig     17:
1.516     wiz        18: CHECK_RELRO_SKIP+=     bin/pkglint
                     19:
1.207     wiz        20: SUBST_CLASSES+=                pkglint
1.240     rillig     21: SUBST_STAGE.pkglint=   post-configure
1.533     rillig     22: SUBST_FILES.pkglint+=  pkglint.go
1.467     rillig     23: SUBST_SED.pkglint+=    -e s\|@VERSION@\|${PKGNAME:S/pkglint-//}\|g
1.545     rillig     24: SUBST_SED.pkglint+=    -e s\|@BMAKE@\|${MAKE:T:Q}\|g
1.180     jschauma   25:
1.554     rillig     26: TOOLS_CREATE+=         goyacc
                     27: TOOLS_PATH.goyacc=     ${WRKDIR}/bin/goyacc
                     28: USE_TOOLS+=            goyacc
                     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"
        !            32:
        !            33: .include "../../mk/bsd.prefs.mk"
        !            34:
1.186     jschauma   35: do-extract:
1.508     tron       36:        ${RUN} ${MKDIR} ${WRKDIR}/pkglint
1.506     rillig     37:        ${RUN} cd ${FILESDIR} && ${PAX} -rw . ${WRKDIR}/pkglint
1.555   ! rillig     38: .if !${PKGSRC_RUN_TEST:M[yY][eE][sS]}
        !            39:        ${RUN} rm -rf ${WRKDIR}/pkglint/intqa
        !            40: .endif
1.554     rillig     41:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} get golang.org/x/tools/cmd/goyacc
                     42:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install golang.org/x/tools/cmd/goyacc
                     43:
                     44: pre-build:
                     45:        ${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} generate ${GO_BUILD_PATTERN}
1.488     rillig     46:
1.506     rillig     47: pre-install:
1.554     rillig     48:        ${RUN} rm -f ${WRKDIR}/bin/goyacc
1.506     rillig     49:        ${RUN} rm -rf ${WRKDIR}/pkg
                     50:
1.512     rillig     51: post-install: do-install-man
1.467     rillig     52:
1.478     rillig     53: do-install-man: .PHONY
1.506     rillig     54: .if ${MANINSTALL:Mcatinstall}
                     55: .  if ${CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss]}
1.434     jperkin    56:        ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
                     57: .  else
1.364     rillig     58:        ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
1.434     jperkin    59: .  endif
1.364     rillig     60: .endif
1.506     rillig     61: .if ${MANINSTALL:Mmaninstall}
1.354     joerg      62:        ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
1.238     rillig     63: .endif
1.356     rillig     64:
1.478     rillig     65: .if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
1.506     rillig     66: .  include "../../devel/go-check/buildlink3.mk"
1.478     rillig     67: .endif
1.1       tsarna     68: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>