Diff arduino-1.8.7 with a arduino-1.8.13

/usr/portage/dev-embedded/arduino/arduino-1.8.13.ebuild 2020-09-06 22:09:00.000000000 +0300
18 18
	ARDUINO_DOCS_URI+=" https://downloads.arduino.cc/${docname}.zip -> ${PN}-${docname}.zip"
19 19
done
20 20

  
21
AVR_VERSION="1.8.3"
22
PLUGIN_VERSION="0.10.10"
23

  
21 24
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz
22
	https://downloads.arduino.cc/cores/avr-1.6.23.tar.bz2 -> ${PN}-avr-1.6.23.tar.bz2
23
	https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/releases/download/v0.9.2/WiFi101-Updater-ArduinoIDE-Plugin-0.9.2.zip -> ${PN}-WiFi101-Updater-ArduinoIDE-Plugin-0.9.2.zip
25
	https://downloads.arduino.cc/cores/avr-${AVR_VERSION}.tar.bz2 -> ${PN}-avr-${AVR_VERSION}.tar.bz2
26
	https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/releases/download/v${PLUGIN_VERSION}/WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip -> ${PN}-WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip
24 27
	doc? (
25 28
		${ARDUINO_DOCS_URI}
26 29
	)"
27 30

  
28 31
LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0"
29 32
SLOT="0"
30
KEYWORDS="amd64 x86"
33
KEYWORDS="~amd64 ~x86"
31 34
IUSE="doc"
32 35

  
33 36
CDEPEND="dev-embedded/arduino-builder"
......
45 48
# don't run the default "javadoc" target, we don't have one.
46 49
EANT_DOC_TARGET=""
47 50
EANT_BUILD_XML="build/build.xml"
48
EANT_EXTRA_ARGS=" -Dlight_bundle=1 -Dlocal_sources=1 -Dno_arduino_builder=1"
51
EANT_EXTRA_ARGS=" -Dlight_bundle=1 -Dlocal_sources=1 -Dno_arduino_builder=1 -Dversion=${PV}"
49 52

  
50 53
RESTRICT="strip"
51 54
QA_PREBUILT="usr/share/arduino/hardware/arduino/avr/firmwares/*"
......
59 62

  
60 63
src_unpack() {
61 64
	# We don't want to unpack tools, just move zip files into the work dir
62
	unpack `echo ${A} | cut -d ' ' -f1`
65
	local a=( ${A} )
66
	unpack "${a[0]}"
63 67

  
64
	cp "${DISTDIR}/${PN}-avr-1.6.23.tar.bz2" "${S}/build/avr-1.6.23.tar.bz2" || die
65
	cp "${DISTDIR}/${PN}-WiFi101-Updater-ArduinoIDE-Plugin-0.9.2.zip" "${S}/build/shared/WiFi101-Updater-ArduinoIDE-Plugin-0.9.2.zip"|| die
68
	cp "${DISTDIR}/${PN}-avr-${AVR_VERSION}.tar.bz2" "${S}/build/avr-${AVR_VERSION}.tar.bz2" || die
69
	cp "${DISTDIR}/${PN}-WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip" "${S}/build/shared/WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip" || die
66 70

  
67 71
	if use doc; then
68 72
		local docname
......
86 90
}
87 91

  
88 92
src_compile() {
89
	if ! use doc; then
90
		EANT_EXTRA_ARGS+=" -Dno_docs=1"
91
	fi
93
	use doc || EANT_EXTRA_ARGS+=" -Dno_docs=1"
92 94
	java-pkg-2_src_compile
93 95
}
94 96

  
Thank you!