devel/argouml: Update 0.34 => 0.35.1, limit used java version, improve port

Commit log:
https://github.com/argouml-tigris-org/argouml/compare/VERSION_0_34...VERSION_0_35_1

Improve port:
 - PORTVERSION => DISTVERSION;
 - limit used java version - doesn't work with 19+;
 - add possibility to override the Java version in /etc/make.conf with
   ARGOUML_JAVA_VERSION vairable;
 - add NO_ARCH;
 - pet portclippy.

PR:	285479
This commit is contained in:
Vladimir Druzenko 2025-03-18 00:16:18 +03:00
parent 2678884a90
commit 20d6be3679
5 changed files with 53 additions and 26 deletions

View file

@ -1,12 +1,11 @@
PORTNAME= argouml
PORTVERSION= 0.34
PORTREVISION= 2
DISTVERSION= 0.35.1
CATEGORIES= devel java
MASTER_SITES= https://github.com/argouml-tigris-org/argouml/releases/download/VERSION_0_34/
DISTNAME= ArgoUML-${PORTVERSION}
MASTER_SITES= https://github.com/argouml-tigris-org/argouml/releases/download/VERSION_${DISTVERSION:C/\./_/g}/
DISTNAME= ArgoUML-${DISTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
manual-${PORTVERSION}.pdf \
quickguide-${PORTVERSION}.pdf
manual-${DISTVERSION}.pdf \
quickguide-${DISTVERSION}.pdf
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
@ -17,17 +16,7 @@ WWW= https://github.com/argouml-tigris-org/argouml/wiki
LICENSE= EPL
USES= java
PORTSCOUT= limitw:1,even \
site:${MASTER_SITES:S/argouml-${PORTVERSION}\///}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
SUB_FILES= argouml.sh
PORTDOCS= manual-${PORTVERSION}.pdf quickguide-${PORTVERSION}.pdf
OPTIONS_DEFINE= DOCS
JAVA_VERSION= ${ARGOUML_JAVA_VERSION:U8 11 17 18}
DESKTOP_ENTRIES= "ArgoUML" \
"Create advanced UML diagrams" \
@ -35,6 +24,18 @@ DESKTOP_ENTRIES= "ArgoUML" \
"argouml" \
"Development;Building;Java;" \
false
NO_ARCH= yes
NO_BUILD= yes
PORTSCOUT= limitw:1,even \
site:${MASTER_SITES:S/argouml-${DISTVERSION}\///}
SUB_FILES= argouml.sh
SUB_LIST= JAVA_HOME=${JAVA_HOME}
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
PORTDOCS= manual-${DISTVERSION}.pdf quickguide-${DISTVERSION}.pdf
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/argouml.sh ${STAGEDIR}${PREFIX}/bin/argouml
@ -49,7 +50,7 @@ do-install:
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/manual-${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/quickguide-${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/manual-${DISTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/quickguide-${DISTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -1,6 +1,7 @@
SHA256 (argouml/ArgoUML-0.34.tar.gz) = 818fdbbbaf48f70f3a7386cd4dab5313cdba3293b3d8df49a3045911a5372dc3
SIZE (argouml/ArgoUML-0.34.tar.gz) = 16504818
SHA256 (argouml/manual-0.34.pdf) = 13c91e8b7802fe3a4d4462b9608f06755981549865a710dccc2372021b270c49
SIZE (argouml/manual-0.34.pdf) = 3405949
SHA256 (argouml/quickguide-0.34.pdf) = 6972651140234aad7c1c93948f1d788b1c0a64dc09d8a5342d712904d181e458
SIZE (argouml/quickguide-0.34.pdf) = 58334
TIMESTAMP = 1742236472
SHA256 (argouml/ArgoUML-0.35.1.tar.gz) = 5e5230eb1bd29c545ae6fd56c0bdfbee86b1e6c2c538d6df22728fa3e3ab1639
SIZE (argouml/ArgoUML-0.35.1.tar.gz) = 19048499
SHA256 (argouml/manual-0.35.1.pdf) = 3c1634556a3adcb0eaf427184472b72197b9f451c3d91599a2dfbdcc2fcd5b56
SIZE (argouml/manual-0.35.1.pdf) = 3405954
SHA256 (argouml/quickguide-0.35.1.pdf) = abbc989ebb380cf8285d40e7211319bdac66edeface01bb09af48bf4672b16dd
SIZE (argouml/quickguide-0.35.1.pdf) = 58337

View file

@ -1,3 +1,7 @@
#!/bin/sh
if [ -z "${JAVA_HOME}" ]; then
export JAVA_HOME="%%JAVA_HOME%%"
fi
"%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/argouml.jar" "$@"

11
devel/argouml/pkg-message Normal file
View file

@ -0,0 +1,11 @@
[
{ type: install
message: <<EOM
The Java versions supported by this port are in range from 8 to 18. The default
is JAVA_DEFAULT=8 now. Add DEFAULT_VERSIONS+=java=N to /etc/make.conf if you
want to use Java "N", but all Java ports will also be affected. Or add
ARGOUML_JAVA_VERSION=N to /etc/make.conf if you want to override the Java
version for this port only.
EOM
}
]

View file

@ -38,7 +38,7 @@ bin/argouml
%%DATADIR%%/ext/argouml-transformer.jar
%%DATADIR%%/ext/argouml-umlpropertypanels.jar
%%DATADIR%%/ext/domainmapping.xml
%%DATADIR%%/gef-0.13.8.jar
%%DATADIR%%/gef-0.13.9M1.jar
%%DATADIR%%/icon/ArgoIcon128x128.png
%%DATADIR%%/icon/ArgoIcon256x256.png
%%DATADIR%%/icon/ArgoIcon512x512.png
@ -67,5 +67,15 @@ bin/argouml
%%DATADIR%%/org.eclipse.uml2.uml.edit_3.1.0.v201005031530.jar
%%DATADIR%%/org.eclipse.uml2.uml.resources_3.1.1.v201008191505.jar
%%DATADIR%%/org.eclipse.uml2.uml_3.1.1.v201008191505.jar
%%DATADIR%%/saxon9-dom.jar
%%DATADIR%%/saxon9-dom4j.jar
%%DATADIR%%/saxon9-jdom.jar
%%DATADIR%%/saxon9-s9api.jar
%%DATADIR%%/saxon9-sql.jar
%%DATADIR%%/saxon9-unpack.jar
%%DATADIR%%/saxon9-xom.jar
%%DATADIR%%/saxon9-xpath.jar
%%DATADIR%%/saxon9-xqj.jar
%%DATADIR%%/saxon9.jar
%%DATADIR%%/swidgets-0.1.4.jar
%%DATADIR%%/toolbar-1.4.1-20071227.jar