diff options
Diffstat (limited to 'sci-misc/jwnl/jwnl-1.3_rc3.ebuild')
-rw-r--r-- | sci-misc/jwnl/jwnl-1.3_rc3.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sci-misc/jwnl/jwnl-1.3_rc3.ebuild b/sci-misc/jwnl/jwnl-1.3_rc3.ebuild new file mode 100644 index 000000000..4f7da3a48 --- /dev/null +++ b/sci-misc/jwnl/jwnl-1.3_rc3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils versionator java-pkg-2 java-utils-2 + +MY_P=${PN}$(delete_all_version_separators) +DESCRIPTION="Java interface to WordNet dictionary data" +HOMEPAGE="http://jwordnet.sf.net" +SRC_URI="mirror://sourceforge/jwordnet/${MY_P}_src.zip + mirror://sourceforge/jwordnet/${MY_P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" + +COMMON_DEP="dev-java/commons-logging" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" + +S="${WORKDIR}" + +src_unpack() { + cd "${S}" + unpack ${A} + rm -v commons-logging.jar jwnl.jar || die +} + +src_compile() { + # picked up from dev-java/ant-eclipse-ecj + ejavac -classpath "$(java-pkg_getjars commons-logging)" \ + `find net -name '*.java'` || die "ejavac failed" + find net -name '*.class' -o -name '*.properties' | \ + xargs jar cf "${S}/${PN}.jar" || die "jar failed" +} + +src_install() { + java-pkg_dojar ${PN}.jar utilities.jar + dodir /usr/share/${PN} + insinto /usr/share/${PN} + doins create.sql database_properties.xml file_properties.xml \ + jwnl_properties.dtd jwnl_properties.xsd map_properties.xml + dodoc changes.txt +} + |