Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/java-ebuilder:master commit in: maven/metadata/, maven/eclass/, maven/profiles/
Date: Wed, 30 Oct 2019 17:35:22
Message-Id: 1475723034.f6a3f0f3268b9bd11cdeac02b7121ab9742a1727.mgorny@gentoo
1 commit: f6a3f0f3268b9bd11cdeac02b7121ab9742a1727
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 6 03:02:18 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 6 03:03:54 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/java-ebuilder.git/commit/?id=f6a3f0f3
7
8 maven/: maven overlay skeleton.
9
10 maven/eclass/java-pkg-binjar.eclass | 30 ++++++++++++++++++++++++++++++
11 maven/metadata/layout.conf | 2 ++
12 maven/profiles/category | 1 +
13 maven/profiles/repo_name | 1 +
14 4 files changed, 34 insertions(+)
15
16 diff --git a/maven/eclass/java-pkg-binjar.eclass b/maven/eclass/java-pkg-binjar.eclass
17 new file mode 100644
18 index 0000000..79947e7
19 --- /dev/null
20 +++ b/maven/eclass/java-pkg-binjar.eclass
21 @@ -0,0 +1,30 @@
22 +# Copyright 2004-2016 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +# @ECLASS: java-pkg-binjar.eclass
27 +# @MAINTAINER:
28 +# java@g.o
29 +# @AUTHOR:
30 +# Java maintainers (java@g.o)
31 +# @BLURB: Eclass for packaging binary jar.
32 +# @DESCRIPTION:
33 +# This class is a short cut to install binary jar directly. Binary jar
34 +# is copied to the standard place together with a environment file.
35 +
36 +inherit java-pkg-simple
37 +
38 +EXPORT_FUNCTIONS src_unpack src_compile
39 +
40 +# @FUNCTION: java-pkg-binjar_src_unpack
41 +# @DESCRIPTION:
42 +# Copy the binary jar into the expected place of java-pkg-simple. Do
43 +# not extract files from archive.
44 +java-pkg-binjar_src_unpack() {
45 + cp "${DISTDIR}"/${A} "${S}"/${PN}.jar || die "cp failed"
46 +}
47 +
48 +# @FUNCTION: java-pkg-simple_src_compile
49 +# @DESCRIPTION:
50 +# Do nothing as we are doing binary install.
51 +java-pkg-binjar_src_compile() { :; }
52
53 diff --git a/maven/metadata/layout.conf b/maven/metadata/layout.conf
54 new file mode 100644
55 index 0000000..78053de
56 --- /dev/null
57 +++ b/maven/metadata/layout.conf
58 @@ -0,0 +1,2 @@
59 +repo_name = maven
60 +masters = gentoo
61
62 diff --git a/maven/profiles/category b/maven/profiles/category
63 new file mode 100644
64 index 0000000..7765958
65 --- /dev/null
66 +++ b/maven/profiles/category
67 @@ -0,0 +1 @@
68 +app-maven
69
70 diff --git a/maven/profiles/repo_name b/maven/profiles/repo_name
71 new file mode 100644
72 index 0000000..927333d
73 --- /dev/null
74 +++ b/maven/profiles/repo_name
75 @@ -0,0 +1 @@
76 +maven