1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils java-pkg-2
8 MY_P=smartsvn-generic-${MY_PV}
10 DESCRIPTION="GUI to SVN with extensive merge support and commit wizard"
11 HOMEPAGE="http://www.syntevo.com/smartsvn/"
12 SRC_URI="${MY_P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
20 RDEPEND=">=virtual/jre-1.4.1"
22 S="${WORKDIR}/${PN}-${MY_PV}"
25 local rdir="/opt/${PN}"
27 doins -r * || die "cannot install needed files"
29 java-pkg_regjar ${rdir}/lib/${PN}.jar
31 java-pkg_dolauncher ${PN} "--java-args -Xmx256 --jar ${PN}.jar"
35 insinto /usr/share/icons/hicolor/${X}x${X}/apps
36 newins "${S}/bin/${PN}-${X}.png" "${PN}.png" || die "cannot install needed files"
37 insinto /usr/share/icons/hicolor/scalable/apps
38 newins "${S}/bin/${PN}.svg" "${PN}.svg" || die "cannot install needed files"
41 make_desktop_entry "${PN}" "SmartSVN" ${PN} "Development;RevisionControl" || die "cannot create desktop entry"
45 einfo "Please download ${MY_P}.tar.gz from:"
46 einfo "${HOMEPAGE}download.html?file=smartsvn/${MY_P}.tar.gz"
47 einfo "and move/copy to ${DISTDIR}"