You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-print/gmso2/gmso2-0.1-r1.ebuild

43 lines
1.1 KiB

# 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;;"
}