# Copyright 1999-2008 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/_beta/}" MY_PN="${PN/lightzone/LightZone}" SRC_URI="http://www.lightcrafts.com/SWdownloads/${MY_PN}-${MY_PV}.tar.gz" LICENSE="lightcrafts" SLOT="0" KEYWORDS="~x86" IUSE="" S="${WORKDIR}/LightZone" DEPEND="virtual/libc" RDEPEND="virtual/libc" RESTRICT="strip" pkg_setup() { if [ -z `grep sse2 /proc/cpuinfo` ]; then die "You need a processor which supports the SSE2 extension in order to run LightZone." fi } 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;" }