# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop java-pkg-2 java-ant-2 xdg

DESCRIPTION="A GUI front-end of fontconfig"
HOMEPAGE="https://github.com/guoyunhe/fontweak"
SRC_URI="https://github.com/guoyunhe/fontweak/archive/v${PV}/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"

RDEPEND=">=virtual/jre-1.8"
DEPEND=">=virtual/jdk-1.8"

src_install() {
	default
	java-pkg_dojar dist/${PN}.jar
	java-pkg_dolauncher ${PN}

	domenu ${PN}.desktop
	newicon -s scalable icon.svg ${PN}.svg
}