# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit java-pkg versionator DESCRIPTION="A mature Java-based RSS/RDF/Atom Newsreader with advanced features." HOMEPAGE="http://www.rssowl.org/" LICENSE="CPL-1.0" MY_P="rssowl_$(replace_all_version_separators '_' $PV)_src" SRC_URI="mirror://sourceforge/rssowl/${MY_P}.tar.gz" SLOT="0" KEYWORDS="~x86" IUSE="doc" S=${WORKDIR}/${MY_P} KEYWORDS="~x86" DEPEND=">=dev-java/ant-core-1.5.4 =>dev-java/swt-3.1" RDEPEND=">=virtual/jre-1.4" src_unpack() { unpack ${A} cd ${S}/lib java-pkg_jar-from swt-3 } src_compile() { cd ${S}/src ant deploy_linux|| die "compile failed" } src_install() { java-pkg_dojar ${PN}.jar # Create program launcher echo -e "#!/bin/sh\njava -Djava.library.path=/usr/lib/ -jar /usr/share/${PN}/lib/${PN}.jar" > ./${PN} dobin ${PN} insinto /usr/share/icons/hicolor/32x32/apps newins img/32x32.png rssowl.png insinto /usr/share/applications/ doins ${FILESDIR}/rssowl.desktop dohtml -r doc/tutorial/en/* dodoc doc/{CHANGELOG.txt,LICENSE.txt,README.txt} } pkg_postinst() { echo ewarn "Note: Mozilla 1.4 or higher is required in order for internal" ewarn "browser support. Due to limitations of SWT at this time, only" ewarn "external browsing is available for other clients, including other" ewarn "Gecko-based clients like Firefox." echo }