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
This commit is contained in:
geos_one 2010-12-01 21:17:46 +00:00
parent 1feb4a52d1
commit a02d86c70e
4 changed files with 100 additions and 0 deletions

10
app-editors/xxe/ChangeLog Normal file
View File

@ -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 <mario.fetka@gmail.com> +xxe-4.7.0.ebuild,
+metadata.xml:
initial commit for #330171

4
app-editors/xxe/Manifest Normal file
View File

@ -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

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>mario.fetka@gmail.com</email>
</maintainer>
</pkgmetadata>

View File

@ -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;"
}