# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Web photo album generator"
HOMEPAGE="http://jalbum.net/"
SRC_URI="http://jalbum.net/download/${PN}6.4.zip"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=virtual/jre-1.4"
RDEPEND="${DEPEND}
        >=virtual/jdk-1.4
	    app-arch/unzip"

src_install() {
	local dest=/usr/lib/${PN}
	dodir ${dest}
	cp -R ${WORKDIR}/${PN}/* ${D}/${dest} || die "Install failed"
	dobin ${FILESDIR}/${PN}

	dodir /usr/share/pixmaps
	insinto /usr/share/pixmaps
	doins ${FILESDIR}/${PN}.png
	make_desktop_entry ${PN}
}