# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils versionator DESCRIPTION="A mature Java-based RSS/RDF/Atom Newsreader with advanced features." HOMEPAGE="http://www.rssowl.org/" LICENSE="CPL-1.0" MY_PV="rssowl_linux_$(replace_all_version_separators '_' $PV)_bin" SRC_URI="mirror://sourceforge/rssowl/$MY_PV.tar.gz" SLOTS="0" KEYWORDS="~x86" IUSE="" S=${WORKDIR}/${MY_PV} PROGRAM_DIR="/usr/lib/${PN}" RDEPEND=">=virtual/jre-1.4 virtual/x11" src_compile() { echo einfo "This package does not require compiling... skipping." echo } src_install() { cd ${S} # Create program launcher echo -e "#!/bin/sh\njava -jar -Djava.library.path=${PROGRAM_DIR} ${PROGRAM_DIR}/rssowl.jar" > ./rssowl-bin dobin rssowl-bin insinto ${PROGRAM_DIR} doins rssowl.jar rssowl.xpm exeinto ${PROGRAM_DIR} doexe *.so dodoc doc/* dohtml -r doc/tutorial/en/* } 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 }