summaryrefslogtreecommitdiff
blob: 4a5d1926aec1d16ea60899f450004ee5ab34c98b (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit java-pkg-2

MY_P="hawtjni-project-${PV}"

DESCRIPTION="Maven plugin for the HawtJNI code generator (resources only)"
HOMEPAGE="https://github.com/fusesource/hawtjni"
SRC_URI="https://github.com/fusesource/hawtjni/archive/${MY_P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"

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

S="${WORKDIR}/hawtjni-${MY_P}/${PN}"

src_compile() {
	touch ${PN}.jar || die # jar won't create on update.
	java-pkg_addres ${PN}.jar src/main/resources
}

src_install() {
	java-pkg_dojar ${PN}.jar
}