mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
c367a25d97
Approved by: yuri (maintainer)
35 lines
810 B
Makefile
35 lines
810 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= loccount
|
|
DISTVERSION= 2.10
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Count source lines of code in a project
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= a2x:textproc/asciidoc
|
|
|
|
USES= gmake go python:3.5+,build
|
|
USE_GITLAB= yes
|
|
GL_ACCOUNT= esr
|
|
GL_COMMIT= 04df1333363ba1b579e07344e8420080cf64637d
|
|
|
|
GO_PKGNAME= gitlab.com/${GL_ACCOUNT}/${PORTNAME}
|
|
|
|
BINARY_ALIAS= python3=${PYTHON_CMD}
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
man/man1/${PORTNAME}.1.gz
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GMAKE} loccount loccount.1
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${GL_COMMIT}-${GL_COMMIT} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|