commit:     f6a3f0f3268b9bd11cdeac02b7121ab9742a1727
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  6 03:02:18 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct  6 03:03:54 2016 +0000
URL:        https://gitweb.gentoo.org/proj/java-ebuilder.git/commit/?id=f6a3f0f3

maven/: maven overlay skeleton.

 maven/eclass/java-pkg-binjar.eclass | 30 ++++++++++++++++++++++++++++++
 maven/metadata/layout.conf          |  2 ++
 maven/profiles/category             |  1 +
 maven/profiles/repo_name            |  1 +
 4 files changed, 34 insertions(+)

diff --git a/maven/eclass/java-pkg-binjar.eclass 
b/maven/eclass/java-pkg-binjar.eclass
new file mode 100644
index 0000000..79947e7
--- /dev/null
+++ b/maven/eclass/java-pkg-binjar.eclass
@@ -0,0 +1,30 @@
+# Copyright 2004-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# @ECLASS: java-pkg-binjar.eclass
+# @MAINTAINER:
+# j...@gentoo.org
+# @AUTHOR:
+# Java maintainers (j...@gentoo.org)
+# @BLURB: Eclass for packaging binary jar.
+# @DESCRIPTION:
+# This class is a short cut to install binary jar directly.  Binary jar
+# is copied to the standard place together with a environment file.
+
+inherit java-pkg-simple
+
+EXPORT_FUNCTIONS src_unpack src_compile
+
+# @FUNCTION: java-pkg-binjar_src_unpack
+# @DESCRIPTION:
+# Copy the binary jar into the expected place of java-pkg-simple.  Do
+# not extract files from archive.
+java-pkg-binjar_src_unpack() {
+       cp "${DISTDIR}"/${A} "${S}"/${PN}.jar || die "cp failed"
+}
+
+# @FUNCTION: java-pkg-simple_src_compile
+# @DESCRIPTION:
+# Do nothing as we are doing binary install.
+java-pkg-binjar_src_compile() { :; }

diff --git a/maven/metadata/layout.conf b/maven/metadata/layout.conf
new file mode 100644
index 0000000..78053de
--- /dev/null
+++ b/maven/metadata/layout.conf
@@ -0,0 +1,2 @@
+repo_name = maven
+masters = gentoo

diff --git a/maven/profiles/category b/maven/profiles/category
new file mode 100644
index 0000000..7765958
--- /dev/null
+++ b/maven/profiles/category
@@ -0,0 +1 @@
+app-maven

diff --git a/maven/profiles/repo_name b/maven/profiles/repo_name
new file mode 100644
index 0000000..927333d
--- /dev/null
+++ b/maven/profiles/repo_name
@@ -0,0 +1 @@
+maven

Reply via email to