blob: 9fea3b1fc38275bcec9862a2ded874d700be1863 (
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
46
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils java-utils-2 versionator
MY_PV="$(replace_all_version_separators _)"
DESCRIPTION="SmartGIT"
HOMEPAGE="http://www.syntevo.com/smartgit"
SRC_URI="${PN}-generic-${MY_PV}.tar.gz"
SLOT="0"
LICENSE="smartgit"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="fetch"
RDEPEND="virtual/jre"
S="${WORKDIR}"/smartgit-${MY_PV}
pkg_nofetch(){
einfo "Please download ${MY_P}.tar.gz from:"
einfo "http://www.syntevo.com/smartgit/early-access.html"
einfo "and move/copy to ${DISTDIR}"
}
src_install() {
local rdir="/opt/${PN}"
insinto ${rdir}
doins -r * || die "cannot install needed files"
java-pkg_regjar "${D}"/${rdir}/lib/*.jar
java-pkg_dolauncher ${PN} --java_args "-Xmx256M -Dsmartgit.vm-xmx=256m" --jar ${PN}.jar
for X in 32 64 128
do
insinto /usr/share/icons/hicolor/${X}x${X}/apps
newins "${S}/bin/smartsvn-${X}.png" "${PN}.png" || die "cannot install needed files"
done
make_desktop_entry "${PN}" "SmartGIT" ${PN}.png "Development;RevisionControl"
}
|