Large rework/update to EAPI=7
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
AUX arduino-ide-1.6.8-script.patch 660 SHA256 f80ffc3cf2f2a333862b5a1826c747aa92efbf8e90c92cb339d31cd5b27b07b2 SHA512 bbdae2bd2adcb461962308ef9ed6c86005fb2ae214bb9fb755554b440a87063562a79da9492308c6e614b771c4d9c3721e369dbb1df63534d5238a2b151ddb00 WHIRLPOOL 31b5319dc111e50f925e9dc3bd2819317e2f7d2b02cd451f9b41fddb855655d4589c106bffbb832c9ce7fc5f0dbebd2f62aa06ba37131135fcdc2c2767e072de
|
||||
AUX arduino-ide-1.6.9-script.patch 660 SHA256 f80ffc3cf2f2a333862b5a1826c747aa92efbf8e90c92cb339d31cd5b27b07b2 SHA512 bbdae2bd2adcb461962308ef9ed6c86005fb2ae214bb9fb755554b440a87063562a79da9492308c6e614b771c4d9c3721e369dbb1df63534d5238a2b151ddb00 WHIRLPOOL 31b5319dc111e50f925e9dc3bd2819317e2f7d2b02cd451f9b41fddb855655d4589c106bffbb832c9ce7fc5f0dbebd2f62aa06ba37131135fcdc2c2767e072de
|
||||
DIST arduino-1.8.1.tar.gz 86826305 SHA256 cc82bbb2979fbf53dc4775668de7e5eefcb61ab65f46507aa933107ad458d268 SHA512 1ca8c306d2bdee52fbc69ba7b933ac9a3a1154cfa2e5861e75b5eb2ca1cdfa7843b36b36eae68d8d932194be5ea938fbe3c2492b87d81d88d88edd9d0aeb1541 WHIRLPOOL 0ca152bbf1600e0f15ceb11130252fb353f2b7b74c461f8d8725ca9175295bc29a1609c847a1544df4053673b8e01207267c9e9a493fd08dc75cf05614c697b7
|
||||
DIST arduino-icons.tar.bz2 58775 SHA256 9086ae27a13cc19e428ed7e6434366752b33a7d066b5620bfdd371709277390e SHA512 b750e79d6117f5df619f2b765dad6e64f0ba4aa3314b0b6e00801577e3ea1f15951ba15efe7a00f5317285a19ac29ac41c78b71342f45cd164c794a42bafcdd9 WHIRLPOOL b53ab3ff2981ca9f6d45311b9f885ca831700a7a49fef4a376cdc489f7cc3a6c39fbb93994b962b6854b0833d7342b951b5c6327422aafce762f92952b7a5876
|
||||
EBUILD arduino-ide-1.8.1.ebuild 2550 SHA256 b2122760355987ff7d4892ee612efc8533f72704c3fc968bc42d40cc732ee14b SHA512 7fd4f8aa37674693429e6b4e42a4f075f1b75488d42a7ab5594e6f18f6283cb4064551df056bccbaa268c1e34b4b8eefec5ff4e3740c275d6e0a41530f030f23 WHIRLPOOL 642da1683a2c39acbf49ecb48abeb9862831a5fefa0df76d0dbf193ac24f4b942d7dde44f90745252dee6bb8ea62a8a939c11ebcccd1ee9750887be6023594aa
|
||||
@@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
JAVA_PKG_IUSE="doc examples"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
MY_P="Arduino"
|
||||
PNS="arduino"
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="http://arduino.cc/ https://arduino.googlecode.com/"
|
||||
SRC_URI="https://github.com/arduino/${MY_P}/archive/${PV}.tar.gz -> arduino-${PV}.tar.gz
|
||||
mirror://gentoo/arduino-icons.tar.bz2"
|
||||
LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="strip binchecks"
|
||||
IUSE=""
|
||||
|
||||
COMMONDEP="
|
||||
dev-java/jna:0
|
||||
>dev-java/rxtx-2.1:2"
|
||||
|
||||
RDEPEND="${COMMONDEP}
|
||||
dev-embedded/arduino-libs
|
||||
dev-embedded/avrdude
|
||||
sys-devel/crossdev
|
||||
>=virtual/jre-1.8"
|
||||
|
||||
DEPEND="${COMMONDEP}
|
||||
>=virtual/jdk-1.8"
|
||||
|
||||
S="${WORKDIR}/${MY_P}-${PV}"
|
||||
EANT_GENTOO_CLASSPATH="jna,rxtx-2"
|
||||
EANT_EXTRA_ARGS="-Dversion=${PV}"
|
||||
EANT_BUILD_TARGET="build"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
java_prepare() {
|
||||
# Patch launcher script to include rxtx class/ld paths
|
||||
epatch "${FILESDIR}/${P}-script.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -f arduino-core/build.xml
|
||||
EANT_GENTOO_CLASSPATH_EXTRA="../core/core.jar"
|
||||
eant -f app/build.xml
|
||||
eant "${EANT_EXTRA_ARGS}" -f build/build.xml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd build/linux/work || die
|
||||
java-pkg_dojar lib/*.jar
|
||||
java-pkg_dolauncher ${PNS} --pwd /usr/share/${PNS} --main processing.app.Base
|
||||
|
||||
if use examples; then
|
||||
java-pkg_doexamples examples
|
||||
docompress -x /usr/share/doc/${P}/examples/
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
dodoc revisions.txt "${S}"/README.md
|
||||
dohtml -r reference
|
||||
fi
|
||||
|
||||
insinto "/usr/share/${PNS}/"
|
||||
doins -r tools tools-builder
|
||||
|
||||
insinto "/usr/share/${PNS}/hardware"
|
||||
doins -r hardware/platform.*
|
||||
|
||||
insinto "/usr/share/${PNS}/lib"
|
||||
doins -r lib/*.txt lib/theme lib/*.png lib/*.bmp lib/*.key lib/*.so lib/*.ico lib/*.conf
|
||||
|
||||
# install menu and icons
|
||||
sed -e 's/Exec=FULL_PATH\/arduino/Exec=arduino/g' -i arduino.desktop
|
||||
sed -e 's/Icon=FULL_PATH\/lib\/arduino.png/Icon=arduino/g' -i arduino.desktop
|
||||
sed -e 's/x-arduino/x-arduino;/g' -i arduino.desktop
|
||||
domenu "${PNS}.desktop"
|
||||
for sz in 16 24 32 48 128 256; do
|
||||
newicon -s $sz \
|
||||
"${WORKDIR}/${PNS}-icons/debian_icons_${sz}x${sz}_apps_${PNS}.png" \
|
||||
"${PNS}.png"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[ ! -x /usr/bin/avr-g++ ] && ewarn "Missing avr-g++; you need to crossdev -s4 avr"
|
||||
|
||||
elog "I have *NOT* tested if this ebuild even works, because I don't use it myself."
|
||||
elog "If you encounter issues with the installation, please report them to me, and"
|
||||
elog "I will try my best to fix them."
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
diff -Naurp a/build/linux/dist/arduino b/build/linux/dist/arduino
|
||||
--- a/build/linux/dist/arduino 2015-12-10 02:45:00.010340806 +0100
|
||||
+++ b/build/linux/dist/arduino 2015-12-10 02:48:13.155420642 +0100
|
||||
@@ -8,11 +8,12 @@ for LIB in \
|
||||
"$APPDIR"/lib/*.jar \
|
||||
;
|
||||
do
|
||||
- CLASSPATH="${CLASSPATH}:${LIB}"
|
||||
+ CLASSPATH="${CLASSPATH+$CLASSPATH:}${LIB}"
|
||||
done
|
||||
+CLASSPATH="${CLASSPATH+$CLASSPATH:}:$(java-config -dp rxtx-2)"
|
||||
export CLASSPATH
|
||||
|
||||
-LD_LIBRARY_PATH=$APPDIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
||||
+LD_LIBRARY_PATH="$(java-config -di rxtx-2)${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
|
||||
export LD_LIBRARY_PATH
|
||||
|
||||
export PATH="${APPDIR}/java/bin:${PATH}"
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
diff -Naurp a/build/linux/dist/arduino b/build/linux/dist/arduino
|
||||
--- a/build/linux/dist/arduino 2015-12-10 02:45:00.010340806 +0100
|
||||
+++ b/build/linux/dist/arduino 2015-12-10 02:48:13.155420642 +0100
|
||||
@@ -8,11 +8,12 @@ for LIB in \
|
||||
"$APPDIR"/lib/*.jar \
|
||||
;
|
||||
do
|
||||
- CLASSPATH="${CLASSPATH}:${LIB}"
|
||||
+ CLASSPATH="${CLASSPATH+$CLASSPATH:}${LIB}"
|
||||
done
|
||||
+CLASSPATH="${CLASSPATH+$CLASSPATH:}:$(java-config -dp rxtx-2)"
|
||||
export CLASSPATH
|
||||
|
||||
-LD_LIBRARY_PATH=$APPDIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
||||
+LD_LIBRARY_PATH="$(java-config -di rxtx-2)${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
|
||||
export LD_LIBRARY_PATH
|
||||
|
||||
export PATH="${APPDIR}/java/bin:${PATH}"
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
DIST arduino-1.8.1.tar.gz 86826305 SHA256 cc82bbb2979fbf53dc4775668de7e5eefcb61ab65f46507aa933107ad458d268 SHA512 1ca8c306d2bdee52fbc69ba7b933ac9a3a1154cfa2e5861e75b5eb2ca1cdfa7843b36b36eae68d8d932194be5ea938fbe3c2492b87d81d88d88edd9d0aeb1541 WHIRLPOOL 0ca152bbf1600e0f15ceb11130252fb353f2b7b74c461f8d8725ca9175295bc29a1609c847a1544df4053673b8e01207267c9e9a493fd08dc75cf05614c697b7
|
||||
EBUILD arduino-libs-1.8.1.ebuild 923 SHA256 7697ee6305c17edf18cf214d305293485db795bb48ca05786d09f7475a73e04e SHA512 b8691ef253f8f3e4fd1c555c92c12f3fe4ff99979015b36ff2be24a42cc4eda6921e25ad3af7ddd0f1618caa00dc32974f18c7e66cd6eeb517c4c7bb2b86e75e WHIRLPOOL 9f435b9b5775a2fd47776c8887d6302d7a6fee07ba9018a1d22f2f9bf6cdbdee09cae57e69cc41e333309d767cd397d91ddc4bd5a7ebc1fa8a814dcc1b094092
|
||||
@@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_P="Arduino"
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="http://arduino.cc/ https://arduino.googlecode.com/"
|
||||
SRC_URI="https://github.com/arduino/${MY_P}/archive/${PV}.tar.gz -> arduino-${PV}.tar.gz"
|
||||
LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}-${PV}"
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/arduino/"
|
||||
doins -r hardware libraries
|
||||
fowners -R root:uucp "/usr/share/arduino/hardware"
|
||||
|
||||
dosym /usr/bin/avrdude "/usr/share/arduino/hardware/tools/avrdude"
|
||||
dosym /etc/avrdude.conf "/usr/share/arduino/hardware/tools/avrdude.conf"
|
||||
|
||||
mkdir -p "${D}/usr/share/arduino/hardware/tools/avr/etc/"
|
||||
dosym /etc/avrdude.conf "/usr/share/arduino/hardware/tools/avr/etc/avrdude.conf"
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
AUX arduino-1.6.7-Do-Not-ThinkDifferent.patch 832 SHA256 f3be70a62f24a91ba5de4350772fe365983b23c1ff12dc4add555954d499b997 SHA512 cfcb1a7fb9ea89fb48b0795a64c80e22962a8db3417ab51aaef140e76d7d2d27f311ab9463d530e190e06b0ad4412460af71a263dd93115cb2cb89c21ba8107c WHIRLPOOL da06bde9ef309fb0a55ef0c94a1427410ce0aea875ee577fc00f9171905dffe6748bd1777639408f4e10e6d1f1fbc8beaf753379e8ad6ae64f4eb7d099585531
|
||||
AUX arduino-1.6.7-build.xml.patch 27270 SHA256 143a1a1698280378166d00a69e21ca2d8d31b294ce15ed3f4ce9593c20db0227 SHA512 7bca2efb434a41d0f6f4594bb11f940584896dcd647eff5f621358a679402ff07673c7b7c8fb38dfdc53c724bc3add674af934680a814aff1053c296ab1e4182 WHIRLPOOL abcad8468201020cb6c2244fdacd2f11c8d77849974970b41b99bf404151fc588fa4ecdc2f4e5a084e238860b6905d40250197c250f81e8f02e72dc16cb79f23
|
||||
AUX arduino-1.6.7-script.patch 580 SHA256 553335d62134c9ca66e7b9f0b9496f187c76a3223438f2659e29d51cdd55776d SHA512 65b2868a18201f738a64377d965601dda77cee9713720e1d91de4378038083669370e3353b82f48f41c27d0ff65a859a8acc9b15bb20ba55bb7685daa98db173 WHIRLPOOL 2b9de5c030c05f48a52fd67f54d2ae1a25b1f95b1e02a69a172fe286d9b1c6912a652954b3e6d35b1c0cf252ba2ccaffa86e844e9f8075323ef1e413a0a988af
|
||||
AUX arduino-1.6.9-Do-Not-ThinkDifferent.patch 832 SHA256 f3be70a62f24a91ba5de4350772fe365983b23c1ff12dc4add555954d499b997 SHA512 cfcb1a7fb9ea89fb48b0795a64c80e22962a8db3417ab51aaef140e76d7d2d27f311ab9463d530e190e06b0ad4412460af71a263dd93115cb2cb89c21ba8107c WHIRLPOOL da06bde9ef309fb0a55ef0c94a1427410ce0aea875ee577fc00f9171905dffe6748bd1777639408f4e10e6d1f1fbc8beaf753379e8ad6ae64f4eb7d099585531
|
||||
AUX arduino-1.6.9-build.xml.patch 29384 SHA256 9417ebed1e3f122eefbc8992b700f3865bfda53974ac04a284f1ac7a8f76099e SHA512 0a7b6bfaa252b56f3685e0b5acccd92db8b794523bed3e7750206fe303ba2004b3aa6e1086601a0adbb81277c4adc4ef6b9f0a35fe4b06fad2d9406e33b5359e WHIRLPOOL 3e705f9df74208bc16105f775d92216cbbd41156f0799481d6870b91be6e034d810e7d3a863875a523877855d9fc979f01c72c083649ddc88607cbc9e25adcc1
|
||||
AUX arduino-1.6.9-platform.patch 1102 SHA256 4026317625b48b4f845b31655a3553417e62cfd96072ac3b9dc2166806e95838 SHA512 91300f146fac62c16e542536e780ade8e4a10f95dc0e254fd7de1504eedec3fccffe6ef137ab05b457c9c675007b4067d53736e409c7dab7711e590ede22e4e4 WHIRLPOOL 787bfa52278cc2cc443c346bac7e7f1f9a52be409e64fc04c9a77461d3770118bf0ae583316918190fdd12c975d59869a5dc19157739bc37b396ce92a0adb07c
|
||||
AUX arduino-1.6.9-script.patch 580 SHA256 553335d62134c9ca66e7b9f0b9496f187c76a3223438f2659e29d51cdd55776d SHA512 65b2868a18201f738a64377d965601dda77cee9713720e1d91de4378038083669370e3353b82f48f41c27d0ff65a859a8acc9b15bb20ba55bb7685daa98db173 WHIRLPOOL 2b9de5c030c05f48a52fd67f54d2ae1a25b1f95b1e02a69a172fe286d9b1c6912a652954b3e6d35b1c0cf252ba2ccaffa86e844e9f8075323ef1e413a0a988af
|
||||
AUX arduino-1.8.1-Do-Not-ThinkDifferent.patch 832 SHA256 f3be70a62f24a91ba5de4350772fe365983b23c1ff12dc4add555954d499b997 SHA512 cfcb1a7fb9ea89fb48b0795a64c80e22962a8db3417ab51aaef140e76d7d2d27f311ab9463d530e190e06b0ad4412460af71a263dd93115cb2cb89c21ba8107c WHIRLPOOL da06bde9ef309fb0a55ef0c94a1427410ce0aea875ee577fc00f9171905dffe6748bd1777639408f4e10e6d1f1fbc8beaf753379e8ad6ae64f4eb7d099585531
|
||||
AUX arduino-1.8.4-Do-Not-ThinkDifferent.patch 832 SHA256 f3be70a62f24a91ba5de4350772fe365983b23c1ff12dc4add555954d499b997 SHA512 cfcb1a7fb9ea89fb48b0795a64c80e22962a8db3417ab51aaef140e76d7d2d27f311ab9463d530e190e06b0ad4412460af71a263dd93115cb2cb89c21ba8107c WHIRLPOOL da06bde9ef309fb0a55ef0c94a1427410ce0aea875ee577fc00f9171905dffe6748bd1777639408f4e10e6d1f1fbc8beaf753379e8ad6ae64f4eb7d099585531
|
||||
AUX arduino.desktop 228 SHA256 3b89b4fe43d2a0d40e757be94859b6809bd49f85d2c47a92e78b286d7de0ae39 SHA512 8c8b8b3306eeaa8640716abba14c44e2886b6d23c3cf2b5503595cb89a59845bdd5a57800fd07cea777be20e27621427bbb6bad2a8fe9513f7dfac5a41f8bde4 WHIRLPOOL c2d2db0cf2c10448801a718adc4ab4b58b0e70e2c9cfd31115d5a0c79fc1f69de3ffb67e2560636239b6fd6b24f9bddbf6ece2f72a69d2e4e0c042a36a6b08f8
|
||||
AUX platform-1.6.9/platform.txt 1447 SHA256 1a971137ac7575b4a6cb5869f79158db8ab61c1e899a275900ae9cce9fd140ed SHA512 269be33d4a2f22f59f149037614eca87b062c4f41f71dd3576db395d67018954f855d79b370a0b88b823985b287e163bbd0bdc430546a5ed3f5316fd7a0f41cb WHIRLPOOL 0daa35b52af6f8a1e6a3a58d4db7bb63798ac656400bf4227e94c166a1e8c159ef01012f1a8ea0a3c9a2aa836e5e00e1e5c6e65c0d34f72f7465419caa2ddeb0
|
||||
DIST arduino-1.6.7.tar.gz 77578555 SHA256 ae524c19c3b6fcd00cbf709e693321a13e694316fea5642a54b02d4170213586 SHA512 2f76aedad6f8bb9c3e17c4b02ecf816f5fe628b4856a6bd9a3d7c0fe3d9999a39df60a4794d99b1e62c3ae41695350f27d148a0925f7f59b8071359d33be2b00 WHIRLPOOL c5bdf2a67ff37fc8bc4a002ea24f003d97f6ae04632d906fc4d37d2af64c113f698e26720c73b40afc39925f03206a41a4ec0faba0d80756427714102ad47f90
|
||||
DIST arduino-1.6.9.tar.gz 81103494 SHA256 0927e4d6bb24fd297765aaf529fe7b16a7da3223848e7b40cdc9843d4246f98d SHA512 92b3508068e3aae6a88c3a395d0906fb63d2fd8ee20d003173b96f3f0ff6851eddcdb77c6349dfec3ad0ee36976f53432c643f56724490e9187d4af049fd4bf8 WHIRLPOOL 841ebd6e4c23b610f87a5254b888a31bd9b36ea162f52f9301b8cc0af2288cb7cff83f130f7f3a03ca71fdaf471818f2faea99ab3f1c64b233d7d504b7ac0049
|
||||
DIST arduino-1.8.1.tar.gz 86826305 SHA256 cc82bbb2979fbf53dc4775668de7e5eefcb61ab65f46507aa933107ad458d268 SHA512 1ca8c306d2bdee52fbc69ba7b933ac9a3a1154cfa2e5861e75b5eb2ca1cdfa7843b36b36eae68d8d932194be5ea938fbe3c2492b87d81d88d88edd9d0aeb1541 WHIRLPOOL 0ca152bbf1600e0f15ceb11130252fb353f2b7b74c461f8d8725ca9175295bc29a1609c847a1544df4053673b8e01207267c9e9a493fd08dc75cf05614c697b7
|
||||
DIST arduino-1.8.4.tar.gz 48215723 SHA256 aa17ae247091c0bf52e08be2bdf37a151bcda00de1017e097f7ee57274b3636b SHA512 e3bbc404eb842a65cba7e3905183daa83e3712b2926e6beeb443b2b61586852781b92ee3acd52e713cc4c3373cbf4be3849fac4c55513b0cc6936d4553f8935c WHIRLPOOL 455bba5b22b0685441477d09f3d04bff64414d432d0553194a2f9d8518a1509b7c6f9b39225e06b598740d2575d7202d5c7ca96ceaf77b9561496919500fa46f
|
||||
DIST arduino-icons.tar.bz2 58775 SHA256 9086ae27a13cc19e428ed7e6434366752b33a7d066b5620bfdd371709277390e SHA512 b750e79d6117f5df619f2b765dad6e64f0ba4aa3314b0b6e00801577e3ea1f15951ba15efe7a00f5317285a19ac29ac41c78b71342f45cd164c794a42bafcdd9 WHIRLPOOL b53ab3ff2981ca9f6d45311b9f885ca831700a7a49fef4a376cdc489f7cc3a6c39fbb93994b962b6854b0833d7342b951b5c6327422aafce762f92952b7a5876
|
||||
EBUILD arduino-1.6.7.ebuild 3617 SHA256 c078fd90e9d0eed48b0757dc1df7a1d078feef5abfcde907bd42317d1f146d9e SHA512 6f193f84325863969546350d6c10378aeaade1eb6f5207e824c9546ae500da3e93b003d52ef752a8c8e25371ba8838cc32659df0c9ef879a8956762dc24fa9eb WHIRLPOOL d67cc32dea2c31f3ed1dc130ea8a3e1c6d006d40e069c4efa00fdea46c40a00d92ab6c0b5205a03a5386ab6452cf040e03bc2e23dec0dfae302b2aeefd34b0ad
|
||||
EBUILD arduino-1.6.9.ebuild 4424 SHA256 415aeee47ac97eeab8a63450c88edaf18c24e40fcd24b00bb8b636eafb846346 SHA512 b7e8ffe93351b851415bde8d1c6c14df4b1a44944fd44837a09bc9c7acd969141286c0aaac0ab79c726e2ac85cdf4f84ef75db1d9b62bb366bbf4d6ca4190dfd WHIRLPOOL 1a4166c5400062930fe54ee725d17f5173d03bd053b750643ec8750143caf37624e35b041a15605a1d0b38487abb187bea19b29b7fbce64c714eacbf5a0ec219
|
||||
EBUILD arduino-1.8.1.ebuild 4336 SHA256 495a8f4bc548029c8dc9b85be15860d96db3588cd0a0d5b9784efad409e9e5e8 SHA512 9381e6cd272fb9fe4e1db91fd351d7420dc980b27b0451f415614f546d9ce8d4b267cd074bd2930383ef442cf75988671062010b58da90efd5f01f4b4f6c130e WHIRLPOOL 1fc492137bb3fb5ed834827d48e6229ef09967081bd33ee19da3e2cd4d951b1c69384e525f2bae8df4338424b6d20dcf65ff094796464f4c8fcd45a14f2efc25
|
||||
EBUILD arduino-1.8.4.ebuild 6285 SHA256 1b1f51a501f12d2b709cff9d2827556cfccc063f81afd24b79eca9d9372eb64e SHA512 8ab79bb0de2a2898d3bbd2b6ea2e1e65a22e03bc122eb101bf7dc26567806a29eea81ede793fecd779a65a071d50628fb9c674e52d122203c31325bb12bb31c8 WHIRLPOOL 643bb2aa829d236fd8576021215e885b079f760367f24e72088f0b0aab04afb2310e6985289c9b5f7a1ba356bdc4a76d13fd7730c8f2ac8d3d046b4bc016d7da
|
||||
@@ -1,127 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
JAVA_PKG_IUSE="doc examples"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="http://arduino.cc/ https://github.com/arduino/Arduino"
|
||||
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
mirror://gentoo/arduino-icons.tar.bz2"
|
||||
LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
RESTRICT="strip binchecks"
|
||||
IUSE=""
|
||||
|
||||
COMMONDEP="
|
||||
dev-java/jna:0
|
||||
>dev-java/rxtx-2.1:2
|
||||
dev-util/astyle"
|
||||
|
||||
RDEPEND="${COMMONDEP}
|
||||
dev-embedded/avrdude
|
||||
dev-embedded/uisp
|
||||
sys-devel/crossdev
|
||||
>=virtual/jre-1.8"
|
||||
|
||||
DEPEND="${COMMONDEP}
|
||||
>=virtual/jdk-1.8"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="jna,rxtx-2"
|
||||
EANT_EXTRA_ARGS="-Dversion=${PV}"
|
||||
EANT_BUILD_TARGET="build"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
# cd ../"${S}"
|
||||
mv Arduino-${PV} arduino-${PV}
|
||||
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Remove the libraries to ensure the system
|
||||
# libraries are used
|
||||
# rm app/lib/* || die
|
||||
rm -rf app/src/processing/app/macosx || die
|
||||
# Patch build/build.xml - remove local jar files
|
||||
# for rxtx and ecj (use system wide versions)
|
||||
epatch "${FILESDIR}"/${P}-build.xml.patch
|
||||
|
||||
# Patch launcher script to include rxtx class/ld paths
|
||||
epatch "${FILESDIR}"/${P}-script.patch
|
||||
|
||||
# Some OS X ThinkDifferent stuff from processing library
|
||||
epatch "${FILESDIR}"/${P}-Do-Not-ThinkDifferent.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -f arduino-core/build.xml
|
||||
EANT_GENTOO_CLASSPATH_EXTRA="../arduino-core/arduino-core.jar"
|
||||
eant -f app/build.xml
|
||||
eant "${EANT_EXTRA_ARGS}" -f build/build.xml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/build/linux/work || die
|
||||
# java-pkg_dojar lib/arduino-core.jar lib/pde.jar
|
||||
java-pkg_dojar lib/*.jar
|
||||
java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --main processing.app.Base
|
||||
|
||||
# This doesn't seem to be optional, it just hangs when starting without
|
||||
# examples in correct place
|
||||
#if use examples; then
|
||||
#java-pkg_doexamples examples
|
||||
#docompress -x /usr/share/doc/${P}/examples/
|
||||
#fi
|
||||
|
||||
if use doc; then
|
||||
dodoc revisions.txt "${S}"/readme.txt
|
||||
dohtml -r reference
|
||||
java-pkg_dojavadoc "${S}"/build/javadoc/everything
|
||||
fi
|
||||
|
||||
insinto "/usr/share/${PN}/"
|
||||
doins -r dist examples hardware libraries
|
||||
fowners -R root:uucp "/usr/share/${PN}/hardware"
|
||||
|
||||
exeinto "/usr/share/${PN}/"
|
||||
doexe arduino-builder
|
||||
|
||||
insinto "/usr/share/${PN}/lib"
|
||||
doins -r lib/*.txt lib/theme lib/*.png lib/*.conf lib/*.key
|
||||
|
||||
# For TeensyDuino
|
||||
dosym /usr/bin/arduino "/usr/share/${PN}/arduino"
|
||||
|
||||
# use system avrdude
|
||||
# patching class files is too hard
|
||||
dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude"
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr/etc/"
|
||||
dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avr/etc/avrdude.conf"
|
||||
|
||||
dosym /usr/lib64/libastyle.so "/usr/share/${PN}/lib/libastylej.so"
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr/bin/"
|
||||
dosym /usr/bin/avr-g++ "/usr/share/${PN}/hardware/tools/avr/bin/avr-g++"
|
||||
dosym /usr/bin/avr-gcc "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcc"
|
||||
dosym /usr/bin/avr-ar "/usr/share/${PN}/hardware/tools/avr/bin/avr-ar"
|
||||
dosym /usr/bin/avr-objcopy "/usr/share/${PN}/hardware/tools/avr/bin/avr-objcopy"
|
||||
dosym /usr/bin/avr-size "/usr/share/${PN}/hardware/tools/avr/bin/avr-size"
|
||||
|
||||
# install menu and icons
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
for sz in 16 24 32 48 128 256; do
|
||||
newicon -s $sz \
|
||||
"${WORKDIR}/${PN}-icons/debian_icons_${sz}x${sz}_apps_${PN}.png" \
|
||||
"${PN}.png"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[ ! -x /usr/bin/avr-g++ ] && ewarn "Missing avr-g++; you need to crossdev -s4 avr"
|
||||
}
|
||||
@@ -1,147 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
JAVA_PKG_IUSE="doc +examples"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="http://arduino.cc/ https://github.com/arduino/Arduino"
|
||||
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
mirror://gentoo/arduino-icons.tar.bz2"
|
||||
LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
RESTRICT="strip binchecks"
|
||||
IUSE=""
|
||||
|
||||
COMMONDEP="
|
||||
dev-embedded/listserialportsc
|
||||
dev-java/jna:0
|
||||
>dev-java/rxtx-2.1:2
|
||||
dev-util/astyle"
|
||||
|
||||
RDEPEND="${COMMONDEP}
|
||||
dev-embedded/avrdude
|
||||
dev-embedded/uisp
|
||||
sys-devel/crossdev
|
||||
>=virtual/jre-1.8"
|
||||
|
||||
DEPEND="${COMMONDEP}
|
||||
>=virtual/jdk-1.8"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="jna,rxtx-2"
|
||||
EANT_EXTRA_ARGS="-Dversion=${PV}"
|
||||
EANT_BUILD_TARGET="build"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
# cd ../"${S}"
|
||||
mv Arduino-${PV} arduino-${PV}
|
||||
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Remove the libraries to ensure the system
|
||||
# libraries are used
|
||||
# rm app/lib/* || die
|
||||
rm -rf app/src/processing/app/macosx || die
|
||||
# Patch build/build.xml - remove local jar files
|
||||
# for rxtx and ecj (use system wide versions)
|
||||
epatch "${FILESDIR}"/${P}-build.xml.patch
|
||||
|
||||
# Patch launcher script to include rxtx class/ld paths
|
||||
epatch "${FILESDIR}"/${P}-script.patch
|
||||
|
||||
# Some OS X ThinkDifferent stuff from processing library
|
||||
epatch "${FILESDIR}"/${P}-Do-Not-ThinkDifferent.patch
|
||||
|
||||
# Patch platform.txt for compiler paths
|
||||
epatch "${FILESDIR}"/${P}-platform.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -f arduino-core/build.xml
|
||||
EANT_GENTOO_CLASSPATH_EXTRA="../arduino-core/arduino-core.jar"
|
||||
eant -f app/build.xml
|
||||
eant "${EANT_EXTRA_ARGS}" -f build/build.xml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/build/linux/work || die
|
||||
# java-pkg_dojar lib/arduino-core.jar lib/pde.jar
|
||||
java-pkg_dojar lib/*.jar
|
||||
java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --main processing.app.Base
|
||||
|
||||
# This doesn't seem to be optional, it just hangs when starting without
|
||||
# examples in correct place
|
||||
#if use examples; then
|
||||
#java-pkg_doexamples examples
|
||||
#docompress -x /usr/share/doc/${P}/examples/
|
||||
#fi
|
||||
|
||||
if use doc; then
|
||||
dodoc revisions.txt "${S}"/readme.txt
|
||||
dohtml -r reference
|
||||
java-pkg_dojavadoc "${S}"/build/javadoc/everything
|
||||
fi
|
||||
|
||||
insinto "/usr/share/${PN}/"
|
||||
doins -r dist examples hardware libraries
|
||||
insinto "/usr/share/${PN}/hardware"
|
||||
doins "${FILESDIR}/platform-${PV}/platform.txt"
|
||||
fowners -R root:uucp "/usr/share/${PN}/hardware"
|
||||
|
||||
exeinto "/usr/share/${PN}/"
|
||||
doexe arduino-builder
|
||||
|
||||
insinto "/usr/share/${PN}/lib"
|
||||
doins -r lib/*.txt lib/theme lib/*.png lib/*.conf lib/*.key
|
||||
|
||||
# For TeensyDuino
|
||||
dosym /usr/bin/arduino "/usr/share/${PN}/arduino"
|
||||
|
||||
# use system avrdude
|
||||
# patching class files is too hard
|
||||
dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude"
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr/etc/"
|
||||
dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avr/etc/avrdude.conf"
|
||||
|
||||
dosym /usr/$(get_libdir)/libastyle.so "/usr/share/${PN}/lib/libastylej.so"
|
||||
dosym /usr/$(get_libdir)/liblistSerialsj.so "/usr/share/${PN}/lib/liblistSerialsj.so"
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr/bin/"
|
||||
dosym /usr/bin/avr-g++ "/usr/share/${PN}/hardware/tools/avr/bin/avr-g++"
|
||||
dosym /usr/bin/avr-gcc "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcc"
|
||||
dosym /usr/bin/avr-ar "/usr/share/${PN}/hardware/tools/avr/bin/avr-ar"
|
||||
dosym /usr/bin/avr-objcopy "/usr/share/${PN}/hardware/tools/avr/bin/avr-objcopy"
|
||||
dosym /usr/bin/avr-size "/usr/share/${PN}/hardware/tools/avr/bin/avr-size"
|
||||
|
||||
if [ -x /usr/bin/avr-ld ]; then
|
||||
BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' )
|
||||
dosym /usr/lib/binutils/avr/${BU_VER}/ldscripts "/usr/avr/lib/ldscripts"
|
||||
fi
|
||||
|
||||
# install menu and icons
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
for sz in 16 24 32 48 128 256; do
|
||||
newicon -s $sz \
|
||||
"${WORKDIR}/${PN}-icons/debian_icons_${sz}x${sz}_apps_${PN}.png" \
|
||||
"${PN}.png"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ ! -x /usr/bin/avr-g++ ]; then
|
||||
ewarn "Install avr crosscompiler using:"
|
||||
ewarn " USE=\"-openmp -hardened -sanitize -vtv\" \\"
|
||||
ewarn " crossdev -s4 --ex-gdb -v -S --target avr"
|
||||
echo
|
||||
ewarn "Afterwards, create a symlink for ldscripts:"
|
||||
ewarn " BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' ) \\"
|
||||
ewarn " ln -s /usr/lib/binutils/avr/\$BU_VER/ldscripts /usr/avr/lib/ldscripts"
|
||||
fi
|
||||
}
|
||||
@@ -1,145 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
JAVA_PKG_IUSE="doc +examples"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="http://arduino.cc/ https://github.com/arduino/Arduino"
|
||||
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
mirror://gentoo/arduino-icons.tar.bz2"
|
||||
LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
RESTRICT="strip binchecks"
|
||||
IUSE=""
|
||||
|
||||
COMMONDEP="
|
||||
dev-embedded/listserialportsc
|
||||
dev-java/jna:0
|
||||
>dev-java/rxtx-2.1:2
|
||||
dev-util/astyle"
|
||||
|
||||
RDEPEND="${COMMONDEP}
|
||||
dev-embedded/avrdude
|
||||
dev-embedded/uisp
|
||||
sys-devel/crossdev
|
||||
>=virtual/jre-1.8"
|
||||
|
||||
DEPEND="${COMMONDEP}
|
||||
>=virtual/jdk-1.8"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="jna,rxtx-2"
|
||||
EANT_EXTRA_ARGS="-Dversion=${PV}"
|
||||
EANT_BUILD_TARGET="build"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
# cd ../"${S}"
|
||||
mv Arduino-${PV} arduino-${PV}
|
||||
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Remove the libraries to ensure the system
|
||||
# libraries are used
|
||||
# rm app/lib/* || die
|
||||
rm -rf app/src/processing/app/macosx || die
|
||||
# Patch build/build.xml - remove local jar files
|
||||
# for rxtx and ecj (use system wide versions)
|
||||
# epatch "${FILESDIR}"/${P}-build.xml.patch
|
||||
|
||||
# Patch launcher script to include rxtx class/ld paths
|
||||
# epatch "${FILESDIR}"/${P}-script.patch
|
||||
|
||||
# Some OS X ThinkDifferent stuff from processing library
|
||||
epatch "${FILESDIR}"/${P}-Do-Not-ThinkDifferent.patch
|
||||
|
||||
# Patch platform.txt for compiler paths
|
||||
# epatch "${FILESDIR}"/${P}-platform.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -f arduino-core/build.xml
|
||||
EANT_GENTOO_CLASSPATH_EXTRA="../arduino-core/arduino-core.jar"
|
||||
eant -f app/build.xml
|
||||
eant "${EANT_EXTRA_ARGS}" -f build/build.xml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/build/linux/work || die
|
||||
# java-pkg_dojar lib/arduino-core.jar lib/pde.jar
|
||||
java-pkg_dojar lib/*.jar
|
||||
java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --main processing.app.Base
|
||||
|
||||
# This doesn't seem to be optional, it just hangs when starting without
|
||||
# examples in correct place
|
||||
#if use examples; then
|
||||
#java-pkg_doexamples examples
|
||||
#docompress -x /usr/share/doc/${P}/examples/
|
||||
#fi
|
||||
|
||||
if use doc; then
|
||||
dodoc revisions.txt "${S}"/readme.txt
|
||||
dohtml -r reference
|
||||
java-pkg_dojavadoc "${S}"/build/javadoc/everything
|
||||
fi
|
||||
|
||||
insinto "/usr/share/${PN}/"
|
||||
doins -r examples hardware libraries
|
||||
fowners -R root:uucp "/usr/share/${PN}/hardware"
|
||||
|
||||
exeinto "/usr/share/${PN}/"
|
||||
doexe arduino-builder
|
||||
|
||||
insinto "/usr/share/${PN}/lib"
|
||||
doins -r lib/*.txt lib/theme lib/*.png lib/*.conf lib/*.key
|
||||
|
||||
# For TeensyDuino
|
||||
dosym /usr/bin/arduino "/usr/share/${PN}/arduino"
|
||||
|
||||
# use system avrdude
|
||||
# patching class files is too hard
|
||||
dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude"
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr/etc/"
|
||||
dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avr/etc/avrdude.conf"
|
||||
|
||||
dosym /usr/$(get_libdir)/libastyle.so "/usr/share/${PN}/lib/libastylej.so"
|
||||
dosym /usr/$(get_libdir)/liblistSerialsj.so "/usr/share/${PN}/lib/liblistSerialsj.so"
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr/bin/"
|
||||
dosym /usr/bin/avr-g++ "/usr/share/${PN}/hardware/tools/avr/bin/avr-g++"
|
||||
dosym /usr/bin/avr-gcc "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcc"
|
||||
dosym /usr/bin/avr-ar "/usr/share/${PN}/hardware/tools/avr/bin/avr-ar"
|
||||
dosym /usr/bin/avr-objcopy "/usr/share/${PN}/hardware/tools/avr/bin/avr-objcopy"
|
||||
dosym /usr/bin/avr-size "/usr/share/${PN}/hardware/tools/avr/bin/avr-size"
|
||||
|
||||
if [ -x /usr/bin/avr-ld ]; then
|
||||
BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' )
|
||||
dosym /usr/lib/binutils/avr/${BU_VER}/ldscripts "/usr/avr/lib/ldscripts"
|
||||
fi
|
||||
|
||||
# install menu and icons
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
for sz in 16 24 32 48 128 256; do
|
||||
newicon -s $sz \
|
||||
"${WORKDIR}/${PN}-icons/debian_icons_${sz}x${sz}_apps_${PN}.png" \
|
||||
"${PN}.png"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ ! -x /usr/bin/avr-g++ ]; then
|
||||
ewarn "Install avr crosscompiler using:"
|
||||
ewarn " USE=\"-openmp -hardened -sanitize -vtv\" \\"
|
||||
ewarn " crossdev -s4 --ex-gdb -v -S --target avr"
|
||||
echo
|
||||
ewarn "Afterwards, create a symlink for ldscripts:"
|
||||
ewarn " BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' ) \\"
|
||||
ewarn " ln -s /usr/lib/binutils/avr/\$BU_VER/ldscripts /usr/avr/lib/ldscripts"
|
||||
fi
|
||||
}
|
||||
@@ -1,170 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
JAVA_PKG_IUSE="doc +examples"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="http://arduino.cc/ https://github.com/arduino/Arduino"
|
||||
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
mirror://gentoo/arduino-icons.tar.bz2"
|
||||
LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
RESTRICT="strip binchecks"
|
||||
IUSE=""
|
||||
|
||||
COMMONDEP="
|
||||
dev-embedded/listserialportsc
|
||||
dev-java/jna:0
|
||||
>dev-java/rxtx-2.1:2
|
||||
dev-util/astyle"
|
||||
|
||||
RDEPEND="${COMMONDEP}
|
||||
dev-embedded/avrdude
|
||||
dev-embedded/uisp
|
||||
sys-devel/crossdev
|
||||
>=virtual/jre-1.8"
|
||||
|
||||
DEPEND="${COMMONDEP}
|
||||
>=virtual/jdk-1.8"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="jna,rxtx-2"
|
||||
EANT_EXTRA_ARGS="-Dversion=${PV}"
|
||||
EANT_BUILD_TARGET="build"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
# cd ../"${S}"
|
||||
mv Arduino-${PV} arduino-${PV}
|
||||
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Remove the libraries to ensure the system
|
||||
# libraries are used
|
||||
# rm app/lib/* || die
|
||||
rm -rf app/src/processing/app/macosx || die
|
||||
# Patch build/build.xml - remove local jar files
|
||||
# for rxtx and ecj (use system wide versions)
|
||||
# epatch "${FILESDIR}"/${P}-build.xml.patch
|
||||
|
||||
# Patch launcher script to include rxtx class/ld paths
|
||||
# epatch "${FILESDIR}"/${P}-script.patch
|
||||
|
||||
# Some OS X ThinkDifferent stuff from processing library
|
||||
epatch "${FILESDIR}"/${P}-Do-Not-ThinkDifferent.patch
|
||||
|
||||
# Patch platform.txt for compiler paths
|
||||
# epatch "${FILESDIR}"/${P}-platform.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -f arduino-core/build.xml
|
||||
EANT_GENTOO_CLASSPATH_EXTRA="../arduino-core/arduino-core.jar"
|
||||
eant -f app/build.xml
|
||||
eant "${EANT_EXTRA_ARGS}" -f build/build.xml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/build/linux/work || die
|
||||
# java-pkg_dojar lib/arduino-core.jar lib/pde.jar
|
||||
java-pkg_dojar lib/*.jar
|
||||
java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --main processing.app.Base
|
||||
|
||||
# This doesn't seem to be optional, it just hangs when starting without
|
||||
# examples in correct place
|
||||
#if use examples; then
|
||||
#java-pkg_doexamples examples
|
||||
#docompress -x /usr/share/doc/${P}/examples/
|
||||
#fi
|
||||
|
||||
if use doc; then
|
||||
dodoc revisions.txt "${S}"/readme.txt
|
||||
dohtml -r reference
|
||||
java-pkg_dojavadoc "${S}"/build/javadoc/everything
|
||||
fi
|
||||
|
||||
insinto "/usr/share/${PN}/"
|
||||
doins -r examples hardware libraries
|
||||
fowners -R root:uucp "/usr/share/${PN}/hardware"
|
||||
|
||||
exeinto "/usr/share/${PN}/"
|
||||
doexe arduino-builder
|
||||
|
||||
insinto "/usr/share/${PN}/lib"
|
||||
doins -r lib/*.txt lib/theme lib/*.png lib/*.conf lib/*.key
|
||||
|
||||
# For TeensyDuino
|
||||
dosym /usr/bin/arduino "/usr/share/${PN}/arduino"
|
||||
|
||||
# use system avrdude
|
||||
# patching class files is too hard
|
||||
dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude"
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr/etc/"
|
||||
dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avr/etc/avrdude.conf"
|
||||
|
||||
dosym /usr/$(get_libdir)/libastylej.so.3 "/usr/share/${PN}/lib/libastylej.so"
|
||||
dosym /usr/$(get_libdir)/liblistSerialsj.so "/usr/share/${PN}/lib/liblistSerialsj.so"
|
||||
dodir "/usr/share/${PN}/hardware/tools/avr/bin/"
|
||||
dosym /usr/bin/avr-g++ "/usr/share/${PN}/hardware/tools/avr/bin/avr-addr2line"
|
||||
dosym /usr/bin/avr-ar "/usr/share/${PN}/hardware/tools/avr/bin/avr-ar"
|
||||
dosym /usr/bin/avr-as "/usr/share/${PN}/hardware/tools/avr/bin/avr-as"
|
||||
dosym /usr/bin/avr-c++ "/usr/share/${PN}/hardware/tools/avr/bin/avr-c++"
|
||||
dosym /usr/bin/avr-c++filt "/usr/share/${PN}/hardware/tools/avr/bin/avr-c++filt"
|
||||
dosym /usr/bin/avr-g++ "/usr/share/${PN}/hardware/tools/avr/bin/avr-cpp"
|
||||
dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avr/bin/avrdude"
|
||||
dosym /usr/bin/avr-elfedit "/usr/share/${PN}/hardware/tools/avr/bin/avr-elfedit"
|
||||
dosym /usr/bin/avr-g++ "/usr/share/${PN}/hardware/tools/avr/bin/avr-g++"
|
||||
dosym /usr/bin/avr-gcc "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcc"
|
||||
dosym /usr/bin/avr-gcc-ar "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcc-ar"
|
||||
dosym /usr/bin/avr-gcc-nm "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcc-nm"
|
||||
dosym /usr/bin/avr-gcc-ranlib "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcc-ranlib"
|
||||
dosym /usr/bin/avr-gcov "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcov"
|
||||
dosym /usr/bin/avr-gdb "/usr/share/${PN}/hardware/tools/avr/bin/avr-gdb"
|
||||
dosym /usr/bin/avr-gprof "/usr/share/${PN}/hardware/tools/avr/bin/avr-gprof"
|
||||
dosym /usr/bin/avr-ld "/usr/share/${PN}/hardware/tools/avr/bin/avr-ld"
|
||||
dosym /usr/bin/avr-ld.bfd "/usr/share/${PN}/hardware/tools/avr/bin/avr-ld.bfd"
|
||||
dosym /usr/bin/avr-man "/usr/share/${PN}/hardware/tools/avr/bin/avr-man"
|
||||
dosym /usr/bin/avr-nm "/usr/share/${PN}/hardware/tools/avr/bin/avr-nm"
|
||||
dosym /usr/bin/avr-objcopy "/usr/share/${PN}/hardware/tools/avr/bin/avr-objcopy"
|
||||
dosym /usr/bin/avr-objdump "/usr/share/${PN}/hardware/tools/avr/bin/avr-objdump"
|
||||
dosym /usr/bin/avr-ranlib "/usr/share/${PN}/hardware/tools/avr/bin/avr-ranlib"
|
||||
dosym /usr/bin/avr-readelf "/usr/share/${PN}/hardware/tools/avr/bin/avr-readelf"
|
||||
dosym /usr/bin/avr-run "/usr/share/${PN}/hardware/tools/avr/bin/avr-run"
|
||||
dosym /usr/bin/avr-size "/usr/share/${PN}/hardware/tools/avr/bin/avr-size"
|
||||
dosym /usr/bin/avr-strings "/usr/share/${PN}/hardware/tools/avr/bin/avr-strings"
|
||||
dosym /usr/bin/avr-strip "/usr/share/${PN}/hardware/tools/avr/bin/avr-strip"
|
||||
dosym /usr/bin/ctags "/usr/share/${PN}/hardware/tools/avr/bin/ctags"
|
||||
dosym /usr/bin/libusb-config "/usr/share/${PN}/hardware/tools/avr/bin/libusb-config"
|
||||
|
||||
if [ -x /usr/bin/avr-ld ]; then
|
||||
BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' )
|
||||
dosym /usr/lib/binutils/avr/${BU_VER}/ldscripts "/usr/avr/lib/ldscripts"
|
||||
fi
|
||||
|
||||
# install menu and icons
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
for sz in 16 24 32 48 128 256; do
|
||||
newicon -s $sz \
|
||||
"${WORKDIR}/${PN}-icons/debian_icons_${sz}x${sz}_apps_${PN}.png" \
|
||||
"${PN}.png"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ ! -x /usr/bin/avr-g++ ]; then
|
||||
ewarn "Install avr crosscompiler using:"
|
||||
ewarn " USE=\"-openmp -hardened -sanitize -vtv\" \\"
|
||||
ewarn " crossdev -s4 --ex-gdb -v -S --target avr"
|
||||
echo
|
||||
ewarn "Afterwards, create a symlink for ldscripts:"
|
||||
ewarn " BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' ) \\"
|
||||
ewarn " ln -s /usr/lib/binutils/avr/\$BU_VER/ldscripts /usr/avr/lib/ldscripts"
|
||||
fi
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
diff -uNr a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java
|
||||
--- a/app/src/processing/app/Base.java 2015-11-07 16:00:54.614383789 +0100
|
||||
+++ b/app/src/processing/app/Base.java 2015-11-07 16:01:09.486384112 +0100
|
||||
@@ -49,7 +49,6 @@
|
||||
import processing.app.helpers.filefilters.OnlyFilesWithExtension;
|
||||
import processing.app.javax.swing.filechooser.FileNameExtensionFilter;
|
||||
import processing.app.legacy.PApplet;
|
||||
-import processing.app.macosx.ThinkDifferent;
|
||||
import processing.app.packages.LibraryList;
|
||||
import processing.app.packages.UserLibrary;
|
||||
import processing.app.syntax.PdeKeywords;
|
||||
@@ -129,10 +128,6 @@
|
||||
|
||||
splashScreenHelper.splashText(_("Loading configuration..."));
|
||||
|
||||
- if (OSUtils.isMacOS()) {
|
||||
- ThinkDifferent.init();
|
||||
- }
|
||||
-
|
||||
try {
|
||||
guardedMain(args);
|
||||
} catch (Throwable e) {
|
||||
@@ -1,590 +0,0 @@
|
||||
diff -urN arduino-1.6.7.orig/build/build.xml arduino-1.6.7/build/build.xml
|
||||
--- arduino-1.6.7.orig/build/build.xml 2015-12-17 15:36:35.000000000 +0100
|
||||
+++ arduino-1.6.7/build/build.xml 2016-01-15 14:26:19.661246847 +0100
|
||||
@@ -8,35 +8,18 @@
|
||||
<format property="BUILD_DATE" pattern="yyyy/MM/dd hh:mm"/>
|
||||
</tstamp>
|
||||
|
||||
- <!-- Sets properties for macosx/windows/linux depending on current system -->
|
||||
- <condition property="platform" value="macosx-old">
|
||||
- <and>
|
||||
- <os family="mac" />
|
||||
- <matches string="${os.version}" pattern="^10.[56]." />
|
||||
- </and>
|
||||
- </condition>
|
||||
- <condition property="macosx-old"><equals arg1="${platform}" arg2="macosx-old" /></condition>
|
||||
- <fail if="macosx-old" message="MacOSX older than 10.7 are not supported"/>
|
||||
-
|
||||
- <condition property="platform" value="macosx"><os family="mac" /></condition>
|
||||
- <condition property="platform" value="windows"><os family="windows" /></condition>
|
||||
+ <!-- Sets properties for linux depending on current system -->
|
||||
<condition property="platform" value="linux32"><os family="unix" arch="i386" /></condition>
|
||||
<condition property="platform" value="linux64"><os family="unix" arch="amd64" /></condition>
|
||||
|
||||
- <condition property="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
|
||||
- <condition property="windows"><equals arg1="${platform}" arg2="windows" /></condition>
|
||||
<condition property="linux32"><equals arg1="${platform}" arg2="linux32" /></condition>
|
||||
<condition property="linux64"><equals arg1="${platform}" arg2="linux64" /></condition>
|
||||
<condition property="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
|
||||
<condition property="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
||||
|
||||
- <condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
|
||||
- <condition property="staging_folder" value="windows"><equals arg1="${platform}" arg2="windows" /></condition>
|
||||
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
|
||||
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
||||
|
||||
- <condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
|
||||
- <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition>
|
||||
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition>
|
||||
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition>
|
||||
|
||||
@@ -47,7 +30,6 @@
|
||||
<equals arg1="${platform}" arg2="linux64"/>
|
||||
</condition>
|
||||
|
||||
- <condition property="launch4j-download-unpack-target-name" value="launch4j-windows"><os family="windows" /></condition>
|
||||
<property name="launch4j-download-unpack-target-name" value="launch4j-linux"/>
|
||||
|
||||
<property name="MACOSX_BUNDLED_JVM" value="${java.home}/../"/>
|
||||
@@ -268,249 +250,6 @@
|
||||
</target>
|
||||
|
||||
<!-- - - - - - - - -->
|
||||
- <!-- Mac OS X -->
|
||||
- <!-- - - - - - - - -->
|
||||
- <target name="macosx-clean" depends="subprojects-clean" description="Clean Mac OS X build">
|
||||
- <delete dir="macosx/work" />
|
||||
- <delete dir="macosx/working_dir" />
|
||||
- <delete dir="macosx/working.dmg" />
|
||||
- <delete file="macosx/arduino-*.dmg" />
|
||||
- <delete>
|
||||
- <fileset dir="macosx" includes="arduino-*macosx*.zip"/>
|
||||
- </delete>
|
||||
- </target>
|
||||
-
|
||||
- <target name="macosx-checkos" unless="macosx">
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Mac OS X can only be built on Mac OS X.
|
||||
-
|
||||
- Bye.
|
||||
- =======================================================
|
||||
- </echo>
|
||||
- <fail message="wrong platform (${os.name})" />
|
||||
- </target>
|
||||
-
|
||||
- <target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
|
||||
- <fail unless="MACOSX_BUNDLED_JVM" message="MacOSX requires MACOSX_BUNDLED_JVM property set"/>
|
||||
- <mkdir dir="${staging_folder}/work" />
|
||||
-
|
||||
- <antcall target="unzip">
|
||||
- <param name="archive_file" value="${staging_folder}/appbundler-1.0ea-arduino4.jar.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/appbundler-1.0ea-arduino4.jar.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/appbundler-1.0ea-arduino4" />
|
||||
- <param name="dest_folder" value="${staging_folder}/appbundler-1.0ea-arduino4" />
|
||||
- </antcall>
|
||||
-
|
||||
- <taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpath="${staging_folder}/appbundler-1.0ea-arduino4/appbundler-1.0ea-arduino4.jar"/>
|
||||
-
|
||||
- <bundleapp
|
||||
- jvmRequired="1.8"
|
||||
- jrepreferred="true"
|
||||
- outputdirectory="${staging_folder}/work"
|
||||
- name="Arduino"
|
||||
- displayname="Arduino"
|
||||
- executablename="Arduino"
|
||||
- identifier="cc.arduino.Arduino"
|
||||
- shortversion="${version}"
|
||||
- version="${revision}"
|
||||
- signature="Pde1"
|
||||
- icon="macosx/processing.icns"
|
||||
- mainclassname="processing.app.Base"
|
||||
- copyright="Arduino LLC"
|
||||
- applicationCategory="public.app-category.education"
|
||||
- minimumsystemversion="10.7"
|
||||
- highresolutioncapable="true">
|
||||
-
|
||||
- <runtime dir="${MACOSX_BUNDLED_JVM}"/>
|
||||
-
|
||||
- <arch name="x86_64"/>
|
||||
- <arch name="i386"/>
|
||||
-
|
||||
- <classpath refid="runtime.jars"/>
|
||||
-
|
||||
- <option value="-Dapple.awt.application.name=Arduino"/>
|
||||
- <option value="-Dapple.laf.useScreenMenuBar=true"/>
|
||||
- <option value="-Dcom.apple.macos.use-file-dialog-packages=true"/>
|
||||
- <option value="-Dcom.apple.smallTabs=true"/>
|
||||
- <option value="-Dcom.apple.macos.useScreenMenuBar=true"/>
|
||||
- <option value="-DAPP_DIR=$APP_ROOT/Contents/Java"/>
|
||||
- <option value="-Djava.ext.dirs=$JVM_RUNTIME/Contents/Home/lib/ext/:$JVM_RUNTIME/Contents/Home/jre/lib/ext/"/>
|
||||
-
|
||||
- <!--
|
||||
- <option value="-Dapple.awt.showGrowBox=false"/>
|
||||
- <option value="-Dapple.awt.Antialiasing=false"/>
|
||||
- <option value="-Dapple.awt.TextAntialiasing=true"/>
|
||||
- <option value="-Dcom.apple.hwaccel=true"/>
|
||||
- <option value="-Dapple.awt.graphics.UseQuartz=true"/>
|
||||
- -->
|
||||
-
|
||||
- <!--<option value="-Dcom.apple.macos.useScreenMenuBar=true"/>-->
|
||||
-
|
||||
- <!-- Workaround since the icon parameter for bundleapp doesn't work -->
|
||||
- <option value="-Xdock:name=Arduino"/>
|
||||
- <option value="-Dcom.apple.mrj.application.apple.menu.about.name=Arduino"/>
|
||||
- <option value="-Dfile.encoding=UTF-8"/>
|
||||
-
|
||||
- <option value="-Xms128M"/>
|
||||
- <option value="-Xmx512M"/>
|
||||
- <option value="-splash:$APP_ROOT/Contents/Java/lib/splash.png"/>
|
||||
-
|
||||
- <bundledocument extensions="ino,c,cpp,h"
|
||||
- icon="macosx/pde.icns"
|
||||
- name="Arduino Source File"
|
||||
- role="Editor" ispackage="false">
|
||||
- </bundledocument>
|
||||
-
|
||||
- </bundleapp>
|
||||
-
|
||||
- <mkdir dir="${staging_folder}/work/${staging_hardware_folder}" />
|
||||
-
|
||||
- <copy todir="${staging_folder}/work/${staging_hardware_folder}/../">
|
||||
- <fileset dir="shared" includes="lib/**" />
|
||||
- <fileset file="shared/revisions.txt" />
|
||||
- </copy>
|
||||
-
|
||||
- <mkdir dir="${staging_folder}/work" />
|
||||
- <mkdir dir="${staging_folder}/work/${staging_hardware_folder}" />
|
||||
-
|
||||
- <antcall target="macosx-build-avr-toolchain" />
|
||||
-
|
||||
- <antcall target="package-library-index-json-bundle"/>
|
||||
-
|
||||
- <antcall target="assemble">
|
||||
- <param name="target.path" value="${staging_folder}/work/${staging_hardware_folder}/.." />
|
||||
- </antcall>
|
||||
-
|
||||
- <antcall target="unzip">
|
||||
- <param name="archive_file" value="./libastylej-2.05.1.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/libastylej-2.05.1.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/libastylej-2.05.1" />
|
||||
- <param name="dest_folder" value="${staging_folder}" />
|
||||
- </antcall>
|
||||
- <copy file="macosx/libastylej-2.05.1/libastylej.jnilib" todir="macosx/work/${staging_hardware_folder}/../lib/" />
|
||||
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../lib/libastylej.jnilib" />
|
||||
- <copy file="macosx/libastylej-2.05.1/libastylej.jnilib" tofile="macosx/work/${staging_hardware_folder}/../lib/libastylej.dylib" />
|
||||
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../lib/libastylej.dylib" />
|
||||
-
|
||||
- <delete dir="${staging_folder}/arduino-builder-macosx" includeemptydirs="true"/>
|
||||
- <mkdir dir="${staging_folder}/arduino-builder-macosx"/>
|
||||
- <antcall target="untar">
|
||||
- <param name="archive_file" value="./arduino-builder-macosx-${ARDUINO-BUILDER-VERSION}.tar.bz2" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/tools/arduino-builder-macosx-${ARDUINO-BUILDER-VERSION}.tar.bz2" />
|
||||
- <param name="final_folder" value="${staging_folder}/arduino-builder-macosx/arduino-builder" />
|
||||
- <param name="dest_folder" value="${staging_folder}/arduino-builder-macosx" />
|
||||
- </antcall>
|
||||
- <copy file="${staging_folder}/arduino-builder-macosx/arduino-builder" tofile="macosx/work/${staging_hardware_folder}/../arduino-builder" />
|
||||
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../arduino-builder" />
|
||||
- <move file="${staging_folder}/arduino-builder-macosx/tools" tofile="macosx/work/${staging_hardware_folder}/../tools-builder"/>
|
||||
- <copy todir="macosx/work/${staging_hardware_folder}" overwrite="true">
|
||||
- <fileset dir="${staging_folder}/arduino-builder-macosx/hardware" includes="*.txt"/>
|
||||
- </copy>
|
||||
- <delete dir="${staging_folder}/arduino-builder-macosx" includeemptydirs="true"/>
|
||||
-
|
||||
- <antcall target="portable-${portable}">
|
||||
- <param name="parentdir" value="macosx/work/${staging_hardware_folder}/.." />
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <!-- Unzip AVR tools -->
|
||||
- <target name="macosx-build-avr-toolchain" unless="light_bundle">
|
||||
- <antcall target="avr-toolchain-bundle">
|
||||
- <param name="unpack_target" value="untar"/>
|
||||
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-i386-apple-darwin11.tar.bz2"/>
|
||||
- <param name="gcc_version" value="4.8.1-arduino5"/>
|
||||
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-r2-i386-apple-darwin11.tar.bz2"/>
|
||||
- <param name="avrdude_version" value="6.0.1-arduino5"/>
|
||||
- </antcall>
|
||||
-
|
||||
- <chmod perm="+x">
|
||||
- <fileset dir="${staging_folder}/work/${staging_hardware_folder}/tools" includes="**/bin/*"/>
|
||||
- <fileset dir="${staging_folder}/work/${staging_hardware_folder}/tools" includes="**/libexec/gcc/avr/4.8.1/*"/>
|
||||
- </chmod>
|
||||
-
|
||||
- <!-- macosx gatekeeper workaround. See https://github.com/arduino/Arduino/issues/3468 -->
|
||||
- <chmod perm="-x">
|
||||
- <fileset dir="${staging_folder}/work/${staging_hardware_folder}/tools" includes="**/bin/avrdude_bin" />
|
||||
- </chmod>
|
||||
- </target>
|
||||
-
|
||||
- <target name="macosx-run" depends="build,start"/>
|
||||
-
|
||||
- <target name="macosx-start">
|
||||
- <exec executable="macosx/work/Arduino.app/Contents/MacOS/Arduino" spawn="false" failonerror="true"/>
|
||||
- </target>
|
||||
-
|
||||
- <!-- - - - - - - - - - - - - - - - -->
|
||||
- <!-- Sign application for MacOSX. -->
|
||||
- <!-- - - - - - - - - - - - - - - - -->
|
||||
- <target name="macosx-signed-dist" if="macosx" depends="macosx-singed-dist-check, dist"
|
||||
- description="Create a downloadable and signed .zip for the Mac OS X version">
|
||||
- <fail unless="version" message="Please set the property 'version' to correctly sign distribution file" />
|
||||
-
|
||||
- <!-- Remove everything from working folder -->
|
||||
- <delete dir="macosx/work/Arduino.app" />
|
||||
-
|
||||
- <!-- Unzip unsigned app into working dir -->
|
||||
- <exec executable="unzip" dir="macosx/work" failonerror="true">
|
||||
- <arg line="../arduino-${version}-${platform}.zip" />
|
||||
- </exec>
|
||||
-
|
||||
- <!-- Unlock keychain file -->
|
||||
- <exec executable="security" dir="macosx/work" failonerror="true">
|
||||
- <arg line="unlock-keychain -p "${macosx-sign-keychain-pass}" "${macosx-sign-keychain}"" />
|
||||
- </exec>
|
||||
-
|
||||
- <!-- Sign app -->
|
||||
- <exec executable="codesign" dir="macosx/work" failonerror="true">
|
||||
- <arg line="--keychain "${macosx-sign-keychain}" --force -s "${macosx-sign-id}" --deep -v Arduino.app/" />
|
||||
- </exec>
|
||||
-
|
||||
- <!-- Check for successful signing -->
|
||||
- <exec executable="codesign" dir="macosx/work" failonerror="true">
|
||||
- <arg line="-vvvv Arduino.app/" />
|
||||
- </exec>
|
||||
-
|
||||
- <delete file="macosx/arduino-${version}-${platform}.zip" />
|
||||
-
|
||||
- <!-- Create signed zip file -->
|
||||
- <exec executable="zip" dir="macosx/work" failonerror="true">
|
||||
- <arg line="-q -r ../arduino-${full-version}-signed.zip ." />
|
||||
- </exec>
|
||||
-
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Mac OS X built and signed.
|
||||
-
|
||||
- macosx/arduino-${full-version}-signed.zip
|
||||
- =======================================================
|
||||
- </echo>
|
||||
- </target>
|
||||
-
|
||||
- <target name="macosx-singed-dist-check">
|
||||
- <fail unless="macosx-sign-keychain" message="Please set the property 'macosx-sign-keychain' to the correct keychain file" />
|
||||
- <fail unless="macosx-sign-keychain-pass" message="Please set the property 'macosx-sign-keychain-pass' with the password to unlock the keychain" />
|
||||
- <fail unless="macosx-sign-id" message="Please set the property 'macosx-sign-id' to the correct cert identifier" />
|
||||
- </target>
|
||||
-
|
||||
- <!-- - - - - - - - - - - - - - - - - - - -->
|
||||
- <!-- Build distribution file for MacOSX. -->
|
||||
- <!-- - - - - - - - - - - - - - - - - - - -->
|
||||
- <target name="macosx-dist" if="macosx" depends="build" description="Create a downloadable .zip for the Mac OS X version">
|
||||
- <exec executable="zip" dir="macosx/work" failonerror="true">
|
||||
- <arg line="-q -r ../arduino-${full-version}.zip ." />
|
||||
- </exec>
|
||||
-
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Mac OS X was built. Grab the image from
|
||||
-
|
||||
- macosx/arduino-${full-version}.zip
|
||||
- =======================================================
|
||||
- </echo>
|
||||
- </target>
|
||||
-
|
||||
- <!-- - - - - - - - -->
|
||||
<!-- Linux -->
|
||||
<!-- - - - - - - - -->
|
||||
|
||||
@@ -608,14 +347,6 @@
|
||||
</copy>
|
||||
<delete dir="${staging_folder}/arduino-builder-linux32" includeemptydirs="true"/>
|
||||
|
||||
- <antcall target="avr-toolchain-bundle">
|
||||
- <param name="unpack_target" value="untar"/>
|
||||
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-i686-pc-linux-gnu.tar.bz2"/>
|
||||
- <param name="gcc_version" value="4.8.1-arduino5"/>
|
||||
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-i686-pc-linux-gnu.tar.bz2"/>
|
||||
- <param name="avrdude_version" value="6.0.1-arduino5"/>
|
||||
- </antcall>
|
||||
-
|
||||
<antcall target="package-library-index-json-bundle"/>
|
||||
</target>
|
||||
|
||||
@@ -640,14 +371,6 @@
|
||||
</copy>
|
||||
<delete dir="${staging_folder}/arduino-builder-linux64" includeemptydirs="true"/>
|
||||
|
||||
- <antcall target="avr-toolchain-bundle">
|
||||
- <param name="unpack_target" value="untar"/>
|
||||
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-x86_64-pc-linux-gnu.tar.bz2"/>
|
||||
- <param name="gcc_version" value="4.8.1-arduino5"/>
|
||||
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-x86_64-pc-linux-gnu.tar.bz2"/>
|
||||
- <param name="avrdude_version" value="6.0.1-arduino5"/>
|
||||
- </antcall>
|
||||
-
|
||||
<antcall target="package-library-index-json-bundle"/>
|
||||
</target>
|
||||
|
||||
@@ -760,197 +483,6 @@
|
||||
description="Build .tar.xz of linux version" />
|
||||
|
||||
<!-- - - - - - - - -->
|
||||
- <!-- Windows -->
|
||||
- <!-- - - - - - - - -->
|
||||
-
|
||||
- <target name="windows-clean" depends="subprojects-clean"
|
||||
- description="Clean windows version">
|
||||
- <delete dir="windows/work" />
|
||||
- <delete>
|
||||
- <fileset dir="windows" includes="arduino-*windows*.zip"/>
|
||||
- </delete>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-checkos" unless="windows">
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Windows can only be built on windows.
|
||||
-
|
||||
- Bye.
|
||||
- =======================================================
|
||||
- </echo>
|
||||
-
|
||||
- <fail message="wrong platform (${os.name})" />
|
||||
- </target>
|
||||
-
|
||||
- <target name="download-launch4j-windows">
|
||||
- <antcall target="unzip-with-ant-task">
|
||||
- <param name="archive_file" value="windows/launch4j-3.8-win32.zip"/>
|
||||
- <param name="archive_url" value="http://downloads.sourceforge.net/project/launch4j/launch4j-3/3.8/launch4j-3.8-win32.zip"/>
|
||||
- <param name="final_folder" value="windows/launcher/launch4j"/>
|
||||
- <param name="dest_folder" value="windows/launcher/"/>
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <target name="download-launch4j-linux">
|
||||
- <antcall target="untar">
|
||||
- <param name="archive_file" value="windows/launch4j-3.8-linux.tgz"/>
|
||||
- <param name="archive_url" value="http://downloads.sourceforge.net/project/launch4j/launch4j-3/3.8/launch4j-3.8-linux.tgz"/>
|
||||
- <param name="final_folder" value="windows/launcher/launch4j"/>
|
||||
- <param name="dest_folder" value="windows/launcher/"/>
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-build"
|
||||
- depends="revision-check, windows-checkos, subprojects-build"
|
||||
- description="Build windows version">
|
||||
- <mkdir dir="windows/work" />
|
||||
- <mkdir dir="windows/work/${staging_hardware_folder}" />
|
||||
-
|
||||
- <copy todir="windows/work/lib">
|
||||
- <fileset dir="shared" includes="icons/**/*.png"/>
|
||||
- </copy>
|
||||
-
|
||||
- <!-- assemble the pde -->
|
||||
- <mkdir dir="windows/work/lib" />
|
||||
- <copy todir="windows/work/lib" flatten="true">
|
||||
- <fileset refid="runtime.jars" />
|
||||
- </copy>
|
||||
-
|
||||
- <copy todir="windows/work">
|
||||
- <fileset dir="shared" includes="lib/**" />
|
||||
- <fileset file="shared/revisions.txt" />
|
||||
- </copy>
|
||||
-
|
||||
- <fixcrlf file="windows/work/revisions.txt" eol="dos"/>
|
||||
- <fixcrlf file="windows/work/lib/formatter.conf" eol="dos"/>
|
||||
-
|
||||
- <copy todir="windows/work">
|
||||
- <fileset dir="windows/dist" includes="*.dll" />
|
||||
- </copy>
|
||||
-
|
||||
- <copy todir="windows/work">
|
||||
- <fileset dir="windows/dist" includes="drivers/**" />
|
||||
- </copy>
|
||||
-
|
||||
- <antcall target="windows-build-avr-toolchain" />
|
||||
-
|
||||
- <antcall target="unzip">
|
||||
- <param name="archive_file" value="./libastylej-2.05.1.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/libastylej-2.05.1.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/libastylej-2.05.1" />
|
||||
- <param name="dest_folder" value="${staging_folder}" />
|
||||
- </antcall>
|
||||
- <copy file="windows/libastylej-2.05.1/AStylej.dll" todir="windows/work/lib" />
|
||||
- <copy file="windows/msvcp100.dll" todir="windows/work" />
|
||||
- <copy file="windows/msvcr100.dll" todir="windows/work" />
|
||||
-
|
||||
- <!-- Copy listComPort.exe tool -->
|
||||
- <copy todir="windows/work/hardware/tools">
|
||||
- <fileset file="windows/listComPorts.exe" />
|
||||
- </copy>
|
||||
- <chmod perm="755">
|
||||
- <fileset file="windows/work/hardware/tools/listComPorts.exe" />
|
||||
- </chmod>
|
||||
-
|
||||
- <delete dir="${staging_folder}/arduino-builder-windows" includeemptydirs="true"/>
|
||||
- <mkdir dir="${staging_folder}/arduino-builder-windows"/>
|
||||
- <antcall target="unzip-with-ant-task">
|
||||
- <param name="archive_file" value="./arduino-builder-windows-${ARDUINO-BUILDER-VERSION}.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/tools/arduino-builder-windows-${ARDUINO-BUILDER-VERSION}.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/arduino-builder-windows/arduino-builder.exe" />
|
||||
- <param name="dest_folder" value="${staging_folder}/arduino-builder-windows" />
|
||||
- </antcall>
|
||||
- <copy file="${staging_folder}/arduino-builder-windows/arduino-builder.exe" tofile="windows/work/arduino-builder.exe" />
|
||||
- <chmod perm="755" file="windows/work/arduino-builder.exe" />
|
||||
- <move file="${staging_folder}/arduino-builder-windows/tools" tofile="windows/work/tools-builder"/>
|
||||
- <chmod perm="755" file="windows/work/tools-builder/ctags/5.8-arduino5/ctags.exe" />
|
||||
- <copy todir="windows/work/hardware" overwrite="true">
|
||||
- <fileset dir="${staging_folder}/arduino-builder-windows/hardware" includes="*.txt"/>
|
||||
- </copy>
|
||||
- <delete dir="${staging_folder}/arduino-builder-windows" includeemptydirs="true"/>
|
||||
-
|
||||
- <antcall target="assemble">
|
||||
- <param name="target.path" value="windows/work" />
|
||||
- </antcall>
|
||||
-
|
||||
- <delete dir="windows/launcher/launch4j"/>
|
||||
- <antcall target="download-${launch4j-download-unpack-target-name}" />
|
||||
-
|
||||
- <property name="launch4j.dir" value="windows/launcher/launch4j/" />
|
||||
- <taskdef name="launch4j"
|
||||
- classname="net.sf.launch4j.ant.Launch4jTask"
|
||||
- classpath="${launch4j.dir}/launch4j.jar; ${launch4j.dir}/lib/xstream.jar" />
|
||||
-
|
||||
- <copy todir="windows/work">
|
||||
- <fileset dir="windows/launcher"
|
||||
- includes="application.ico, config.xml, config_debug.xml, arduino.l4j.ini"/>
|
||||
- </copy>
|
||||
- <launch4j configFile="windows/work/config.xml" fileVersion="${revision}.0" txtFileVersion="${revision}" productVersion="${revision}.0" txtProductVersion="${revision}"/>
|
||||
- <launch4j configFile="windows/work/config_debug.xml" fileVersion="${revision}.0" txtFileVersion="${revision}" productVersion="${revision}.0" txtProductVersion="${revision}"/>
|
||||
- <delete dir="windows/work" includes="application.ico, config.xml, config_debug.xml" />
|
||||
- <copy file="windows/work/arduino.l4j.ini" tofile="windows/work/arduino_debug.l4j.ini" />
|
||||
-
|
||||
- <!-- cygwin requires html, dll, and exe to have the +x flag -->
|
||||
- <chmod perm="755">
|
||||
- <fileset dir="windows/work" includes="**/*.html, **/*.dll, **/*.exe" />
|
||||
- </chmod>
|
||||
-
|
||||
- <!-- For JVM within JDK, release file is in parent directory -->
|
||||
- <property file="${WINDOWS_BUNDLED_JVM}/release" prefix="windows"/>
|
||||
- <property file="${WINDOWS_BUNDLED_JVM}/../release" prefix="windows"/>
|
||||
-
|
||||
- <fail message="It looks like ${WINDOWS_BUNDLED_JVM} does not contain a Windows JVM">
|
||||
- <condition>
|
||||
- <not>
|
||||
- <equals arg1="${windows.OS_NAME}" arg2=""Windows""/>
|
||||
- </not>
|
||||
- </condition>
|
||||
- </fail>
|
||||
-
|
||||
- <copy todir="${staging_folder}/work/java" includeemptydirs="true" preservelastmodified="true" overwrite="true" failonerror="true">
|
||||
- <fileset dir="${WINDOWS_BUNDLED_JVM}" includes="*/**"/>
|
||||
- </copy>
|
||||
-
|
||||
- <antcall target="portable-${portable}">
|
||||
- <param name="parentdir" value="${staging_folder}/work" />
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-build-avr-toolchain">
|
||||
- <antcall target="avr-toolchain-bundle">
|
||||
- <param name="unpack_target" value="unzip"/>
|
||||
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-i686-mingw32.zip"/>
|
||||
- <param name="gcc_version" value="4.8.1-arduino5"/>
|
||||
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-i686-mingw32.zip"/>
|
||||
- <param name="avrdude_version" value="6.0.1-arduino5"/>
|
||||
- </antcall>
|
||||
-
|
||||
- <antcall target="package-library-index-json-bundle"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-run" depends="build,start"/>
|
||||
-
|
||||
- <target name="windows-start">
|
||||
- <exec executable="windows/work/arduino.exe" dir="windows/work" spawn="false" failonerror="true"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-dist" depends="build" description="Create .zip files of windows version">
|
||||
- <zip destfile="windows/arduino-${full-version}.zip" level="9">
|
||||
- <zipfileset dir="windows/work" prefix="arduino-${version}"/>
|
||||
- </zip>
|
||||
-
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Windows was built. Grab the archive from
|
||||
-
|
||||
- windows/arduino-${full-version}.zip
|
||||
- =======================================================
|
||||
- </echo>
|
||||
- </target>
|
||||
-
|
||||
-
|
||||
- <!-- - - - - - - - -->
|
||||
<!-- Source -->
|
||||
<!-- - - - - - - - -->
|
||||
|
||||
@@ -965,8 +497,6 @@
|
||||
prefix="arduino-${version}"
|
||||
excludes="**/*.tgz,
|
||||
**/*.bz2,
|
||||
- **/build/macosx/,
|
||||
- **/build/windows/,
|
||||
**/work/,
|
||||
**/.git/,
|
||||
**/*.class"
|
||||
@@ -988,35 +518,7 @@
|
||||
<!-- - - - - - - - -->
|
||||
|
||||
<target name="clean" description="Perform a spring cleaning"
|
||||
- depends="linux-clean, windows-clean, macosx-clean, subprojects-clean">
|
||||
- </target>
|
||||
-
|
||||
- <target name="avr-toolchain-bundle" unless="light_bundle">
|
||||
- <!-- Unzip AVR tools -->
|
||||
- <mkdir dir="${staging_folder}/work/${staging_hardware_folder}/tmp/gcc"/>
|
||||
-
|
||||
- <antcall target="${unpack_target}">
|
||||
- <param name="archive_file" value="${staging_folder}/${gcc_archive_file}"/>
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/tools/${gcc_archive_file}"/>
|
||||
- <param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/tmp/gcc/${gcc_version}/"/>
|
||||
- <param name="dest_folder" value="${staging_folder}/work/${staging_hardware_folder}/tmp/gcc/"/>
|
||||
- </antcall>
|
||||
-
|
||||
- <mkdir dir="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude"/>
|
||||
-
|
||||
- <antcall target="${unpack_target}">
|
||||
- <param name="archive_file" value="${staging_folder}/${avrdude_archive_file}"/>
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/tools/${avrdude_archive_file}"/>
|
||||
- <param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/${avrdude_version}"/>
|
||||
- <param name="dest_folder" value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/"/>
|
||||
- </antcall>
|
||||
-
|
||||
- <move file="${staging_folder}/work/${staging_hardware_folder}/tmp/gcc/avr" tofile="${staging_folder}/work/${staging_hardware_folder}/tools/avr"/>
|
||||
- <move file="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/avrdude-6.0.1" tofile="${staging_folder}/work/${staging_hardware_folder}/tools/avr"/>
|
||||
- <antcall target="macosx-fix-bundled-toolchain-missing-symlinks"/>
|
||||
-
|
||||
- <echo append="true" file="${staging_folder}/work/${staging_hardware_folder}/tools/avr/builtin_tools_versions.txt" message="arduino.avrdude=${avrdude_version}${line.separator}"/>
|
||||
- <echo append="true" file="${staging_folder}/work/${staging_hardware_folder}/tools/avr/builtin_tools_versions.txt" message="arduino.avr-gcc=${gcc_version}${line.separator}"/>
|
||||
+ depends="linux-clean, subprojects-clean">
|
||||
</target>
|
||||
|
||||
<target name="package-library-index-json-bundle">
|
||||
@@ -1035,17 +537,6 @@
|
||||
<delete dir="${staging_folder}/work/${staging_hardware_folder}/tmp"/>
|
||||
</target>
|
||||
|
||||
- <target name="macosx-fix-bundled-toolchain-missing-symlinks" if="macosx">
|
||||
- <exec executable="mv" failonerror="true">
|
||||
- <arg value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/avrdude-6.0.1/lib/libusb.dylib"/>
|
||||
- <arg value="${staging_folder}/work/${staging_hardware_folder}/tools/avr/lib/"/>
|
||||
- </exec>
|
||||
- <exec executable="mv" failonerror="true">
|
||||
- <arg value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/avrdude-6.0.1/lib/libusb-1.0.dylib"/>
|
||||
- <arg value="${staging_folder}/work/${staging_hardware_folder}/tools/avr/lib/"/>
|
||||
- </exec>
|
||||
- </target>
|
||||
-
|
||||
<target name="generate-hourly-build-txt" if="hourly">
|
||||
<echo file="${staging_folder}/work/${staging_hardware_folder}/../lib/hourlyBuild.txt">${BUILD_DATE}</echo>
|
||||
</target>
|
||||
@@ -1,17 +0,0 @@
|
||||
diff -uNr a/build/linux/dist/arduino b/build/linux/dist/arduino
|
||||
--- a/build/linux/dist/arduino 2015-11-07 16:21:27.391410539 +0100
|
||||
+++ b/build/linux/dist/arduino 2015-11-07 16:22:19.534411671 +0100
|
||||
@@ -8,11 +8,11 @@
|
||||
"$APPDIR"/lib/*.jar \
|
||||
;
|
||||
do
|
||||
- CLASSPATH="${CLASSPATH}:${LIB}"
|
||||
+ CLASSPATH="${CLASSPATH+$CLASSPATH:}${LIB}"
|
||||
done
|
||||
export CLASSPATH
|
||||
|
||||
-LD_LIBRARY_PATH=$APPDIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
||||
+LD_LIBRARY_PATH="$(java-config -di rxtx-2)${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
|
||||
export LD_LIBRARY_PATH
|
||||
|
||||
export PATH="${APPDIR}/java/bin:${PATH}"
|
||||
@@ -1,22 +0,0 @@
|
||||
diff -uNr a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java
|
||||
--- a/app/src/processing/app/Base.java 2015-11-07 16:00:54.614383789 +0100
|
||||
+++ b/app/src/processing/app/Base.java 2015-11-07 16:01:09.486384112 +0100
|
||||
@@ -49,7 +49,6 @@
|
||||
import processing.app.helpers.filefilters.OnlyFilesWithExtension;
|
||||
import processing.app.javax.swing.filechooser.FileNameExtensionFilter;
|
||||
import processing.app.legacy.PApplet;
|
||||
-import processing.app.macosx.ThinkDifferent;
|
||||
import processing.app.packages.LibraryList;
|
||||
import processing.app.packages.UserLibrary;
|
||||
import processing.app.syntax.PdeKeywords;
|
||||
@@ -129,10 +128,6 @@
|
||||
|
||||
splashScreenHelper.splashText(_("Loading configuration..."));
|
||||
|
||||
- if (OSUtils.isMacOS()) {
|
||||
- ThinkDifferent.init();
|
||||
- }
|
||||
-
|
||||
try {
|
||||
guardedMain(args);
|
||||
} catch (Throwable e) {
|
||||
@@ -1,615 +0,0 @@
|
||||
diff -ur arduino-1.6.9.orig/build/build.xml arduino-1.6.9/build/build.xml
|
||||
--- arduino-1.6.9.orig/build/build.xml 2016-05-10 10:36:07.000000000 +0200
|
||||
+++ arduino-1.6.9/build/build.xml 2016-07-06 09:06:45.863114224 +0200
|
||||
@@ -13,37 +13,20 @@
|
||||
<property name="package_index_url" value="http://downloads.arduino.cc/packages/package_index.json" />
|
||||
|
||||
<!-- Sets properties for macosx/windows/linux depending on current system -->
|
||||
- <condition property="platform" value="macosx-old">
|
||||
- <and>
|
||||
- <os family="mac" />
|
||||
- <matches string="${os.version}" pattern="^10.[56]." />
|
||||
- </and>
|
||||
- </condition>
|
||||
- <condition property="macosx-old"><equals arg1="${platform}" arg2="macosx-old" /></condition>
|
||||
- <fail if="macosx-old" message="MacOSX older than 10.7 are not supported"/>
|
||||
-
|
||||
- <condition property="platform" value="macosx"><os family="mac" /></condition>
|
||||
- <condition property="platform" value="windows"><os family="windows" /></condition>
|
||||
<condition property="platform" value="linux32"><os family="unix" arch="i386" /></condition>
|
||||
<condition property="platform" value="linux64"><os family="unix" arch="amd64" /></condition>
|
||||
<condition property="platform" value="linuxarm"><os family="unix" arch="arm" /></condition>
|
||||
|
||||
- <condition property="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
|
||||
- <condition property="windows"><equals arg1="${platform}" arg2="windows" /></condition>
|
||||
<condition property="linux32"><equals arg1="${platform}" arg2="linux32" /></condition>
|
||||
<condition property="linux64"><equals arg1="${platform}" arg2="linux64" /></condition>
|
||||
<condition property="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
|
||||
<condition property="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
||||
<condition property="linux"><equals arg1="${platform}" arg2="linuxarm" /></condition>
|
||||
|
||||
- <condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
|
||||
- <condition property="staging_folder" value="windows"><equals arg1="${platform}" arg2="windows" /></condition>
|
||||
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
|
||||
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
||||
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linuxarm" /></condition>
|
||||
|
||||
- <condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
|
||||
- <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition>
|
||||
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition>
|
||||
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition>
|
||||
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linuxarm" /></condition>
|
||||
@@ -58,7 +41,6 @@
|
||||
<equals arg1="${platform}" arg2="linux64"/>
|
||||
</condition>
|
||||
|
||||
- <condition property="launch4j-download-unpack-target-name" value="launch4j-windows"><os family="windows" /></condition>
|
||||
<property name="launch4j-download-unpack-target-name" value="launch4j-linux"/>
|
||||
|
||||
<property name="MACOSX_BUNDLED_JVM" value="${java.home}/../"/>
|
||||
@@ -323,258 +305,6 @@
|
||||
</target>
|
||||
|
||||
<!-- - - - - - - - -->
|
||||
- <!-- Mac OS X -->
|
||||
- <!-- - - - - - - - -->
|
||||
- <target name="macosx-clean" depends="subprojects-clean" description="Clean Mac OS X build">
|
||||
- <delete dir="macosx/work" />
|
||||
- <delete dir="macosx/working_dir" />
|
||||
- <delete dir="macosx/working.dmg" />
|
||||
- <delete file="macosx/arduino-*.dmg" />
|
||||
- <delete>
|
||||
- <fileset dir="macosx" includes="arduino-*macosx*.zip"/>
|
||||
- </delete>
|
||||
- </target>
|
||||
-
|
||||
- <target name="macosx-checkos" unless="macosx">
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Mac OS X can only be built on Mac OS X.
|
||||
-
|
||||
- Bye.
|
||||
- =======================================================
|
||||
- </echo>
|
||||
- <fail message="wrong platform (${os.name})" />
|
||||
- </target>
|
||||
-
|
||||
- <target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
|
||||
- <fail unless="MACOSX_BUNDLED_JVM" message="MacOSX requires MACOSX_BUNDLED_JVM property set"/>
|
||||
- <mkdir dir="${staging_folder}/work" />
|
||||
-
|
||||
- <antcall target="unzip">
|
||||
- <param name="archive_file" value="${staging_folder}/appbundler-1.0ea-arduino4.jar.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/appbundler-1.0ea-arduino4.jar.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/appbundler-1.0ea-arduino4" />
|
||||
- <param name="dest_folder" value="${staging_folder}/appbundler-1.0ea-arduino4" />
|
||||
- </antcall>
|
||||
-
|
||||
- <taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpath="${staging_folder}/appbundler-1.0ea-arduino4/appbundler-1.0ea-arduino4.jar"/>
|
||||
-
|
||||
- <bundleapp
|
||||
- jvmRequired="1.8"
|
||||
- jrepreferred="true"
|
||||
- outputdirectory="${staging_folder}/work"
|
||||
- name="Arduino"
|
||||
- displayname="Arduino"
|
||||
- executablename="Arduino"
|
||||
- identifier="cc.arduino.Arduino"
|
||||
- shortversion="${version}"
|
||||
- version="${revision}"
|
||||
- signature="Pde1"
|
||||
- icon="macosx/processing.icns"
|
||||
- mainclassname="processing.app.Base"
|
||||
- copyright="Arduino LLC"
|
||||
- applicationCategory="public.app-category.education"
|
||||
- minimumsystemversion="10.7"
|
||||
- highresolutioncapable="true">
|
||||
-
|
||||
- <runtime dir="${MACOSX_BUNDLED_JVM}"/>
|
||||
-
|
||||
- <arch name="x86_64"/>
|
||||
- <arch name="i386"/>
|
||||
-
|
||||
- <classpath refid="runtime.jars"/>
|
||||
-
|
||||
- <option value="-Dapple.awt.application.name=Arduino"/>
|
||||
- <option value="-Dapple.laf.useScreenMenuBar=true"/>
|
||||
- <option value="-Dcom.apple.macos.use-file-dialog-packages=true"/>
|
||||
- <option value="-Dcom.apple.smallTabs=true"/>
|
||||
- <option value="-Dcom.apple.macos.useScreenMenuBar=true"/>
|
||||
- <option value="-DAPP_DIR=$APP_ROOT/Contents/Java"/>
|
||||
- <option value="-Djava.ext.dirs=$JVM_RUNTIME/Contents/Home/lib/ext/:$JVM_RUNTIME/Contents/Home/jre/lib/ext/"/>
|
||||
-
|
||||
- <!--
|
||||
- <option value="-Dapple.awt.showGrowBox=false"/>
|
||||
- <option value="-Dapple.awt.Antialiasing=false"/>
|
||||
- <option value="-Dapple.awt.TextAntialiasing=true"/>
|
||||
- <option value="-Dcom.apple.hwaccel=true"/>
|
||||
- <option value="-Dapple.awt.graphics.UseQuartz=true"/>
|
||||
- -->
|
||||
-
|
||||
- <!--<option value="-Dcom.apple.macos.useScreenMenuBar=true"/>-->
|
||||
-
|
||||
- <!-- Workaround since the icon parameter for bundleapp doesn't work -->
|
||||
- <option value="-Xdock:name=Arduino"/>
|
||||
- <option value="-Dcom.apple.mrj.application.apple.menu.about.name=Arduino"/>
|
||||
- <option value="-Dfile.encoding=UTF-8"/>
|
||||
-
|
||||
- <option value="-Xms128M"/>
|
||||
- <option value="-Xmx512M"/>
|
||||
- <option value="-splash:$APP_ROOT/Contents/Java/lib/splash.png"/>
|
||||
-
|
||||
- <bundledocument extensions="ino,c,cpp,h"
|
||||
- icon="macosx/pde.icns"
|
||||
- name="Arduino Source File"
|
||||
- role="Editor" ispackage="false">
|
||||
- </bundledocument>
|
||||
-
|
||||
- </bundleapp>
|
||||
-
|
||||
- <mkdir dir="${staging_folder}/work/${staging_hardware_folder}" />
|
||||
-
|
||||
- <copy todir="${staging_folder}/work/${staging_hardware_folder}/../">
|
||||
- <fileset dir="shared" includes="lib/**" />
|
||||
- <fileset file="shared/revisions.txt" />
|
||||
- </copy>
|
||||
-
|
||||
- <mkdir dir="${staging_folder}/work" />
|
||||
- <mkdir dir="${staging_folder}/work/${staging_hardware_folder}" />
|
||||
-
|
||||
- <antcall target="macosx-build-avr-toolchain" />
|
||||
-
|
||||
- <antcall target="package-library-index-json-bundle"/>
|
||||
-
|
||||
- <antcall target="assemble">
|
||||
- <param name="target.path" value="${staging_folder}/work/${staging_hardware_folder}/.." />
|
||||
- </antcall>
|
||||
-
|
||||
- <antcall target="unzip">
|
||||
- <param name="archive_file" value="./libastylej-2.05.1-3.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/libastylej-2.05.1-3.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/libastylej-2.05.1" />
|
||||
- <param name="dest_folder" value="${staging_folder}" />
|
||||
- </antcall>
|
||||
- <copy file="macosx/libastylej-2.05.1/libastylej.jnilib" todir="macosx/work/${staging_hardware_folder}/../lib/" />
|
||||
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../lib/libastylej.jnilib" />
|
||||
- <copy file="macosx/libastylej-2.05.1/libastylej.jnilib" tofile="macosx/work/${staging_hardware_folder}/../lib/libastylej.dylib" />
|
||||
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../lib/libastylej.dylib" />
|
||||
-
|
||||
- <antcall target="unzip">
|
||||
- <param name="archive_file" value="./liblistSerials-${LIBLISTSERIAL-VERSION}.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/liblistSerials/liblistSerials-${LIBLISTSERIAL-VERSION}.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/liblistSerials-${LIBLISTSERIAL-VERSION}" />
|
||||
- <param name="dest_folder" value="${staging_folder}" />
|
||||
- </antcall>
|
||||
- <copy file="macosx/liblistSerials-${LIBLISTSERIAL-VERSION}/osx/liblistSerialsj.dylib" todir="macosx/work/${staging_hardware_folder}/../lib/" />
|
||||
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../lib/liblistSerialsj.dylib" />
|
||||
-
|
||||
- <delete dir="${staging_folder}/arduino-builder-macosx" includeemptydirs="true"/>
|
||||
- <mkdir dir="${staging_folder}/arduino-builder-macosx"/>
|
||||
- <antcall target="untar">
|
||||
- <param name="archive_file" value="./arduino-builder-macosx-${ARDUINO-BUILDER-VERSION}.tar.bz2" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/tools/arduino-builder-macosx-${ARDUINO-BUILDER-VERSION}.tar.bz2" />
|
||||
- <param name="final_folder" value="${staging_folder}/arduino-builder-macosx/arduino-builder" />
|
||||
- <param name="dest_folder" value="${staging_folder}/arduino-builder-macosx" />
|
||||
- </antcall>
|
||||
- <copy file="${staging_folder}/arduino-builder-macosx/arduino-builder" tofile="macosx/work/${staging_hardware_folder}/../arduino-builder" />
|
||||
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../arduino-builder" />
|
||||
- <move file="${staging_folder}/arduino-builder-macosx/tools" tofile="macosx/work/${staging_hardware_folder}/../tools-builder"/>
|
||||
- <copy todir="macosx/work/${staging_hardware_folder}" overwrite="true">
|
||||
- <fileset dir="${staging_folder}/arduino-builder-macosx/hardware" includes="*.txt"/>
|
||||
- </copy>
|
||||
- <delete dir="${staging_folder}/arduino-builder-macosx" includeemptydirs="true"/>
|
||||
-
|
||||
- <antcall target="portable-${portable}">
|
||||
- <param name="parentdir" value="macosx/work/${staging_hardware_folder}/.." />
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <!-- Unzip AVR tools -->
|
||||
- <target name="macosx-build-avr-toolchain" unless="light_bundle">
|
||||
- <antcall target="avr-toolchain-bundle">
|
||||
- <param name="unpack_target" value="untar"/>
|
||||
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-i386-apple-darwin11.tar.bz2"/>
|
||||
- <param name="gcc_version" value="4.8.1-arduino5"/>
|
||||
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-r2-i386-apple-darwin11.tar.bz2"/>
|
||||
- <param name="avrdude_version" value="6.0.1-arduino5"/>
|
||||
- </antcall>
|
||||
-
|
||||
- <chmod perm="+x">
|
||||
- <fileset dir="${staging_folder}/work/${staging_hardware_folder}/tools" includes="**/bin/*"/>
|
||||
- <fileset dir="${staging_folder}/work/${staging_hardware_folder}/tools" includes="**/libexec/gcc/avr/4.8.1/*"/>
|
||||
- </chmod>
|
||||
-
|
||||
- <!-- macosx gatekeeper workaround. See https://github.com/arduino/Arduino/issues/3468 -->
|
||||
- <chmod perm="-x">
|
||||
- <fileset dir="${staging_folder}/work/${staging_hardware_folder}/tools" includes="**/bin/avrdude_bin" />
|
||||
- </chmod>
|
||||
- </target>
|
||||
-
|
||||
- <target name="macosx-run" depends="build,start"/>
|
||||
-
|
||||
- <target name="macosx-start">
|
||||
- <exec executable="macosx/work/Arduino.app/Contents/MacOS/Arduino" spawn="false" failonerror="true"/>
|
||||
- </target>
|
||||
-
|
||||
- <!-- - - - - - - - - - - - - - - - -->
|
||||
- <!-- Sign application for MacOSX. -->
|
||||
- <!-- - - - - - - - - - - - - - - - -->
|
||||
- <target name="macosx-signed-dist" if="macosx" depends="macosx-singed-dist-check, dist"
|
||||
- description="Create a downloadable and signed .zip for the Mac OS X version">
|
||||
- <fail unless="version" message="Please set the property 'version' to correctly sign distribution file" />
|
||||
-
|
||||
- <!-- Remove everything from working folder -->
|
||||
- <delete dir="macosx/work/Arduino.app" />
|
||||
-
|
||||
- <!-- Unzip unsigned app into working dir -->
|
||||
- <exec executable="unzip" dir="macosx/work" failonerror="true">
|
||||
- <arg line="../arduino-${version}-${platform}.zip" />
|
||||
- </exec>
|
||||
-
|
||||
- <!-- Unlock keychain file -->
|
||||
- <exec executable="security" dir="macosx/work" failonerror="true">
|
||||
- <arg line="unlock-keychain -p "${macosx-sign-keychain-pass}" "${macosx-sign-keychain}"" />
|
||||
- </exec>
|
||||
-
|
||||
- <!-- Sign app -->
|
||||
- <exec executable="codesign" dir="macosx/work" failonerror="true">
|
||||
- <arg line="--keychain "${macosx-sign-keychain}" --force -s "${macosx-sign-id}" --deep -v Arduino.app/" />
|
||||
- </exec>
|
||||
-
|
||||
- <!-- Check for successful signing -->
|
||||
- <exec executable="codesign" dir="macosx/work" failonerror="true">
|
||||
- <arg line="-vvvv Arduino.app/" />
|
||||
- </exec>
|
||||
-
|
||||
- <delete file="macosx/arduino-${version}-${platform}.zip" />
|
||||
-
|
||||
- <!-- Create signed zip file -->
|
||||
- <exec executable="zip" dir="macosx/work" failonerror="true">
|
||||
- <arg line="-q -r ../arduino-${full-version}-signed.zip ." />
|
||||
- </exec>
|
||||
-
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Mac OS X built and signed.
|
||||
-
|
||||
- macosx/arduino-${full-version}-signed.zip
|
||||
- =======================================================
|
||||
- </echo>
|
||||
- </target>
|
||||
-
|
||||
- <target name="macosx-singed-dist-check">
|
||||
- <fail unless="macosx-sign-keychain" message="Please set the property 'macosx-sign-keychain' to the correct keychain file" />
|
||||
- <fail unless="macosx-sign-keychain-pass" message="Please set the property 'macosx-sign-keychain-pass' with the password to unlock the keychain" />
|
||||
- <fail unless="macosx-sign-id" message="Please set the property 'macosx-sign-id' to the correct cert identifier" />
|
||||
- </target>
|
||||
-
|
||||
- <!-- - - - - - - - - - - - - - - - - - - -->
|
||||
- <!-- Build distribution file for MacOSX. -->
|
||||
- <!-- - - - - - - - - - - - - - - - - - - -->
|
||||
- <target name="macosx-dist" if="macosx" depends="build" description="Create a downloadable .zip for the Mac OS X version">
|
||||
- <exec executable="zip" dir="macosx/work" failonerror="true">
|
||||
- <arg line="-q -r ../arduino-${full-version}.zip ." />
|
||||
- </exec>
|
||||
-
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Mac OS X was built. Grab the image from
|
||||
-
|
||||
- macosx/arduino-${full-version}.zip
|
||||
- =======================================================
|
||||
- </echo>
|
||||
- </target>
|
||||
-
|
||||
- <!-- - - - - - - - -->
|
||||
<!-- Linux -->
|
||||
<!-- - - - - - - - -->
|
||||
|
||||
@@ -710,14 +440,6 @@
|
||||
</copy>
|
||||
<delete dir="${staging_folder}/arduino-builder-arm" includeemptydirs="true"/>
|
||||
|
||||
- <antcall target="avr-toolchain-bundle">
|
||||
- <param name="unpack_target" value="untar"/>
|
||||
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-armhf-pc-linux-gnu-glibc2.13.tar.bz2"/>
|
||||
- <param name="gcc_version" value="4.8.1-arduino5"/>
|
||||
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-armhf-pc-linux-gnu-glibc2.13.tar.bz2"/>
|
||||
- <param name="avrdude_version" value="6.0.1-arduino5"/>
|
||||
- </antcall>
|
||||
-
|
||||
<antcall target="package-library-index-json-bundle"/>
|
||||
</target>
|
||||
|
||||
@@ -742,14 +464,6 @@
|
||||
</copy>
|
||||
<delete dir="${staging_folder}/arduino-builder-linux32" includeemptydirs="true"/>
|
||||
|
||||
- <antcall target="avr-toolchain-bundle">
|
||||
- <param name="unpack_target" value="untar"/>
|
||||
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-i686-pc-linux-gnu.tar.bz2"/>
|
||||
- <param name="gcc_version" value="4.8.1-arduino5"/>
|
||||
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-i686-pc-linux-gnu.tar.bz2"/>
|
||||
- <param name="avrdude_version" value="6.0.1-arduino5"/>
|
||||
- </antcall>
|
||||
-
|
||||
<antcall target="package-library-index-json-bundle"/>
|
||||
</target>
|
||||
|
||||
@@ -774,14 +488,6 @@
|
||||
</copy>
|
||||
<delete dir="${staging_folder}/arduino-builder-linux64" includeemptydirs="true"/>
|
||||
|
||||
- <antcall target="avr-toolchain-bundle">
|
||||
- <param name="unpack_target" value="untar"/>
|
||||
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-x86_64-pc-linux-gnu.tar.bz2"/>
|
||||
- <param name="gcc_version" value="4.8.1-arduino5"/>
|
||||
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-x86_64-pc-linux-gnu.tar.bz2"/>
|
||||
- <param name="avrdude_version" value="6.0.1-arduino5"/>
|
||||
- </antcall>
|
||||
-
|
||||
<antcall target="package-library-index-json-bundle"/>
|
||||
</target>
|
||||
|
||||
@@ -902,197 +608,6 @@
|
||||
<target name="linuxarm-dist" depends="linux-dist"
|
||||
description="Build .tar.xz of linux armhf version" />
|
||||
|
||||
- <!-- - - - - - - - -->
|
||||
- <!-- Windows -->
|
||||
- <!-- - - - - - - - -->
|
||||
-
|
||||
- <target name="windows-clean" depends="subprojects-clean"
|
||||
- description="Clean windows version">
|
||||
- <delete dir="windows/work" />
|
||||
- <delete>
|
||||
- <fileset dir="windows" includes="arduino-*windows*.zip"/>
|
||||
- </delete>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-checkos" unless="windows">
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Windows can only be built on windows.
|
||||
-
|
||||
- Bye.
|
||||
- =======================================================
|
||||
- </echo>
|
||||
-
|
||||
- <fail message="wrong platform (${os.name})" />
|
||||
- </target>
|
||||
-
|
||||
- <target name="download-launch4j-windows">
|
||||
- <antcall target="unzip-with-ant-task">
|
||||
- <param name="archive_file" value="windows/launch4j-3.8-win32.zip"/>
|
||||
- <param name="archive_url" value="http://downloads.sourceforge.net/project/launch4j/launch4j-3/3.8/launch4j-3.8-win32.zip"/>
|
||||
- <param name="final_folder" value="windows/launcher/launch4j"/>
|
||||
- <param name="dest_folder" value="windows/launcher/"/>
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <target name="download-launch4j-linux">
|
||||
- <antcall target="untar">
|
||||
- <param name="archive_file" value="windows/launch4j-3.8-linux.tgz"/>
|
||||
- <param name="archive_url" value="http://downloads.sourceforge.net/project/launch4j/launch4j-3/3.8/launch4j-3.8-linux.tgz"/>
|
||||
- <param name="final_folder" value="windows/launcher/launch4j"/>
|
||||
- <param name="dest_folder" value="windows/launcher/"/>
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-build"
|
||||
- depends="revision-check, windows-checkos, subprojects-build"
|
||||
- description="Build windows version">
|
||||
- <mkdir dir="windows/work" />
|
||||
- <mkdir dir="windows/work/${staging_hardware_folder}" />
|
||||
-
|
||||
- <copy todir="windows/work/lib">
|
||||
- <fileset dir="shared" includes="icons/**/*.png"/>
|
||||
- </copy>
|
||||
-
|
||||
- <!-- assemble the pde -->
|
||||
- <mkdir dir="windows/work/lib" />
|
||||
- <copy todir="windows/work/lib" flatten="true">
|
||||
- <fileset refid="runtime.jars" />
|
||||
- </copy>
|
||||
-
|
||||
- <copy todir="windows/work">
|
||||
- <fileset dir="shared" includes="lib/**" />
|
||||
- <fileset file="shared/revisions.txt" />
|
||||
- </copy>
|
||||
-
|
||||
- <fixcrlf file="windows/work/revisions.txt" eol="dos"/>
|
||||
- <fixcrlf file="windows/work/lib/formatter.conf" eol="dos"/>
|
||||
-
|
||||
- <copy todir="windows/work">
|
||||
- <fileset dir="windows/dist" includes="*.dll" />
|
||||
- </copy>
|
||||
-
|
||||
- <copy todir="windows/work">
|
||||
- <fileset dir="windows/dist" includes="drivers/**" />
|
||||
- </copy>
|
||||
-
|
||||
- <antcall target="windows-build-avr-toolchain" />
|
||||
-
|
||||
- <antcall target="unzip">
|
||||
- <param name="archive_file" value="./libastylej-2.05.1-3.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/libastylej-2.05.1-3.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/libastylej-2.05.1" />
|
||||
- <param name="dest_folder" value="${staging_folder}" />
|
||||
- </antcall>
|
||||
- <copy file="windows/libastylej-2.05.1/AStylej.dll" todir="windows/work/lib" />
|
||||
- <copy file="windows/msvcp100.dll" todir="windows/work" />
|
||||
- <copy file="windows/msvcr100.dll" todir="windows/work" />
|
||||
-
|
||||
- <antcall target="unzip">
|
||||
- <param name="archive_file" value="./liblistSerials-${LIBLISTSERIAL-VERSION}.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/liblistSerials/liblistSerials-${LIBLISTSERIAL-VERSION}.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/liblistSerials-${LIBLISTSERIAL-VERSION}" />
|
||||
- <param name="dest_folder" value="${staging_folder}" />
|
||||
- </antcall>
|
||||
- <copy file="windows/liblistSerials-${LIBLISTSERIAL-VERSION}/windows/listSerialsj.dll" todir="windows/work/lib/" />
|
||||
- <chmod perm="755" file="windows/work/lib/listSerialsj.dll" />
|
||||
-
|
||||
- <delete dir="${staging_folder}/arduino-builder-windows" includeemptydirs="true"/>
|
||||
- <mkdir dir="${staging_folder}/arduino-builder-windows"/>
|
||||
- <antcall target="unzip-with-ant-task">
|
||||
- <param name="archive_file" value="./arduino-builder-windows-${ARDUINO-BUILDER-VERSION}.zip" />
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/tools/arduino-builder-windows-${ARDUINO-BUILDER-VERSION}.zip" />
|
||||
- <param name="final_folder" value="${staging_folder}/arduino-builder-windows/arduino-builder.exe" />
|
||||
- <param name="dest_folder" value="${staging_folder}/arduino-builder-windows" />
|
||||
- </antcall>
|
||||
- <copy file="${staging_folder}/arduino-builder-windows/arduino-builder.exe" tofile="windows/work/arduino-builder.exe" />
|
||||
- <chmod perm="755" file="windows/work/arduino-builder.exe" />
|
||||
- <move file="${staging_folder}/arduino-builder-windows/tools" tofile="windows/work/tools-builder"/>
|
||||
- <chmod perm="755" file="windows/work/tools-builder/ctags/5.8-arduino10/ctags.exe" />
|
||||
- <copy todir="windows/work/hardware" overwrite="true">
|
||||
- <fileset dir="${staging_folder}/arduino-builder-windows/hardware" includes="*.txt"/>
|
||||
- </copy>
|
||||
- <delete dir="${staging_folder}/arduino-builder-windows" includeemptydirs="true"/>
|
||||
-
|
||||
- <antcall target="assemble">
|
||||
- <param name="target.path" value="windows/work" />
|
||||
- </antcall>
|
||||
-
|
||||
- <delete dir="windows/launcher/launch4j"/>
|
||||
- <antcall target="download-${launch4j-download-unpack-target-name}" />
|
||||
-
|
||||
- <property name="launch4j.dir" value="windows/launcher/launch4j/" />
|
||||
- <taskdef name="launch4j"
|
||||
- classname="net.sf.launch4j.ant.Launch4jTask"
|
||||
- classpath="${launch4j.dir}/launch4j.jar; ${launch4j.dir}/lib/xstream.jar" />
|
||||
-
|
||||
- <copy todir="windows/work">
|
||||
- <fileset dir="windows/launcher"
|
||||
- includes="application.ico, config.xml, config_debug.xml, arduino.l4j.ini"/>
|
||||
- </copy>
|
||||
- <launch4j configFile="windows/work/config.xml" fileVersion="${revision}.0" txtFileVersion="${revision}" productVersion="${revision}.0" txtProductVersion="${revision}"/>
|
||||
- <launch4j configFile="windows/work/config_debug.xml" fileVersion="${revision}.0" txtFileVersion="${revision}" productVersion="${revision}.0" txtProductVersion="${revision}"/>
|
||||
- <delete dir="windows/work" includes="application.ico, config.xml, config_debug.xml" />
|
||||
- <copy file="windows/work/arduino.l4j.ini" tofile="windows/work/arduino_debug.l4j.ini" />
|
||||
-
|
||||
- <!-- cygwin requires html, dll, and exe to have the +x flag -->
|
||||
- <chmod perm="755">
|
||||
- <fileset dir="windows/work" includes="**/*.html, **/*.dll, **/*.exe" />
|
||||
- </chmod>
|
||||
-
|
||||
- <!-- For JVM within JDK, release file is in parent directory -->
|
||||
- <property file="${WINDOWS_BUNDLED_JVM}/release" prefix="windows"/>
|
||||
- <property file="${WINDOWS_BUNDLED_JVM}/../release" prefix="windows"/>
|
||||
-
|
||||
- <fail message="It looks like ${WINDOWS_BUNDLED_JVM} does not contain a Windows JVM">
|
||||
- <condition>
|
||||
- <not>
|
||||
- <equals arg1="${windows.OS_NAME}" arg2=""Windows""/>
|
||||
- </not>
|
||||
- </condition>
|
||||
- </fail>
|
||||
-
|
||||
- <copy todir="${staging_folder}/work/java" includeemptydirs="true" preservelastmodified="true" overwrite="true" failonerror="true">
|
||||
- <fileset dir="${WINDOWS_BUNDLED_JVM}" includes="*/**"/>
|
||||
- </copy>
|
||||
-
|
||||
- <antcall target="portable-${portable}">
|
||||
- <param name="parentdir" value="${staging_folder}/work" />
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-build-avr-toolchain">
|
||||
- <antcall target="avr-toolchain-bundle">
|
||||
- <param name="unpack_target" value="unzip"/>
|
||||
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-i686-mingw32.zip"/>
|
||||
- <param name="gcc_version" value="4.8.1-arduino5"/>
|
||||
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-i686-mingw32.zip"/>
|
||||
- <param name="avrdude_version" value="6.0.1-arduino5"/>
|
||||
- </antcall>
|
||||
-
|
||||
- <antcall target="package-library-index-json-bundle"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-run" depends="build,start"/>
|
||||
-
|
||||
- <target name="windows-start">
|
||||
- <exec executable="windows/work/arduino.exe" dir="windows/work" spawn="false" failonerror="true"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="windows-dist" depends="build" description="Create .zip files of windows version">
|
||||
- <zip destfile="windows/arduino-${full-version}.zip" level="9">
|
||||
- <zipfileset dir="windows/work" prefix="arduino-${version}"/>
|
||||
- </zip>
|
||||
-
|
||||
- <echo>
|
||||
- =======================================================
|
||||
- Arduino for Windows was built. Grab the archive from
|
||||
-
|
||||
- windows/arduino-${full-version}.zip
|
||||
- =======================================================
|
||||
- </echo>
|
||||
- </target>
|
||||
-
|
||||
|
||||
<!-- - - - - - - - -->
|
||||
<!-- Source -->
|
||||
@@ -1109,8 +624,6 @@
|
||||
prefix="arduino-${version}"
|
||||
excludes="**/*.tgz,
|
||||
**/*.bz2,
|
||||
- **/build/macosx/,
|
||||
- **/build/windows/,
|
||||
**/work/,
|
||||
**/.git/,
|
||||
**/*.class"
|
||||
@@ -1132,35 +645,7 @@
|
||||
<!-- - - - - - - - -->
|
||||
|
||||
<target name="clean" description="Perform a spring cleaning"
|
||||
- depends="linux-clean, windows-clean, macosx-clean, subprojects-clean">
|
||||
- </target>
|
||||
-
|
||||
- <target name="avr-toolchain-bundle" unless="light_bundle">
|
||||
- <!-- Unzip AVR tools -->
|
||||
- <mkdir dir="${staging_folder}/work/${staging_hardware_folder}/tmp/gcc"/>
|
||||
-
|
||||
- <antcall target="${unpack_target}">
|
||||
- <param name="archive_file" value="${staging_folder}/${gcc_archive_file}"/>
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/tools/${gcc_archive_file}"/>
|
||||
- <param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/tmp/gcc/${gcc_version}/"/>
|
||||
- <param name="dest_folder" value="${staging_folder}/work/${staging_hardware_folder}/tmp/gcc/"/>
|
||||
- </antcall>
|
||||
-
|
||||
- <mkdir dir="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude"/>
|
||||
-
|
||||
- <antcall target="${unpack_target}">
|
||||
- <param name="archive_file" value="${staging_folder}/${avrdude_archive_file}"/>
|
||||
- <param name="archive_url" value="http://downloads.arduino.cc/tools/${avrdude_archive_file}"/>
|
||||
- <param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/${avrdude_version}"/>
|
||||
- <param name="dest_folder" value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/"/>
|
||||
- </antcall>
|
||||
-
|
||||
- <move file="${staging_folder}/work/${staging_hardware_folder}/tmp/gcc/avr" tofile="${staging_folder}/work/${staging_hardware_folder}/tools/avr"/>
|
||||
- <move file="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/avrdude-6.0.1" tofile="${staging_folder}/work/${staging_hardware_folder}/tools/avr"/>
|
||||
- <antcall target="macosx-fix-bundled-toolchain-missing-symlinks"/>
|
||||
-
|
||||
- <echo append="true" file="${staging_folder}/work/${staging_hardware_folder}/tools/avr/builtin_tools_versions.txt" message="arduino.avrdude=${avrdude_version}${line.separator}"/>
|
||||
- <echo append="true" file="${staging_folder}/work/${staging_hardware_folder}/tools/avr/builtin_tools_versions.txt" message="arduino.avr-gcc=${gcc_version}${line.separator}"/>
|
||||
+ depends="linux-clean, subprojects-clean">
|
||||
</target>
|
||||
|
||||
<target name="package-library-index-json-bundle">
|
||||
@@ -1187,17 +672,6 @@
|
||||
<delete dir="${staging_folder}/work/${staging_hardware_folder}/tmp"/>
|
||||
</target>
|
||||
|
||||
- <target name="macosx-fix-bundled-toolchain-missing-symlinks" if="macosx">
|
||||
- <exec executable="mv" failonerror="true">
|
||||
- <arg value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/avrdude-6.0.1/lib/libusb.dylib"/>
|
||||
- <arg value="${staging_folder}/work/${staging_hardware_folder}/tools/avr/lib/"/>
|
||||
- </exec>
|
||||
- <exec executable="mv" failonerror="true">
|
||||
- <arg value="${staging_folder}/work/${staging_hardware_folder}/tmp/avrdude/avrdude-6.0.1/lib/libusb-1.0.dylib"/>
|
||||
- <arg value="${staging_folder}/work/${staging_hardware_folder}/tools/avr/lib/"/>
|
||||
- </exec>
|
||||
- </target>
|
||||
-
|
||||
<target name="generate-hourly-build-txt" if="hourly">
|
||||
<echo file="${staging_folder}/work/${staging_hardware_folder}/../lib/hourlyBuild.txt">${BUILD_DATE}</echo>
|
||||
</target>
|
||||
@@ -1,24 +0,0 @@
|
||||
diff -ur arduino-1.6.9.orig/hardware/arduino/avr/platform.txt arduino-1.6.9/hardware/arduino/avr/platform.txt
|
||||
--- arduino-1.6.9.orig/hardware/arduino/avr/platform.txt 2016-05-10 10:36:07.000000000 +0200
|
||||
+++ arduino-1.6.9/hardware/arduino/avr/platform.txt 2016-07-06 17:11:45.587888237 +0200
|
||||
@@ -18,7 +18,7 @@
|
||||
compiler.warning_flags.all=-Wall -Wextra
|
||||
|
||||
# Default "compiler.path" is correct, change only if you want to override the initial value
|
||||
-compiler.path={runtime.tools.avr-gcc.path}/bin/
|
||||
+compiler.path=/usr/bin/
|
||||
compiler.c.cmd=avr-gcc
|
||||
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD
|
||||
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
|
||||
@@ -91,9 +91,9 @@
|
||||
# AVR Uploader/Programmers tools
|
||||
# ------------------------------
|
||||
|
||||
-tools.avrdude.path={runtime.tools.avrdude.path}
|
||||
+tools.avrdude.path=/usr
|
||||
tools.avrdude.cmd.path={path}/bin/avrdude
|
||||
-tools.avrdude.config.path={path}/etc/avrdude.conf
|
||||
+tools.avrdude.config.path=/etc/avrdude.conf
|
||||
|
||||
tools.avrdude.upload.params.verbose=-v
|
||||
tools.avrdude.upload.params.quiet=-q -q
|
||||
@@ -1,17 +0,0 @@
|
||||
diff -uNr a/build/linux/dist/arduino b/build/linux/dist/arduino
|
||||
--- a/build/linux/dist/arduino 2015-11-07 16:21:27.391410539 +0100
|
||||
+++ b/build/linux/dist/arduino 2015-11-07 16:22:19.534411671 +0100
|
||||
@@ -8,11 +8,11 @@
|
||||
"$APPDIR"/lib/*.jar \
|
||||
;
|
||||
do
|
||||
- CLASSPATH="${CLASSPATH}:${LIB}"
|
||||
+ CLASSPATH="${CLASSPATH+$CLASSPATH:}${LIB}"
|
||||
done
|
||||
export CLASSPATH
|
||||
|
||||
-LD_LIBRARY_PATH=$APPDIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
||||
+LD_LIBRARY_PATH="$(java-config -di rxtx-2)${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
|
||||
export LD_LIBRARY_PATH
|
||||
|
||||
export PATH="${APPDIR}/java/bin:${PATH}"
|
||||
@@ -1,22 +0,0 @@
|
||||
diff -uNr a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java
|
||||
--- a/app/src/processing/app/Base.java 2015-11-07 16:00:54.614383789 +0100
|
||||
+++ b/app/src/processing/app/Base.java 2015-11-07 16:01:09.486384112 +0100
|
||||
@@ -49,7 +49,6 @@
|
||||
import processing.app.helpers.filefilters.OnlyFilesWithExtension;
|
||||
import processing.app.javax.swing.filechooser.FileNameExtensionFilter;
|
||||
import processing.app.legacy.PApplet;
|
||||
-import processing.app.macosx.ThinkDifferent;
|
||||
import processing.app.packages.LibraryList;
|
||||
import processing.app.packages.UserLibrary;
|
||||
import processing.app.syntax.PdeKeywords;
|
||||
@@ -129,10 +128,6 @@
|
||||
|
||||
splashScreenHelper.splashText(_("Loading configuration..."));
|
||||
|
||||
- if (OSUtils.isMacOS()) {
|
||||
- ThinkDifferent.init();
|
||||
- }
|
||||
-
|
||||
try {
|
||||
guardedMain(args);
|
||||
} catch (Throwable e) {
|
||||
@@ -1,22 +0,0 @@
|
||||
diff -uNr a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java
|
||||
--- a/app/src/processing/app/Base.java 2015-11-07 16:00:54.614383789 +0100
|
||||
+++ b/app/src/processing/app/Base.java 2015-11-07 16:01:09.486384112 +0100
|
||||
@@ -49,7 +49,6 @@
|
||||
import processing.app.helpers.filefilters.OnlyFilesWithExtension;
|
||||
import processing.app.javax.swing.filechooser.FileNameExtensionFilter;
|
||||
import processing.app.legacy.PApplet;
|
||||
-import processing.app.macosx.ThinkDifferent;
|
||||
import processing.app.packages.LibraryList;
|
||||
import processing.app.packages.UserLibrary;
|
||||
import processing.app.syntax.PdeKeywords;
|
||||
@@ -129,10 +128,6 @@
|
||||
|
||||
splashScreenHelper.splashText(_("Loading configuration..."));
|
||||
|
||||
- if (OSUtils.isMacOS()) {
|
||||
- ThinkDifferent.init();
|
||||
- }
|
||||
-
|
||||
try {
|
||||
guardedMain(args);
|
||||
} catch (Throwable e) {
|
||||
@@ -1,11 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=Arduino
|
||||
GenericName=Arduino IDE
|
||||
Comment=Open-source electronics prototyping platform
|
||||
Exec=arduino
|
||||
Icon=arduino
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Development;IDE;Java
|
||||
StartupNotify=false
|
||||
@@ -1,16 +0,0 @@
|
||||
# ctags
|
||||
# ------------------------------
|
||||
tools.ctags.path=/usr/bin
|
||||
tools.ctags.cmd.path={path}/ctags
|
||||
tools.ctags.pattern="{cmd.path}" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}"
|
||||
|
||||
# additional entries
|
||||
tools.avrdude.path=/usr/bin
|
||||
|
||||
preproc.includes.flags=-w -x c++ -M -MG -MP
|
||||
#preproc.includes.compatibility_flags={build.mbed_api_include} {build.nRF51822_api_include} {build.ble_api_include} {compiler.libsam.c.flags} {compiler.arm.cmsis.path} {build.variant_system_include}
|
||||
#recipe.preproc.includes="{compiler.path}{compiler.cpp.cmd}" {preproc.includes.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {preproc.includes.compatibility_flags} {includes} "{source_file}"
|
||||
|
||||
preproc.macros.flags=-w -x c++ -E -CC
|
||||
#preproc.macros.compatibility_flags={build.mbed_api_include} {build.nRF51822_api_include} {build.ble_api_include} {compiler.libsam.c.flags} {compiler.arm.cmsis.path} {build.variant_system_include}
|
||||
#recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpreprocessor.flags} {compiler.cpp.flags} {preproc.macros.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {preproc.macros.compatibility_flags} {includes} "{source_file}" -o "{preprocessed_file_path}"
|
||||
@@ -1,3 +1,3 @@
|
||||
DIST gpsim-0.31.0.tar.gz 3454179 BLAKE2B 449f891c7a765ce06da87c8de1a8adc0d7e15c9af175fc2988d604660108c14cc816247358a71bbb55813c5144f6973c01d3c9c27c44f2a45820b85cedc97d2c SHA512 a6af7e9170cee11c35f0e4731d39876e563edd8ca9cbd0f4b3017f224e5317b4c8bcc8aa4468102fa5c11157f487b6c7354e3aba8778842ed0b5be9bbb9ef45f
|
||||
EBUILD gpsim-0.31.0.ebuild 955 BLAKE2B 7ae00791751b242603a8ef1ad765c546c0bbd77c7b8abc1a4b49df856095a7aac7b24aecb574482a226ce3905cda27ef2d2c7e20caa2c778d8f16ff3775eb58f SHA512 ca2483aa7c51f84bb7fb0bc1a5ec717eee4dfaba7dd3b9c12b35bedd1415210cb87a2b9d15bfa0327b50ca9b3cb8180f1848c8b01a7b32dbabae20fb9c932c0b
|
||||
EBUILD gpsim-0.31.0.ebuild 959 BLAKE2B e0d45355c6da332fcd1104aabad620fca0fdabded0798289ab38998847d6a248c5550e0b8e4c6fa074adfde19c931ea1c0dbf3b9352e52bc8dfc1cd248b6357c SHA512 ba35b163e0eebbca2114cb66fc984fb14226d37435c54e24652f110cd4b59ae0d539d02107a234ca3ba037b053d67420aec0e69097700c8ed9ddf2853e7d8de6
|
||||
EBUILD gpsim-9999.ebuild 1549 BLAKE2B 79f20565a2ec36e43d3d8580882fec5d7d87a5d8a6f65d9e80334cf9d83baf12e38996f73204826305e56c281dea827d877d28bb455c7591cce14ab1163f842c SHA512 268dc1964ac8cf2ba122b8bae0716a8778185f50be64957fa505b3a776f631f6b1a082ef93bf978a2e803322a4b480c1da026f1425213afce2b3c90e2b215974
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
# Copyright 1999-2020 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit ltprune
|
||||
EAPI=7
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit subversion
|
||||
@@ -41,5 +40,5 @@ src_configure() {
|
||||
src_install() {
|
||||
default
|
||||
use doc && dodoc doc/gpsim.pdf
|
||||
prune_libtool_files
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
DIST 1.0.7.tar.gz 2577 SHA256 8b1ce11c21e42f0d6db5dee31fa23d5180b77cc8fd9aea359657a17cccf91eab SHA512 8a398ec1ea9ae41181415198d13a546e00fe157c49a04f32547df1bed67de1df0d6abc966b8ff88d9b60a0ba65b0dce483e2dbcdc81e08b05318de9fe7059f95 WHIRLPOOL 88b41ed32b6f56b5c183798dfa04b613ba27ce459df6567734112b73223417019415c4cce6e6e045c671b2e2e07d9186b808a99efbf95ba7a8e24707bc509362
|
||||
EBUILD listserialportsc-1.0.7.ebuild 1139 SHA256 f8f5f7a40d0e19f7e2a554631b86f897b15aca64b59abdb44bc703bb43b2b5eb SHA512 3352dae38db5b9447c66fbaf17734b127df269c0894cfd22873b39869bc225538efeb6233c2d655b06e5d1644ca9c108350e3652827c695b7a68bab398dc3571 WHIRLPOOL 4e4e50a7b6578824845eac864634d1ccd87e82e682b44c8b60c7fdfa8c0798931d8b7b8a9d9fc369bab12d3a923eb5bf96f0cd0a57aa02a7a63763809589f0c0
|
||||
MISC metadata.xml 208 SHA256 91ad1c1aa6da2120f2a36c6b31826659af1eb7ebc30b62bb537795296c80ad68 SHA512 b53b2af56213a10dea345cecbacd72494d9a84e794274b2739837893a2fdec5ff71d66d8000375c440762734fff7f83a415ff6c44aa759b5bda7be21e983b79e WHIRLPOOL 32934c3a294d9bbbcadec4b77a0968f9f9cad6df554a58cd85d916d05d5a80311d1bbe3945b81662982fb9a7dccf64b8f0170c35bc716e1bb4d0219b8b0d16ed
|
||||
@@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils java-pkg-2 toolchain-funcs
|
||||
|
||||
DESCRIPTION="List serial ports with vid/pid/iserial fields"
|
||||
HOMEPAGE="https://github.com/arduino/listSerialPortsC"
|
||||
SRC_URI="https://github.com/arduino/listSerialPortsC/archive/${PV}.tar.gz"
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND=""
|
||||
|
||||
DEPEND=">=dev-libs/libserialport-0.1.1"
|
||||
|
||||
S="${WORKDIR}/listSerialPortsC-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
# Unbundle
|
||||
rm -rf libserialport win32_jni
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
CC=$(tc-getCC)
|
||||
${CC} -Wall -O2 ${CPPFLAGS} ${CFLAGS} -c -o main.o main.c
|
||||
${CC} ${CFLAGS} ${LDFLAGS} main.o -lserialport -o listSerialC
|
||||
|
||||
${CC} \
|
||||
-Wall -O2 ${CPPFLAGS} ${CFLAGS} -fPIC \
|
||||
-I$(java-config-2 -o)/include \
|
||||
-I$(java-config-2 -o)/include/linux \
|
||||
-o jnilib.o -c jnilib.c
|
||||
|
||||
${CC} \
|
||||
${CFLAGS} ${LDFLAGS} \
|
||||
-shared -Wl,-soname,liblistSerialsj.so \
|
||||
jnilib.o -lserialport -o liblistSerialsj.so.${PV}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin listSerialC
|
||||
dolib liblistSerialsj.so.${PV}
|
||||
dosym liblistSerialsj.so.${PV} /usr/$(get_libdir)/liblistSerialsj.so
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>junk4me46806@yahoo.com</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -1,6 +0,0 @@
|
||||
AUX pk2cmd-add-share-dir-for-dev-file-1.20.patch 668 SHA256 c59040ad6b5d840f3e55990fa58230610aac9164196ea0b3255fc1f4616c882d SHA512 f586c7eed0eac0d68e495d582c85c802c98ac8c84f7f21b00616edbbace74b877d21fd43334e5accfd02413d4a6d9d9811241feec1eaeae3a7647c745206d638 WHIRLPOOL a22205d9a8b1c95f9fc341e5f3db41df47ec0787ea44267c19c58f7ad47f3beda411d1fcdf003380b41960a34a0c83cd03fb6bd62cb4bca05669484d6e48257b
|
||||
AUX pk2cmd-add-share-dir-for-dev-file.patch 1268 SHA256 58ee54b394a19c20e075e357b9d00b0e3609e758a2fed8488664bf189ae1be2b SHA512 d05ee8ca723ab02b156c7b544f54480fe9ff18611442a5a41d7ac755f651e6550d8f3fd8f38d348b89dd77112ede403b5ad4372cb75bd0e09315d74347bd1565 WHIRLPOOL b2f854934d9c36241f1a92e6e56b56ac01fc77faeec0b2fd9b33475ebfb5289d967ee587811ceb8bb73f13d501ffacb4a995180174ab87578bc8fdd40693429b
|
||||
DIST pk2cmdv1.20LinuxMacSource.tar.gz 223175 SHA256 903027de5036eda3a648decece4acfcefe91e754ef0d4eacba0e5ba8b18857fa SHA512 72675eb287c1410c82ff49b4922afd28a8017b4e8517d10e77e0f0b111630f90881f778d754a47c97453f45412e965e281435d495fc70a047bd7357dd64f7b24 WHIRLPOOL f4f36412d4e653a20866bcbe9ec25b94e8ff4e75c1ae2e4944a42682832c9b64b683248bc559e73b976902906d2959492867f055291588cf66d9b83838174c75
|
||||
EBUILD pk2cmd-1.20.ebuild 1212 SHA256 1d033af2b7093c2973c329e2fb0e1e4ce090385cc78348fc8b6f0dfb6444fe9f SHA512 16960cfdb7887768008d8dc61d04b66cdf402852bee35542c93dab6d7b43c41dae4d4c8b80549d26b9801bb8df430bf982106219072efda4c20fb08919386358 WHIRLPOOL 6a7b16f1d3bbdc475b13f35a9c3816477f07c97ce4ad931154605019e1cfc19af4b8bf4ade978cadf6e82a9dec46a149ce889fed9bcc050d4a6cef6e677e481b
|
||||
EBUILD pk2cmd-9999.ebuild 1423 SHA256 d1589444ec2029265abf73dbacb751c73f44a567d94788d0622363f313fdb743 SHA512 6207ae1b9792cce8950e6ae4be85991f22c8728b98b526b6c408096b8327ecff644f0cb2fd59cc02f2e15a54dbe441dc6394756cfb91d6f713adaa8322d52dda WHIRLPOOL 1e7d32194b0e1570780f015ddae8d143bca3b2b8b12fa76379fbc41661ca8c9d9f0d12d40fafaae400102e7302feb15ea65a11fe1b2a50abc9ead143b15dd5b0
|
||||
MISC metadata.xml 367 SHA256 b7b67f2fc54adf03857f1024784295bcedebc293481d25a7bfeaa073d2419cfb SHA512 09c3d20eb53c9927bb7489b3522f4daa0809a379760d950a33eed0b9ddfccfe1eae4324e5c674c4731779ccb45a95627575941f2d22387efcda406947256cb22 WHIRLPOOL 6620a00bfdc65555675fd5a7099d57c6ee2d9e1115e5b852865de97befd1759305373964af2afdabb0142a540d1472143a9e3aa287c016994e643775b20898a6
|
||||
@@ -1,16 +0,0 @@
|
||||
--- cmd_app.cpp.old 2009-01-31 21:23:30.000000000 +0100
|
||||
+++ cmd_app.cpp 2009-01-31 21:25:48.000000000 +0100
|
||||
@@ -88,7 +88,12 @@
|
||||
_tsearchenv_s("PK2DeviceFile.dat", "PATH", tempString);
|
||||
if (_tcslen(tempString) < 17)
|
||||
{
|
||||
- _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||
+ // Try /usr/share/pk2 first
|
||||
+ _tcsncpy_s(tempString, "/usr/share/pk2/PK2DeviceFile.dat", 32);
|
||||
+
|
||||
+ if(access(tempString, 0))
|
||||
+ // Well, that didn't work, default to the current directory
|
||||
+ _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||
}
|
||||
}
|
||||
if (!PicFuncs.ReadDeviceFile(tempString))
|
||||
@@ -1,25 +0,0 @@
|
||||
--- pk2cmd-9999/pk2cmd/cmd_app.cpp.orig 2017-05-17 15:46:14.454813532 +0200
|
||||
+++ pk2cmd-9999/pk2cmd/cmd_app.cpp 2017-05-17 15:46:59.444690407 +0200
|
||||
@@ -8,7 +8,7 @@
|
||||
// Software must have this entire copyright and disclaimer notice prominently
|
||||
// posted in a location where end users will see it (e.g., installation program,
|
||||
// program headers, About Box, etc.). To the maximum extent permitted by law,
|
||||
-// this Software is distributed “AS IS” and WITHOUT ANY WARRANTY INCLUDING BUT
|
||||
+// this Software is distributed ?AS IS? and WITHOUT ANY WARRANTY INCLUDING BUT
|
||||
// NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR
|
||||
// PARTICULAR PURPOSE, or NON-INFRINGEMENT. IN NO EVENT WILL MICROCHIP OR ITS
|
||||
// LICENSORS BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL
|
||||
@@ -88,7 +88,12 @@
|
||||
_tsearchenv_s("PK2DeviceFile.dat", "PATH", tempString);
|
||||
if (_tcslen(tempString) < 17)
|
||||
{
|
||||
- _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||
+ // Try /usr/share/pk2 first
|
||||
+ _tcsncpy_s(tempString, "/usr/share/pk2/PK2DeviceFile.dat", 32);
|
||||
+
|
||||
+ if(access(tempString, 0))
|
||||
+ // Well, that didn't work, default to the current directory
|
||||
+ _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||
}
|
||||
}
|
||||
if (!PicFuncs.ReadDeviceFile(tempString))
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>embedded@gentoo.org</email>
|
||||
<name>Embedded Gentoo</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
This application allows the use of the PICKit2 PIC programming device.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="An application for working with the Microchip PicKit2 PIC programmer"
|
||||
HOMEPAGE="http://www.microchip.com/pickit2"
|
||||
SRC_URI="http://ww1.microchip.com/downloads/en/DeviceDoc/${PN}v${PV}LinuxMacSource.tar.gz"
|
||||
|
||||
LICENSE="MicroChip-PK2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ppc ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="virtual/libusb:0"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${PN}v${PV}LinuxMacSource
|
||||
|
||||
src_prepare() {
|
||||
# Patch adds /usr/share/pk2 to the default search for the device file
|
||||
epatch "${FILESDIR}/${PN}-add-share-dir-for-dev-file-${PV}.patch"
|
||||
|
||||
# Fix up the Makefile
|
||||
sed \
|
||||
-e 's:#TARGET=linux:TARGET=linux:' \
|
||||
-e 's:DBG=-O2:DBG=:' \
|
||||
-e 's:^CFLAGS=:CFLAGS+=:' \
|
||||
-e 's:^LDFLAGS=:LDFLAGS+=:' \
|
||||
-e 's:^LIBUSB=/usr/local:LIBUSB=/usr:' \
|
||||
-e "s:^CC=g++::" \
|
||||
-i Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCXX)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Copy the device files and PicKit2 OS
|
||||
insinto "/usr/share/pk2"
|
||||
doins PK2DeviceFile.dat PK2V023200.hex
|
||||
# Install the program
|
||||
dobin pk2cmd
|
||||
# Install the documentation
|
||||
dodoc ReadmeForPK2CMDLinux2-6.txt usbhotplug.txt
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="An application for working with the Microchip PicKit2 PIC programmer"
|
||||
HOMEPAGE="http://www.microchip.com/pickit2"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="
|
||||
git://github.com/psmay/${PN}.git
|
||||
https://github.com/psmay/${PN}.git
|
||||
"
|
||||
inherit git-r3
|
||||
S=${WORKDIR}/${P}/${PN}
|
||||
else
|
||||
SRC_URI="http://ww1.microchip.com/downloads/en/DeviceDoc/${PN}v${PV}LinuxMacSource.tar.gz"
|
||||
KEYWORDS="~amd64 ppc ppc64 ~x86"
|
||||
S=${WORKDIR}/${PN}v${PV}LinuxMacSource
|
||||
fi
|
||||
|
||||
LICENSE="MicroChip-PK2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="virtual/libusb:0"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# Patch adds /usr/share/pk2 to the default search for the device file
|
||||
epatch "${FILESDIR}/${PN}-add-share-dir-for-dev-file.patch"
|
||||
|
||||
# Fix up the Makefile
|
||||
sed \
|
||||
-e 's:#TARGET=linux:TARGET=linux:' \
|
||||
-e 's:DBG=-O2:DBG=:' \
|
||||
-e 's:^CFLAGS=:CFLAGS+=:' \
|
||||
-e 's:^LDFLAGS=:LDFLAGS+=:' \
|
||||
-e 's:^LIBUSB=/usr/local:LIBUSB=/usr:' \
|
||||
-e "s:^CC=g++::" \
|
||||
-i Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCXX)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Copy the device files and PicKit2 OS
|
||||
insinto "/usr/share/pk2"
|
||||
doins PK2DeviceFile.dat PK2V023200.hex
|
||||
# Install the program
|
||||
dobin pk2cmd
|
||||
# Install the documentation
|
||||
dodoc ReadmeForPK2CMDLinux2-6.txt usbhotplug.txt
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="An open source ecosystem for IoT development. Cross-platform build system and library manager. Continuous and IDE integration. Arduino, ESP8266 and ARM mbed compatible"
|
||||
HOMEPAGE="http://platformio.org/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}
|
||||
>=dev-python/semantic_version-2.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyserial-3[${PYTHON_USEDEP}]
|
||||
<dev-python/pyserial-4[${PYTHON_USEDEP}]
|
||||
>=dev-python/lockfile-0.9.1[${PYTHON_USEDEP}]
|
||||
<dev-python/lockfile-0.13[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
>=dev-python/click-5[${PYTHON_USEDEP}]
|
||||
<dev-python/click-6[${PYTHON_USEDEP}]
|
||||
<dev-python/bottle-0.13[${PYTHON_USEDEP}]
|
||||
<dev-python/arrow-1[${PYTHON_USEDEP}]"
|
||||
Reference in New Issue
Block a user