diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2024-09-01 13:18:30 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-09-03 10:26:53 +0200 |
commit | be950d3539e3871ea44e8a314d793abe7a672ac6 (patch) | |
tree | aeb260c4b8ab7a3a80876482d01cc3c374c205ee /media-gfx | |
parent | dev-java/poi: add 5.2.5 (diff) | |
download | gentoo-be950d3539e3871ea44e8a314d793abe7a672ac6.tar.gz gentoo-be950d3539e3871ea44e8a314d793abe7a672ac6.tar.bz2 gentoo-be950d3539e3871ea44e8a314d793abe7a672ac6.zip |
media-gfx/plantuml: add 1.2024.6
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/plantuml/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/plantuml/plantuml-1.2024.6.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/media-gfx/plantuml/Manifest b/media-gfx/plantuml/Manifest index 2c06054fed4d..c9fb888709a3 100644 --- a/media-gfx/plantuml/Manifest +++ b/media-gfx/plantuml/Manifest @@ -1 +1,2 @@ DIST plantuml-1.2024.5.tar.gz 12119170 BLAKE2B 97fd8f48aa04d9d8b089547871abd954b8b1c189d32b844f1de4ac33678dabe2968a3307fb573f571adf541dbbbfd5eb5c21839b14f3cb9ed2e86ac7b447bb87 SHA512 20b9502a3d6ac9ceccb667943f8ea70990102f778175001852b1fcd2b9b7fa570f5b7a7fb237b6831c0411667c3e986f2b0ea09ce2602b5c1ca98694b37c20a5 +DIST plantuml-1.2024.6.tar.gz 12591935 BLAKE2B c9b56908538e3e98d2c8d4e56c064ffa378621d14232f8d769f1b80b610fcf22c50d94974a8c21791e2780231708e594a02466f0cba5e78a60b4b4110d0f89f0 SHA512 86633b93abdbc571ff335e61992f0db8ba20ed0e0d0dc5e9c564a8b312594051f47d453fb8b9787d3d3192ccc35f8ea99e5ddab8cc1d16458203c9309087ddbd diff --git a/media-gfx/plantuml/plantuml-1.2024.6.ebuild b/media-gfx/plantuml/plantuml-1.2024.6.ebuild new file mode 100644 index 000000000000..eafb36810423 --- /dev/null +++ b/media-gfx/plantuml/plantuml-1.2024.6.ebuild @@ -0,0 +1,50 @@ +# 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" +IUSE="ant-task" + +DEPEND=">=virtual/jdk-1.8:* + ant-task? ( >=dev-java/ant-1.10.14-r3:0 )" +RDEPEND=">=virtual/jre-1.8:* + media-gfx/graphviz + ant-task? ( >=dev-java/ant-1.10.14-r3:0 )" + +JAVA_AUTOMATIC_MODULE_NAME="net.sourceforge.plantuml" +JAVA_MAIN_CLASS="net.sourceforge.plantuml.Run" +JAVA_RESOURCE_DIRS="res" +JAVA_SRC_DIR="src" + +src_prepare() { + java-pkg-2_src_prepare + if use ant-task; then + # src/net/sourceforge/plantuml/ant/readme.md + JAVA_GENTOO_CLASSPATH+="ant" + else + rm src/net/sourceforge/plantuml/ant/{CheckZip,PlantUml}Task.java || die + fi + + # 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 +} |