blob: 20c5ddccbb5d4858674439867d1c0eaa2cfb2ff6 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/gmso2/gmso2-0.1-r1.ebuild,v 1.3 2012/05/21 12:21:05 phajdan.jr Exp $
EAPI="4"
JAVA_PKG_IUSE="source"
WANT_ANT_TASKS="ant-nodeps"
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="GMSO 2 queries ink levels of libinklevel supported printers"
HOMEPAGE="http://mso.googlecode.com/"
SRC_URI="http://mso.googlecode.com/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
COMMON_DEP="
dev-java/libmso:0
dev-java/jinklevel:0
>=dev-java/java-gnome-4.0.15:4.0"
RDEPEND="${COMMON_DEP}
>=virtual/jre-1.5
x11-libs/gksu"
DEPEND="${COMMON_DEP}
>=virtual/jdk-1.5"
EANT_BUILD_TARGET="build"
EANT_GENTOO_CLASSPATH="jinklevel,libmso,java-gnome-4.0"
JAVA_ANT_REWRITE_CLASSPATH="true"
src_install() {
use source && java-pkg_dosrc src
java-pkg_dojar build/${PN}.jar
domo build/mo/*.mo || die "domo failed"
doicon image/* || die "doicon failed"
java-pkg_dolauncher ${PN} --main com.googlecode.mso.gmso2.Gmso2
make_desktop_entry "gksu -u root ${PN}" "GMSO 2" gmso2_icon "Printing;;"
}
|