summaryrefslogtreecommitdiff
path: root/net-misc/xdman/xdman-1.0.ebuild
blob: 481b420a82d0cb62296537081b724c1fa01f7826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit eutils

DESCRIPTION="XDman Internet Downloader"
HOMEPAGE="http://xdman.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}.zip"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="app-admin/eselect-java"
RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_install() {
	ls $S
	dodir /usr/share/${PN}
	dodir /usr/share/applications/
	dodir /usr/share/pixmaps
	dodir /usr/bin/

	insinto /usr/share/${PN}
	doins "${S}"/${PN}.jar
	cd "${D}"/usr/share/${PN}
	echo "cd /usr/share/${PN} && \
	java -jar ${PN}.jar" > "${D}"/usr/bin/${PN}

	insinto /usr/share/pixmaps
	doins "${S}"/icon.png

	insinto /usr/share/${PN}
	make_desktop_entry xdman xdman \
		"/usr/share/${PN}/icon.png" \
		Internet

	fperms u+x /usr/bin/${PN}
}