Diff higlayout-1.0-r2 with a higlayout-1.0-r3

/usr/portage/dev-java/higlayout/higlayout-1.0-r3.ebuild 2019-10-05 15:39:00.000000000 +0300
1
# Copyright 1999-2016 Gentoo Foundation
1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
4
EAPI=6
5 5

  
6 6
JAVA_PKG_IUSE="doc examples source"
7 7

  
8 8
inherit java-pkg-2 java-pkg-simple
9 9

  
10 10
DESCRIPTION="Java Swing layout manager that's powerful and easy to use"
11

  
12 11
HOMEPAGE="http://www.autel.cz/dmi/tutorial.html"
13
SRC_URI="http://www.autel.cz/dmi/HIGLayout${PV}.zip"
12
SRC_URI="mirror://gentoo/${P}.zip"
14 13
LICENSE="LGPL-2.1"
15

  
16 14
SLOT="0"
17
KEYWORDS="amd64 x86"
18
IUSE=""
19 15

  
20
DEPEND=">=virtual/jdk-1.4
21
		app-arch/unzip"
22
RDEPEND=">=virtual/jre-1.4"
16
KEYWORDS="~amd64 ~x86"
17

  
18
DEPEND=">=virtual/jdk-1.6"
19
RDEPEND=">=virtual/jre-1.6"
23 20

  
24 21
S="${WORKDIR}"
25 22

  
26
java_prepare() {
23
DOCS=( Changes.txt readme.txt )
24

  
25
src_prepare() {
26
	default
27 27
	cd tutorial || die
28
	for d in *.GIF;
29
	do
30
		mv $d $(basename $d .GIF).gif || die
28
	for d in *.GIF; do
29
		mv "${d}" $(basename ${d} .GIF).gif || die
31 30
	done
32 31
}
33 32

  
34 33
src_install() {
35 34
	java-pkg-simple_src_install
36
	if use examples; then
37
		dodir /usr/share/doc/${PF}/examples
38
		insinto /usr/share/doc/${PF}/examples
39
		doins examples/*
40
	fi
35
	use examples && java-pkg_doexamples examples
36
	einstalldocs
41 37
}
Thank you!