git: e13b0cfb463a - main - devel/cfr: Set LICENSE_FILE

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Fri, 25 Sep 2026 08:42:06 UTC
The branch main has been updated by 0mp:

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

commit e13b0cfb463a216ae1604765474d009549f368d0
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2026-09-23 17:30:56 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2026-09-25 08:42:03 +0000

    devel/cfr: Set LICENSE_FILE
    
    Also, run portfmt while here.
---
 devel/cfr/Makefile | 13 ++++++++++---
 devel/cfr/distinfo |  8 +++++---
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/devel/cfr/Makefile b/devel/cfr/Makefile
index c75a249919d3..1165f69c92f6 100644
--- a/devel/cfr/Makefile
+++ b/devel/cfr/Makefile
@@ -5,6 +5,9 @@ CATEGORIES=	devel java
 MASTER_SITES=	http://www.benf.org/other/cfr/ \
 		https://www.benf.org/other/cfr/ \
 		https://github.com/leibnitz27/cfr/releases/download/${DISTVERSION}/
+DISTFILES=	${_JARDISTFILE} \
+		license.html
+DIST_SUBDIR=	${PORTNAME}
 EXTRACT_SUFX=	.jar
 EXTRACT_ONLY=
 
@@ -12,8 +15,8 @@ MAINTAINER=	0mp@FreeBSD.org
 COMMENT=	Class File Reader (CFR) Java decompiler
 WWW=		https://www.benf.org/other/cfr/
 
-# http://www.benf.org/other/cfr/license.html
 LICENSE=	MIT
+LICENSE_FILE=	${WRKDIR}/license.html
 
 USES=		java
 
@@ -21,14 +24,18 @@ NO_ARCH=	yes
 NO_BUILD=	yes
 PLIST_FILES=	${JAVAJARDIR}/cfr.jar
 
+_JARDISTFILE=	${PORTNAME}-${DISTVERSIONFULL}${EXTRACT_SUFX}
 _JARFILE=	${PORTNAME}.jar
 
+post-extract:
+	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/license.html ${WRKDIR}
+
 do-install:
-	${INSTALL_DATA} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
+	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${_JARDISTFILE} \
 		${STAGEDIR}${JAVAJARDIR}/${_JARFILE}
 
 do-test:
-	# Find out if the decompiler works.
+# Find out if the decompiler works.
 	${JAVA} -jar ${STAGEDIR}${JAVAJARDIR}/${_JARFILE} \
 		${STAGEDIR}${JAVAJARDIR}/${_JARFILE} >/dev/null
 
diff --git a/devel/cfr/distinfo b/devel/cfr/distinfo
index f04423b98fb3..0eeb950ad682 100644
--- a/devel/cfr/distinfo
+++ b/devel/cfr/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1642591432
-SHA256 (cfr-0.152.jar) = f686e8f3ded377d7bc87d216a90e9e9512df4156e75b06c655a16648ae8765b2
-SIZE (cfr-0.152.jar) = 2162315
+TIMESTAMP = 1790184602
+SHA256 (cfr/cfr-0.152.jar) = f686e8f3ded377d7bc87d216a90e9e9512df4156e75b06c655a16648ae8765b2
+SIZE (cfr/cfr-0.152.jar) = 2162315
+SHA256 (cfr/license.html) = 1b5b62cf82f4088f872709171224f5c73cfda93b6d25104cd5ca872101dfa2fe
+SIZE (cfr/license.html) = 2567