summaryrefslogtreecommitdiff
blob: a6d7706f597958edb59d6f794d4f7e59d0d6de41 (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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/jdiskreport-bin/jdiskreport-bin-1.2.3.ebuild,v 1.1 2005/12/23 23:45:09 compnerd Exp $

MY_PN=${PN/-bin/}
MY_PV=${PV//\./_}

DESCRIPTION="JDiskReport helps you to understand disk drive usage"
HOMEPAGE="http://www.jgoodies.com/freeware/jdiskreport/index.html"
SRC_URI="http://www.jgoodies.com/download/${MY_PN}/${MY_PN}-${MY_PV}.zip"

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

DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jre-1.4"

S=${WORKDIR}/${MY_PN}-${PV}

src_compile() {
	einfo "Binary only package"

	# We hate, we hate, versioned JARs
	mv ${MY_PN}-${PV}.jar ${MY_PN}.jar
}

src_install() {
	local INSTROOT=${ROOT}opt/${MY_PN}

	# Create a Launcher Script
	cat > ${MY_PN} <<- EOF
		#!/bin/sh
		\$(java-config -J) -jar $INSTROOT/bin/${MY_PN}.jar
	EOF

	# Install the launcher script
	dobin ${MY_PN}

	insinto ${INSTROOT}/bin
	doins ${MY_PN}.jar

	dodoc README.txt RELEASE-NOTES.txt
}