Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2023 12:58:48 GMT
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f79da1c2a091 - main - devel/scc: Add new port
Message-ID:  <202307291258.36TCwmmF029930@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by adamw:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f79da1c2a091dee58eef955f166cfc2f830e0808

commit f79da1c2a091dee58eef955f166cfc2f830e0808
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2023-07-29 12:57:27 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2023-07-29 12:58:43 +0000

    devel/scc: Add new port
    
    scc is a LOC counter (similar to tokei), written in go. It's very
    fast, and very accurate.
    
    Its unique feature is that it gives you complexity and COCOMO estimates.
---
 devel/Makefile      |  1 +
 devel/scc/Makefile  | 20 ++++++++++++++++++++
 devel/scc/distinfo  |  5 +++++
 devel/scc/pkg-descr |  2 ++
 4 files changed, 28 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 8e46ed3ecd06..09af9523dac9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7512,6 +7512,7 @@
     SUBDIR += sbt
     SUBDIR += scalatest
     SUBDIR += scandoc
+    SUBDIR += scc
     SUBDIR += sccache
     SUBDIR += sccs
     SUBDIR += schilybase
diff --git a/devel/scc/Makefile b/devel/scc/Makefile
new file mode 100644
index 000000000000..b144bb8a929b
--- /dev/null
+++ b/devel/scc/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	scc
+DISTVERSIONPREFIX=	v
+DISTVERSION=	3.1.0
+CATEGORIES=	devel
+
+MAINTAINER=	adamw@FreeBSD.org
+COMMENT=	LOC counter with COCOMO and complexity estimation
+WWW=		https://github.com/boyter/scc
+
+LICENSE=		MIT UNLICENSE
+LICENSE_COMB=		dual
+LICENSE_FILE_MIT=	${WRKSRC}/LICENSE
+LICENSE_FILE_UNLICENSE=	${WRKSRC}/UNLICENSE
+
+USES=		go:modules
+GO_MODULE=	github.com/boyter/scc/v3
+
+PLIST_FILES=	bin/scc
+
+.include <bsd.port.mk>
diff --git a/devel/scc/distinfo b/devel/scc/distinfo
new file mode 100644
index 000000000000..1eeb4704ce82
--- /dev/null
+++ b/devel/scc/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1690635025
+SHA256 (go/devel_scc/scc-v3.1.0/v3.1.0.mod) = 77e358dbb64ae40f992d5046a99e66211687461152a61d951f4f8d6c4a3d1528
+SIZE (go/devel_scc/scc-v3.1.0/v3.1.0.mod) = 491
+SHA256 (go/devel_scc/scc-v3.1.0/v3.1.0.zip) = ebd878a4ba63952564bf1338d711cc6691df1b7bbdaf6c988819993bcaf3607b
+SIZE (go/devel_scc/scc-v3.1.0/v3.1.0.zip) = 778448
diff --git a/devel/scc/pkg-descr b/devel/scc/pkg-descr
new file mode 100644
index 000000000000..e2c22e0243d0
--- /dev/null
+++ b/devel/scc/pkg-descr
@@ -0,0 +1,2 @@
+scc is a very fast and accurate code counter. In addition, it estimates
+code complexity and performs COCOMO (constructive code model) calculations.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307291258.36TCwmmF029930>