aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-05-16 15:13:42 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-05-16 15:23:55 +0000
commitf3d9a7875f5638ac86b576ce53684ca85c1290d0 (patch)
treef62fc9639abe5e509b490f239a7e248b01d6c3f7
parent7f885914836cac2071930d56ceb4cce81595cd55 (diff)
downloadports-f3d9a7875f5638ac86b576ce53684ca85c1290d0.tar.gz
ports-f3d9a7875f5638ac86b576ce53684ca85c1290d0.zip
misc/cloc: Add LICENSE_FILE
- Update MASTER_SITES: use upstream release tarball - Add NO_ARCH - Update pkg-descr - Take maintainership
-rw-r--r--misc/cloc/Makefile22
-rw-r--r--misc/cloc/distinfo6
-rw-r--r--misc/cloc/pkg-descr8
3 files changed, 18 insertions, 18 deletions
diff --git a/misc/cloc/Makefile b/misc/cloc/Makefile
index 6eadcf493bfa..2ffb6255d937 100644
--- a/misc/cloc/Makefile
+++ b/misc/cloc/Makefile
@@ -2,26 +2,28 @@
PORTNAME= cloc
PORTVERSION= 1.90
-DISTVERSIONPREFIX= v
CATEGORIES= misc
+MASTER_SITES= https://github.com/AlDanial/cloc/releases/download/v${PORTVERSION}/
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Counts lines of code
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Count lines of code
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= p5-Algorithm-Diff>=0:devel/p5-Algorithm-Diff
-USES= perl5
-
-USE_GITHUB= yes
-GH_ACCOUNT= AlDanial
-
+USES= perl5 shebangfix
USE_PERL5= run
-PLIST_FILES= bin/${PORTNAME}
+
+NO_ARCH= yes
NO_BUILD= yes
+PLIST_FILES= bin/cloc
+
+SHEBANG_FILES= cloc
+
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_SCRIPT} ${WRKSRC}/cloc ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>
diff --git a/misc/cloc/distinfo b/misc/cloc/distinfo
index d87a7979fb84..42931680505f 100644
--- a/misc/cloc/distinfo
+++ b/misc/cloc/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1620852888
-SHA256 (AlDanial-cloc-v1.90_GH0.tar.gz) = 60b429dd2aa5cd65707b359dcbcbeb710c8e4db880886528ced0962c67e52548
-SIZE (AlDanial-cloc-v1.90_GH0.tar.gz) = 596758
+TIMESTAMP = 1620928569
+SHA256 (cloc-1.90.tar.gz) = 152502a61d4bae4a406a05a01bf52489b310ec03dbd8c645d0bb051fa4717ddb
+SIZE (cloc-1.90.tar.gz) = 614306
diff --git a/misc/cloc/pkg-descr b/misc/cloc/pkg-descr
index 98393d1181a4..c566a4340297 100644
--- a/misc/cloc/pkg-descr
+++ b/misc/cloc/pkg-descr
@@ -1,7 +1,5 @@
-cloc counts blank lines, comment lines, and physical lines of source
-code in many programming languages.
-
-cloc contains code from David Wheeler's SLOCCount and Damian Conway and
-Abigail's Perl module Regexp::Common.
+cloc counts blank lines, comment lines, and physical lines of source code in
+many programming languages. Given two versions of a code base, cloc can compute
+differences in blank, comment, and source lines.
WWW: https://github.com/AlDanial/cloc