# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Professional photo browser and editor. Unofficial Linux version" HOMEPAGE="http://sonic.net/~rat/lightcrafts/" MY_PV="${PV##*.}" #SRC_URI="http://lightcrafts.com/products/lightzone2/LightZone-rev.${MY_PV}.tar.gz" SRC_URI="http://www-old.lightcrafts.com/linux/LightZone-rev.${MY_PV}.tar.gz" LICENSE="lightcrafts" SLOT="0" KEYWORDS="~x86" IUSE="" S="${WORKDIR}/LightZone" DEPEND="virtual/libc" RDEPEND="virtual/libc" RESTRICT="strip" src_install() { dodir /opt/LightZone find . '(' '!' -name '*.pack' ')' '(' '!' -name 'firstrun' ')' -exec cp --parents '{}' "${D}/opt/LightZone" ';' jar_files="jre/lib/rt.jar jre/lib/charsets.jar jre/lib/plugin.jar jre/lib/deploy.jar jre/lib/ext/localedata.jar jre/lib/jsse.jar" for jar_file in $jar_files; do jre/bin/unpack200 -r "${jar_file}.pack" "${D}/opt/LightZone/${jar_file}" || die "Error unpacking jar files." done doicon LightZone_16.png doicon LightZone_32.png make_wrapper lightzone /opt/LightZone/LightZone make_desktop_entry lightzone "LightZone photo editor" LightZone_32.png "Application;Graphics;2DGraphics;RasterGraphics;" }