# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit java-pkg-2 java-ant-2 DESCRIPTION="A mature Java-based RSS/RDF/Atom Newsreader with advanced features." HOMEPAGE="http://www.rssowl.org/" LICENSE="CPL-1.0" SRC_URI="mirror://sourceforge/${PN}/${PN}%202/$PV/${P}.source.zip ${dist}/${P}-build-sources.tbz2" SLOT="2" KEYWORDS="*" IUSE="doc" KEYWORDS="*" #S=${WORKDIR}/${MY_P} S=${WORKDIR} DEPEND="dev-java/commons-codec dev-java/commons-httpclient:0 dev-java/commons-logging dev-java/db4o-jdk5 dev-java/jdom:0 dev-java/lucene:2.2 >=virtual/jdk-1.5" RDEPEND=">=virtual/jre-1.5" java_prepare() { rm -fRv org.rssowl.lib.{db4o,httpclient,jdom,lucene} find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -exec rm -fRv {} + die "ebuild not finished beyond this point" } # Likely can't use shipped non-existent build system EANT_BUILD_TARGET="deploy_linux" # Probably have to compile stuff directly java-pkg-simple eclass contender src_compile() { java-pkg-2_src_compile } src_install() { java-pkg_dojar ${PN}.jar # Create program launcher not sure if needed java-pkg_dolauncher ${PN} org.rssowl.mainclass? insinto /usr/share/icons/hicolor/32x32/apps newins img/32x32.png rssowl.png insinto /usr/share/applications/ doins ${FILESDIR}/rssowl.desktop java-pkg_dohtml -r doc/tutorial/en/* dodoc doc/{CHANGELOG.txt,LICENSE.txt,README.txt} }