diff options
author | Pavel Sanda (ps) <ps@twin.jikos.cz> | 2007-08-02 14:22:04 +0000 |
---|---|---|
committer | Pavel Sanda (ps) <ps@twin.jikos.cz> | 2007-08-02 14:22:04 +0000 |
commit | 8a84aa134ea922ace89a7b017a87032f0b38288f (patch) | |
tree | 4433913c65866766fa69b1d4a40c3f0204ad1599 /app-text/writer2latex/writer2latex-0.5_beta3.ebuild | |
parent | Remove pointless virtual/libc dependency, quoting (diff) | |
download | sunrise-8a84aa134ea922ace89a7b017a87032f0b38288f.tar.gz sunrise-8a84aa134ea922ace89a7b017a87032f0b38288f.tar.bz2 sunrise-8a84aa134ea922ace89a7b017a87032f0b38288f.zip |
app-text/writer2latex: New Ebuild for bug 181283 thanks to D. Kulyabov
svn path=/sunrise/; revision=4357
Diffstat (limited to 'app-text/writer2latex/writer2latex-0.5_beta3.ebuild')
-rw-r--r-- | app-text/writer2latex/writer2latex-0.5_beta3.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
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 +} + |