app-doc/dita-ot-bin: add 4.3.2

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu 2025-06-06 10:46:24 +03:00
parent 593a819198
commit 35e3749bbd
No known key found for this signature in database
GPG Key ID: 0CE5A97D9310DAB0
2 changed files with 46 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST dita-ot-4.3.1.zip 55912642 BLAKE2B e5096864a2246c6d2c88c9db687e0b551d30d95cf2b3fff460c00c476c133a351d56228bd1d22e0528968839014fefe54bbbff557f5324beea3ee136b864f83a SHA512 c8b06418967f66f0d5eade2d078fc419f49d40f466b5a1aba446525196be17955c24697f6fbe6d4695a3e2acb81850037a0298709febc4e0dd828ca92dac4561
DIST dita-ot-4.3.2.zip 53944932 BLAKE2B 653f228c0b45749351effc5a0d80853cbf8fec3a00cbf7f280b4f141ddb31203f87b624a8c49c3d188ac82cb7d006a2dad8462d77ec40917288a3667634d538f SHA512 87c637275f83108762787ff9ce9ec29cce1679d0c755105a94f039f3640b3fba389add8ae4dd690907c9309511afa4464b29294c5dafb07ac2bd470d17d71046

View File

@ -0,0 +1,45 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2
MY_PN=${PN%*-bin}
MY_P=${MY_PN}-${PV}
DESCRIPTION="Darwin Information Typing Architecture - Open Toolkit publishing engine"
HOMEPAGE="https://www.dita-ot.org/ https://github.com/dita-ot/dita-ot"
SRC_URI="https://github.com/dita-ot/dita-ot/releases/download/${PV}/${MY_P}.zip"
S="${WORKDIR}"/${MY_P}
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=">=virtual/jdk-17:*"
RDEPEND=">=virtual/jre-17:*"
BDEPEND="app-arch/unzip"
PATCHES=(
"${FILESDIR}"/${PN}-4.3-set-java-home.patch
)
src_prepare() {
default
java-pkg-2_src_prepare
}
src_install() {
local installpath=/opt/${MY_P}
local installbinpath="${installpath}"/bin
insinto "${installpath}"
doins -r config lib plugins resources
java-pkg_regjar "${installpath}"/lib/dost.jar
exeinto "${installbinpath}"
doexe bin/dita
dosym -r "${installbinpath}"/dita /usr/bin/dita
einstalldocs
}