summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2024-09-15 14:13:41 +0300
committerViorel Munteanu <ceamac@gentoo.org>2024-09-15 16:01:51 +0300
commit142093975b74dd277867611586b5c8981a785ba2 (patch)
treea4cda84378b3a144154ca500fb985aabc099133e /app-doc
parentapp-emulation/virtualbox-modules: add 7.1.0 (diff)
downloadgentoo-142093975b74dd277867611586b5c8981a785ba2.tar.gz
gentoo-142093975b74dd277867611586b5c8981a785ba2.tar.bz2
gentoo-142093975b74dd277867611586b5c8981a785ba2.zip
app-doc/dita-ot-bin: new package, add 4.2.3
Build time dependency of app-emulation/virtualbox-7.1* used for building the docs. Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/dita-ot-bin/Manifest1
-rw-r--r--app-doc/dita-ot-bin/dita-ot-bin-4.2.3.ebuild36
-rw-r--r--app-doc/dita-ot-bin/files/dita-ot-bin-4.2.3-set-java-home.patch14
-rw-r--r--app-doc/dita-ot-bin/metadata.xml11
4 files changed, 62 insertions, 0 deletions
diff --git a/app-doc/dita-ot-bin/Manifest b/app-doc/dita-ot-bin/Manifest
new file mode 100644
index 000000000000..7716aa74e3e0
--- /dev/null
+++ b/app-doc/dita-ot-bin/Manifest
@@ -0,0 +1 @@
+DIST dita-ot-4.2.3.zip 55110433 BLAKE2B 53c4e2e7896c1b496f95b4d5dafc059c63b7b73fb63c7faefabc87500aab862c80707bc64effa52c447bbdb73e007aadbacec7ada98dade9af0e0c0300b75ba7 SHA512 a1e2684444f04d14991d39cfea6b86f49a4ae2802d5b9ffa600c2b18c6ac4efddfb68db8484d6edda5812301f281828b5d22ef3057aa343cd1ffd6d3beeaf48b
diff --git a/app-doc/dita-ot-bin/dita-ot-bin-4.2.3.ebuild b/app-doc/dita-ot-bin/dita-ot-bin-4.2.3.ebuild
new file mode 100644
index 000000000000..9282e60ecec8
--- /dev/null
+++ b/app-doc/dita-ot-bin/dita-ot-bin-4.2.3.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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.2.3-set-java-home.patch
+)
+
+src_install() {
+ local installpath=/opt/${MY_P}
+ local installbinpath="${installpath}"/bin
+ insinto "${installpath}"
+ doins -r config lib plugins resources
+
+ exeinto "${installbinpath}"
+ doexe bin/dita
+ dosym -r "${installbinpath}"/dita /usr/bin/dita
+
+ einstalldocs
+}
diff --git a/app-doc/dita-ot-bin/files/dita-ot-bin-4.2.3-set-java-home.patch b/app-doc/dita-ot-bin/files/dita-ot-bin-4.2.3-set-java-home.patch
new file mode 100644
index 000000000000..a99cec999bf7
--- /dev/null
+++ b/app-doc/dita-ot-bin/files/dita-ot-bin-4.2.3-set-java-home.patch
@@ -0,0 +1,14 @@
+dita-ot requires java 17 or higher.
+Set JAVA_HOME accordingly.
+
+--- a/bin/dita
++++ b/bin/dita
+@@ -20,6 +20,8 @@
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+
++JAVA_HOME=$(java-config-2 --select-vm $(depend-java-query --get-vm '>=virtual/jre:17') -g JAVA_HOME)
++
+ # Extract launch and ant arguments, (see details below).
+ ant_exec_args=
+ for arg in "$@" ; do
diff --git a/app-doc/dita-ot-bin/metadata.xml b/app-doc/dita-ot-bin/metadata.xml
new file mode 100644
index 000000000000..305ba381cad5
--- /dev/null
+++ b/app-doc/dita-ot-bin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Viorel Munteanu</name>
+ <email>ceamac@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">dita-ot/dita-ot</remote-id>
+ </upstream>
+</pkgmetadata>