blob: 79947e79ddcfca2d90e1bd64329c54939de91dfe (
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
30
|
# Copyright 2004-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# @ECLASS: java-pkg-binjar.eclass
# @MAINTAINER:
# java@gentoo.org
# @AUTHOR:
# Java maintainers (java@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() { :; }
|