summaryrefslogtreecommitdiff
blob: 29f28f1b6d3a4c88cf74db0cd546cb25e8d44f4e (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-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

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.7"
RDEPEND=">=virtual/jre-1.7"

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
}