git: 876b8bb7bac8 - main - devel/coursier: Update to version 2.1.9

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sun, 16 Jun 2024 12:57:04 UTC
The branch main has been updated by fuz:

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

commit 876b8bb7bac8ccb5a028b8635decf8b14f789a2f
Author:     Jens Grassel <jens@wegtam.com>
AuthorDate: 2024-04-05 08:43:52 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-06-16 11:53:29 +0000

    devel/coursier: Update to version 2.1.9
    
     - submitter becomes maintainer
     - make script obey ${JAVA}
     - remove obsolete DOCS option
    
    Changelog: https://github.com/coursier/coursier/releases
    
    PR:             259233
    Approved by:    Chris <chris@chris-kipp.io> (maintainer timeout)
    Reviewed by:    diizzy
---
 devel/coursier/Makefile  | 23 ++++++++++++-----------
 devel/coursier/distinfo  |  6 +++---
 devel/coursier/pkg-descr |  6 ++++--
 3 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/devel/coursier/Makefile b/devel/coursier/Makefile
index 20e8944ede8f..252d4639549d 100644
--- a/devel/coursier/Makefile
+++ b/devel/coursier/Makefile
@@ -1,32 +1,33 @@
 PORTNAME=	coursier
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.1.0-M12
+DISTVERSION=	2.1.9
 CATEGORIES=	devel java
+MASTER_SITES=	https://github.com/coursier/coursier/releases/download/${DISTVERSIONFULL}/
+DISTNAME= ${PORTNAME}
+EXTRACT_SUFX=
+DIST_SUBDIR= ${PORTNAME}/${DISTVERSION}
 
-MAINTAINER=	jhyphenkeck@gmail.com
+MAINTAINER=	freebsd-ports@jan0sch.de
 COMMENT=	Pure Scala Artifact Fetching
 WWW=		https://get-coursier.io/
 
 LICENSE=	APACHE20
-LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USE_GITHUB=	yes
 USE_JAVA=	yes
+JAVA_VERSION=	8+
 
 NO_ARCH=	yes
 NO_BUILD=	yes
 
 PLIST_FILES=	bin/coursier
 
-OPTIONS_DEFINE=	DOCS
+do-extract:
+	@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKDIR}
 
-PORTDOCS=	README.md
+post-patch:
+	${REINPLACE_CMD} -e 's,JAVA_CMD=java,JAVA_CMD=${JAVA},' ${WRKDIR}/${DISTNAME}
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/coursier ${STAGEDIR}${PREFIX}/bin
-
-do-install-DOCS-on:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
 .include <bsd.port.mk>
diff --git a/devel/coursier/distinfo b/devel/coursier/distinfo
index 19c44fe609b8..5dd02872b400 100644
--- a/devel/coursier/distinfo
+++ b/devel/coursier/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1551688034
-SHA256 (coursier-coursier-v1.1.0-M12_GH0.tar.gz) = ab6edfec3e312b7aedf3a0ca0888f7b0201d11aa8e2b63f628852d68542460db
-SIZE (coursier-coursier-v1.1.0-M12_GH0.tar.gz) = 2653166
+TIMESTAMP = 1712306111
+SHA256 (coursier-2.1.9/coursier) = 663d270c2a5b4fb7e819d524c4f1bf15e963663d5a964fe0bc4d26fd3e169571
+SIZE (coursier-2.1.9/coursier) = 161949
diff --git a/devel/coursier/pkg-descr b/devel/coursier/pkg-descr
index e90cea2bfab7..5b1dd4e991ef 100644
--- a/devel/coursier/pkg-descr
+++ b/devel/coursier/pkg-descr
@@ -1,2 +1,4 @@
-Coursier can fetch, launch, and create tiny bootstrap launchers
-from apps distributed via Maven / Ivy repositories.
+Coursier is a command-line tool that can be used for various things surrounding
+dependencies and artifacts such as creating tiny bootstrap launchers for
+applications distributed via Maven / Ivy repositories, resolving artifact
+trees, or completing available version of desired artifacts.