blob: 042368df4859cd33a9628844c135524df9527f74 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/gmso2/gmso2-0.1.ebuild,v 1.5 2010/08/01 23:27:21 phajdan.jr Exp $
EAPI="2"
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=""
RDEPEND=">=virtual/jre-1.5
dev-java/libmso:0
dev-java/jinklevel:0
>=dev-java/java-gnome-4.0.15
x11-libs/gksu"
DEPEND=">=virtual/jdk-1.5
dev-java/libmso:0
dev-java/jinklevel:0
>=dev-java/java-gnome-4.0.15"
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;;"
}
|