# 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/Jalbum${PV}.zip"

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

DEPEND=">=virtual/jre-1.5"
RDEPEND="${DEPEND}"

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

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