From a02d86c70e98b8ef7d8daf282ec42c5fc0d31cf8 Mon Sep 17 00:00:00 2001 From: geos_one Date: Wed, 1 Dec 2010 21:17:46 +0000 Subject: [PATCH] app-editors/xxe: initial commit for #330171 (Portage version: 2.2.0_alpha6/svn/Linux x86_64) git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2760 6952d904-891a-0410-993b-d76249ca496b --- app-editors/xxe/ChangeLog | 10 ++++ app-editors/xxe/Manifest | 4 ++ app-editors/xxe/metadata.xml | 8 ++++ app-editors/xxe/xxe-4.7.0.ebuild | 78 ++++++++++++++++++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 app-editors/xxe/ChangeLog create mode 100644 app-editors/xxe/Manifest create mode 100644 app-editors/xxe/metadata.xml create mode 100644 app-editors/xxe/xxe-4.7.0.ebuild diff --git a/app-editors/xxe/ChangeLog b/app-editors/xxe/ChangeLog new file mode 100644 index 00000000..ceb2165c --- /dev/null +++ b/app-editors/xxe/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-editors/xxe +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*xxe-4.7.0 (01 Dec 2010) + + 01 Dec 2010; Mario Fetka +xxe-4.7.0.ebuild, + +metadata.xml: + initial commit for #330171 + diff --git a/app-editors/xxe/Manifest b/app-editors/xxe/Manifest new file mode 100644 index 00000000..f9fb3624 --- /dev/null +++ b/app-editors/xxe/Manifest @@ -0,0 +1,4 @@ +DIST xxe-perso-4_7_0.tar.gz 23549166 RMD160 e5841184e9289360063ed127913256ae59783813 SHA1 a20596a6bfa1af02f807024bc17f9fea614f4fec SHA256 24c6446a1e4bbc6993cc6f0449fc658cf1b53971fa7f3c68cf1c4bff1b0e1d67 +EBUILD xxe-4.7.0.ebuild 2630 RMD160 96e462535d0035d35d913df49b66c334d25ddc14 SHA1 5d602a7e43e28dac4beb6ddeec116a0504c255a2 SHA256 6816427d71c044e9a5b5df011f3ff7ea9ae65637fa834f1492d062536db40e96 +MISC ChangeLog 259 RMD160 3356aed8e3b4900e94012cc586b0329492cc6f57 SHA1 a18bb60fc2285d7512b2ddd582297a653cad13b1 SHA256 48254fe2767203a99c5f8585d2b44e4c5a0b2208ddd993610708d2c51a344463 +MISC metadata.xml 226 RMD160 bebcbe7a5e3d2be83c25e006192f71ebf45abb14 SHA1 ec2b713fc2363b8c51e9c164d0802eeb59d9d296 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2 diff --git a/app-editors/xxe/metadata.xml b/app-editors/xxe/metadata.xml new file mode 100644 index 00000000..6589d3b0 --- /dev/null +++ b/app-editors/xxe/metadata.xml @@ -0,0 +1,8 @@ + + + +no-herd + + mario.fetka@gmail.com + + diff --git a/app-editors/xxe/xxe-4.7.0.ebuild b/app-editors/xxe/xxe-4.7.0.ebuild new file mode 100644 index 00000000..e48a6413 --- /dev/null +++ b/app-editors/xxe/xxe-4.7.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit java-pkg-2 versionator + +DESCRIPTION="XMLmind XML Editor allows to author large, complex, modular, XML documents" +HOMEPAGE="http://www.xmlmind.com/xmleditor/" + +MY_PV=$(replace_all_version_separators '_') #${PV/beta/b}) +MY_P="${PN}-perso-${MY_PV}" +S="${WORKDIR}/${MY_P}" +SRC_URI="http://www.xmlmind.net/xmleditor/_download/${MY_P}.tar.gz" +LICENSE="xxe-perso" +# license does not allow redistributing, and they seem to silently update +# distfiles... +RESTRICT="mirror" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=">=virtual/jre-1.5 + dev-java/xerces:2 + dev-java/javahelp + dev-java/saxon:6.5 + dev-java/saxon:9 + dev-java/xml-commons-resolver +" + +src_install () { + local dir="/opt/${PN}" + + # buggy binary crap also requires the demo dir ?? + insinto "${dir}" + doins -r addon demo || die + + # Xerces has been patched hope this gets upstream was version 2.9.1 + # relaxng is a heavely modified version of jing 20030619 + java-pkg_jarinto "${dir}"/lib + java-pkg_dojar bin/${PN}.jar bin/${PN}_help.jar bin/${PN}_tool.jar \ + bin/xsc.jar bin/relaxng.jar bin/xerces.jar + local dep="xerces-2,javahelp,saxon-6.5,saxon-9,xml-commons-resolver" + java-pkg_register-dependency ${dep} + + # put launchers into the xxe/bin dir as expected by the xxe.jar + into "${dir}" + java-pkg_dolauncher convertdoc \ + --main "com.xmlmind.xmleditapp.convert.StartConvertDoc" \ + --java_args "-Xss4m -Xmx512m" + java-pkg_dolauncher csscheck \ + --main "com.xmlmind.xmledit.stylesheet.StyleSheetLoader" \ + --java_args "-Dxml.catalog.files=\"${dir}/addon/config/catalog.xml\"" + java-pkg_dolauncher translatexxe \ + --main "com.xmlmind.xmledittool.translate.TranslateXXE" \ + --java_args "-Xss4m -Xmx512m" + java-pkg_dolauncher xmltool \ + --main "com.xmlmind.xml.xmltool.Main" \ + --java_args "-Dxml.catalog.files=\"${dir}/addon/config/catalog.xml\" -Xss4m -Xmx512m" + java-pkg_dolauncher ${PN} \ + --main "com.xmlmind.xmleditapp.start.Start" \ + --java_args "-Xss4m -Xmx512m" + + dodir /opt/bin || die + dosym ${dir}/bin/convertdoc /opt/bin/convertdoc || die + dosym ${dir}/bin/csscheck /opt/bin/csscheck || die + dosym ${dir}/bin/translatexxe /opt/bin/translatexxe || die + dosym ${dir}/bin/xmltool /opt/bin/xmltool || die + dosym ${dir}/bin/xxe /opt/bin/xxe || die + + dohtml -r doc/* || die + dodoc legal/ditac.* legal/expr.* legal/icons.* legal/relaxng.* legal/xerces.* legal/xsdregex.* legal/xxe-* || die + + doicon bin/icon/xxe.png || die + make_desktop_entry xxe "XMLmind XML Editor Personal Edition" xxe "Development;TextEditor;" +}