| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.2026.1 | 8 | amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-pkg-simple desktop xdg
DESCRIPTION="Draw UML diagrams using a simple and human readable text description"
HOMEPAGE="https://plantuml.com"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
IUSE="ant-task"
# Compilation fails with openjdk-26. https://bugs.openjdk.org/browse/JDK-8359053
# src/main/java/jcckit/util/AppletBasedConfigData.java:21: error: package java.applet does not exist
# import java.applet.Applet;
DEPEND="
<virtual/jdk-26:*
ant-task? ( >=dev-java/ant-1.10.15:0 )
"
RDEPEND="
>=virtual/jre-1.8:*
media-gfx/graphviz
ant-task? ( >=dev-java/ant-1.10.15:0 )
"
JAVA_AUTOMATIC_MODULE_NAME="net.sourceforge.plantuml"
JAVA_MAIN_CLASS="net.sourceforge.plantuml.Run"
JAVA_RESOURCE_DIRS="src/main/resources"
JAVA_SRC_DIR="src/main/java"
src_prepare() {
java-pkg-2_src_prepare
# using media-gfx/graphviz
rm -r src/main/resources/net/sourceforge/plantuml/windowsdot/graphviz.dat || die
if use ant-task; then
# src/main/java/net/sourceforge/plantuml/ant/readme.md
JAVA_GENTOO_CLASSPATH+="ant"
else
rm src/main/java/net/sourceforge/plantuml/ant/{CheckZip,PlantUml}Task.java || die
fi
}
src_install() {
java-pkg-simple_src_install
make_desktop_entry plantuml
}
<virtual/jdk-26:* ant-task? ( >=dev-java/ant-1.10.15:0 )
>=virtual/jre-1.8:* media-gfx/graphviz ant-task? ( >=dev-java/ant-1.10.15:0 )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | plantuml-1.2026.1.tar.gz | 17526671 bytes | https://github.com/plantuml/plantuml/archive/v1.2026.1.tar.gz |