diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2024-04-21 15:00:06 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-04-25 13:53:08 +0200 |
commit | c72eb908b57d4a89b01adbc68863ad08a3302e44 (patch) | |
tree | 107a7318c2cc24abde4035326d227f77e47e4672 /media-gfx/plantuml | |
parent | www-client/chromium: Stabilize 124.0.6367.78 arm64, #930648 (diff) | |
download | gentoo-c72eb908b57d4a89b01adbc68863ad08a3302e44.tar.gz gentoo-c72eb908b57d4a89b01adbc68863ad08a3302e44.tar.bz2 gentoo-c72eb908b57d4a89b01adbc68863ad08a3302e44.zip |
media-gfx/plantuml: switch to java-pkg-simple
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/36342
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-gfx/plantuml')
-rw-r--r-- | media-gfx/plantuml/plantuml-1.2024.4-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media-gfx/plantuml/plantuml-1.2024.4-r1.ebuild b/media-gfx/plantuml/plantuml-1.2024.4-r1.ebuild new file mode 100644 index 000000000000..303ce0fb9f18 --- /dev/null +++ b/media-gfx/plantuml/plantuml-1.2024.4-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 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 ~x86" + +DEPEND=">=virtual/jdk-1.8:* + >=dev-java/ant-1.10.14-r1:0" +RDEPEND=">=virtual/jre-1.8:* + media-gfx/graphviz" + +JAVA_AUTOMATIC_MODULE_NAME="net.sourceforge.plantuml" +JAVA_CLASSPATH_EXTRA="ant" +JAVA_MAIN_CLASS="net.sourceforge.plantuml.Run" +JAVA_RESOURCE_DIRS="res" +JAVA_SRC_DIR="src" + +src_prepare() { + java-pkg-2_src_prepare + + # java-pkg-simple wants resources in a separate directory + cp -r src res || die + cp -r skin stdlib svg themes res || die + find res -type f \( -name '*.java' -o -iname 'readme.md' \ + -o -name '*.ttf' -o -name '*.html' -o -name 'data.txt' \ + -o -name '.editorconfig' \) -exec rm -rf {} + || die +} + +src_install() { + java-pkg-simple_src_install + make_desktop_entry plantuml PlantUML +} |