diff options
-rw-r--r-- | app-text/writer2latex/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/writer2latex/Manifest | 4 | ||||
-rw-r--r-- | app-text/writer2latex/metadata.xml | 5 | ||||
-rw-r--r-- | app-text/writer2latex/writer2latex-0.5_beta3.ebuild | 65 |
4 files changed, 82 insertions, 0 deletions
diff --git a/app-text/writer2latex/ChangeLog b/app-text/writer2latex/ChangeLog new file mode 100644 index 000000000..3df308152 --- /dev/null +++ b/app-text/writer2latex/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-text/writer2latex +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 02 Aug 2007; Pavel Sanda (ps) <ps at twin.jikos.cz> + +writer2latex-0.5_beta3.ebuild, +metadata.xml: + New Ebuild for bug 181283 thanks to D. Kulyabov + diff --git a/app-text/writer2latex/Manifest b/app-text/writer2latex/Manifest new file mode 100644 index 000000000..68a83619e --- /dev/null +++ b/app-text/writer2latex/Manifest @@ -0,0 +1,4 @@ +DIST writer2latex05beta3.zip 1908071 RMD160 e76f3e42fc81e98f9f016c4d08790f59a4510188 SHA1 540a544d56ad573c17978b85ab9820585554f550 SHA256 8463f127633d0c6fad170decee8bf864e639ec64a0b5920be5a610713b0d9afb +EBUILD writer2latex-0.5_beta3.ebuild 1395 RMD160 e3a28ee8c2652c2e7d8bea75dcce6aa43a75afde SHA1 8d58d81bc113692543327164a92a7a5e32b7eb56 SHA256 420add4bca05a0542133c756305b550f38c0fe1e59e5deaffc2a15e54b9157db +MISC ChangeLog 276 RMD160 b63a44e6fc05aae2c8ef9db4b98ce8946e32892d SHA1 516a2a18ab523fcd86489a73c5d5f2779d7f0c5a SHA256 cbb7879255b83b8e85c21b825962aa9ab7f1a05606e68ee63c992b1f6bf9c308 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/app-text/writer2latex/metadata.xml b/app-text/writer2latex/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/app-text/writer2latex/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> diff --git a/app-text/writer2latex/writer2latex-0.5_beta3.ebuild b/app-text/writer2latex/writer2latex-0.5_beta3.ebuild new file mode 100644 index 000000000..6ee5b0652 --- /dev/null +++ b/app-text/writer2latex/writer2latex-0.5_beta3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils latex-package java-pkg-2 java-ant-2 +MY_PV=${PV//./} +MY_PV=${MY_PV/_/} +MY_P=${PN}${MY_PV} + +S=${WORKDIR}/${PN}05 + +DESCRIPTION="Writer2Latex (w2l) - converter from OpenDocument .odt format" +HOMEPAGE="http://www.hj-gym.dk/~hj/writer2latex" +SRC_URI="http://www.hj-gym.dk/~hj/${PN}/${MY_P}.zip + http://fc.hj-gym.dk/~hj/${MY_P}.zip" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +IUSE="doc examples" +DEPEND="=virtual/jdk-1.4* + virtual/tetex" + +RDEPEND=">=virtual/jre-1.4" + +src_unpack(){ + unpack ${A} + cd "${S}" + rm ${PN}.jar + sed -i -e "s:W2LPATH=.*:W2LPATH=/usr/lib/${PN}:" "${S}"/w2l || die "Sed failed" +} + +EANT_EXTRA_ARGS="-DOFFICE_HOME=/usr/lib/openoffice" +EANT_BUILD_TARGET="all" + +src_install() { + + dobin w2l + + rm build.xml + insinto /usr/lib/${PN} + doins *.xml + doins *.xsl + java-pkg_jarinto /usr/lib/${PN} + java-pkg_dojar "${S}/target/lib/${PN}.jar" + + cd "${S}" + latex-package_src_install + + if use doc ; then + dohtml -r doc + cp doc/*.pdf "${D}"/usr/share/doc/${PF} || die "Failed to copy .pdfs" + cp doc/*.odt "${D}"/usr/share/doc/${PF} || die "Failed to copy .odts" + + java-pkg_dojavadoc target/javadoc + + fi + if use examples; then + cp -R samples "${D}"/usr/share/doc/${PF} || die "Failed to copy samples" + fi + + dodoc History.txt Readme.txt changelog05.txt +} + |