# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils java-pkg OMEGAT_V="1.4.5.04" DESCRIPTION="Imports translations in the form of Java resource bundles (.properties files) to OmegaT-compatible TMX files." HOMEPAGE="http://www.omegat.org/" SRC_URI="mirror://sourceforge/omegat/OmegaT_src_${OMEGAT_V}.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=" >=virtual/jdk-1.4 dev-java/ant-core app-arch/unzip " RDEPEND=" >=virtual/jre-1.4 " S=${WORKDIR} MY_INSTALL_DIR="/opt/${PN}" src_unpack() { unpack ${A} } src_compile() { ant -buildfile "addons/properties-import/build.xml" "jar" } src_install() { java-pkg_jarinto ${MY_INSTALL_DIR} java-pkg_dojar addons/properties-import/properties_import.jar dodoc addons/properties-import/readme.txt exeinto /usr/bin make_startup_script doicon images/OmegaT.ico make_desktop_entry ${PN} "OmegaT Properties Import ${PV}" "/usr/share/pixmaps/OmegaT.ico" "Application;Office" } function make_startup_script() { echo "#!/bin/bash java -jar ${MY_INSTALL_DIR}/properties_import.jar" > ${PN} doexe ${PN} }