File:  [cvs.NetBSD.org] / pkgsrc / pkgtools / pkglint / Makefile
Revision 1.759: download - view: text, annotated - select for diffs
Sun Oct 15 12:04:28 2023 UTC (13 months, 3 weeks ago) by bsiegert
Branches: MAIN
CVS tags: HEAD
Revbump all Go packages after go120 security update

# $NetBSD: Makefile,v 1.759 2023/10/15 12:04:28 bsiegert Exp $

DISTNAME=	pkglint-23.2.4
PKGREVISION=	1
CATEGORIES=	pkgtools
MASTER_SITES=	${MASTER_SITE_GITHUB:=rillig/}
GITHUB_TAG=	refs/tags/v${PKGVERSION_NOREV}

MAINTAINER=	rillig@NetBSD.org
HOMEPAGE=	https://github.com/rillig/pkglint
COMMENT=	Verifier for NetBSD packages
LICENSE=	2-clause-bsd
CONFLICTS+=	pkglint4-[0-9]*

USE_TOOLS+=		pax
CHECK_RELRO_SKIP+=	bin/pkglint

WRKSRC=		${WRKDIR}/${DISTNAME}/v${PKGVERSION_NOREV:C,\..*,,}

SUBST_CLASSES+=		pkglint
SUBST_STAGE.pkglint=	post-configure
SUBST_FILES.pkglint+=	pkglint.go
SUBST_SED.pkglint+=	-e s\|@VERSION@\|${PKGVERSION}\|g
SUBST_SED.pkglint+=	-e s\|@BMAKE@\|${MAKE:T:Q}\|g

do-test:
	cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} test ${GO_BUILD_PATTERN}

post-install: do-install-man

.include "go-modules.mk"

# This needs to come before bsd.prefs.mk so that SSP_SUPPORTED is properly set.
.include "../../lang/go/go-module.mk"

.include "../../mk/bsd.prefs.mk"

PLIST_VARS+=		maninstall
.if ${MANINSTALL:Mmaninstall}
INSTALLATION_DIRS+=	man/man1
PLIST.maninstall=	yes
.endif

do-install-man: .PHONY
	${PLIST.maninstall:D:U\:} ${INSTALL_MAN} ${WRKSRC}/../pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/

.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>