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

inherit eutils

MY_ICON=Jalbum-icon.png

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

LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 amd64"
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"

	doicon "${WORKDIR}"/../distdir/${MY_ICON}
	make_desktop_entry ${PN} ${MY_ICON}
}