dev-java/maven-hawtjni-plugin: New package, resources only
authorJames Le Cuirot <chewi@gentoo.org>
Mon, 4 Apr 2016 21:43:28 +0000 (22:43 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Thu, 7 Apr 2016 21:45:33 +0000 (22:45 +0100)
We currently don't use Maven in ebuilds and we haven't found the need
to build the many plugins. This one has useful resource files for
building netty-tcnative and potentially other native libraries.

Package-Manager: portage-2.2.28

dev-java/maven-hawtjni-plugin/Manifest [new file with mode: 0644]
dev-java/maven-hawtjni-plugin/maven-hawtjni-plugin-1.11.ebuild [new file with mode: 0644]
dev-java/maven-hawtjni-plugin/metadata.xml [new file with mode: 0644]

diff --git a/dev-java/maven-hawtjni-plugin/Manifest b/dev-java/maven-hawtjni-plugin/Manifest
new file mode 100644 (file)
index 0000000..4575b62
--- /dev/null
@@ -0,0 +1 @@
+DIST hawtjni-project-1.11.tar.gz 1603735 SHA256 4f8665931329effd0d0b3444e20d2c5d72b01640da2f180f05f26e79f0692fed SHA512 0fafe29dd058eee07e9c26179b7605cc092254199ccb913064002c882e7ab55ecc4045dd2baab99bbc46d6bf28a9f4f2108c210616e3a9c4a92582c65e6de4e4 WHIRLPOOL 60bdab794130fa85aa2b27da0bb6d1684793b45575425dcc06e413426652703b673a1c735c3c4c5c12056bbc2005316c00d13cc9c46ff362579b172a564ddccb
diff --git a/dev-java/maven-hawtjni-plugin/maven-hawtjni-plugin-1.11.ebuild b/dev-java/maven-hawtjni-plugin/maven-hawtjni-plugin-1.11.ebuild
new file mode 100644 (file)
index 0000000..f614eaf
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}
diff --git a/dev-java/maven-hawtjni-plugin/metadata.xml b/dev-java/maven-hawtjni-plugin/metadata.xml
new file mode 100644 (file)
index 0000000..6208a5a
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>java@gentoo.org</email>
+               <name>Java</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">fusesource/hawtjni</remote-id>
+       </upstream>
+</pkgmetadata>