summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/arduino')
-rw-r--r--dev-embedded/arduino/ChangeLog34
-rw-r--r--dev-embedded/arduino/Manifest11
-rw-r--r--dev-embedded/arduino/arduino-1.0.6.ebuild104
-rw-r--r--dev-embedded/arduino/arduino-1.5.8.ebuild112
-rw-r--r--dev-embedded/arduino/files/arduino-1.0.1-build.xml.patch38
-rw-r--r--dev-embedded/arduino/files/arduino-1.0.3-script.patch20
-rw-r--r--dev-embedded/arduino/files/arduino-1.5.8-build.xml.patch135
-rw-r--r--dev-embedded/arduino/files/arduino.desktop10
-rw-r--r--dev-embedded/arduino/metadata.xml7
9 files changed, 471 insertions, 0 deletions
diff --git a/dev-embedded/arduino/ChangeLog b/dev-embedded/arduino/ChangeLog
new file mode 100644
index 0000000..e175ee0
--- /dev/null
+++ b/dev-embedded/arduino/ChangeLog
@@ -0,0 +1,34 @@
+ 13 Nov 2014; <hash@gentoo.org> arduino-1.5.8.ebuild,
+ files/arduino-1.5.8-build.xml.patch:
+ works for me(tm) dev-embedded/arduino-1.5.8
+
+ 13 Nov 2014; <hash@gentoo.org> arduino-1.5.8.ebuild:
+ arduino-1.5.8.ebuild
+
+ 13 Nov 2014; <hash@gentoo.org> arduino-1.5.8.ebuild:
+ plus more tweak arduino-1.5.8.ebuild
+
+ 13 Nov 2014; <hash@gentoo.org> arduino-1.5.8.ebuild:
+ more tweak arduino-1.5.8.ebuild
+
+ 13 Nov 2014; <hash@gentoo.org> arduino-1.5.8.ebuild:
+ tweak arduino-1.5.8.ebuild
+
+*arduino-1.5.8 (13 Nov 2014)
+
+ 13 Nov 2014; <hash@gentoo.org> +arduino-1.5.8.ebuild,
+ +files/arduino-1.5.8-build.xml.patch:
+ add masked arduino-1.5.8.ebuild
+
+ 29 Sep 2014; <hash@gentoo.org> arduino-1.0.6.ebuild:
+ typo
+
+ 29 Sep 2014; <hash@gentoo.org> arduino-1.0.6.ebuild:
+ fix dodoc arduino 1.0.6
+
+*arduino-1.0.6 (28 Sep 2014)
+
+ 28 Sep 2014; <hash@gentoo.org> +arduino-1.0.6.ebuild,
+ +files/arduino-1.0.1-build.xml.patch, +files/arduino-1.0.3-script.patch,
+ +files/arduino.desktop, +metadata.xml:
+ add arduino IDE
diff --git a/dev-embedded/arduino/Manifest b/dev-embedded/arduino/Manifest
new file mode 100644
index 0000000..2884fca
--- /dev/null
+++ b/dev-embedded/arduino/Manifest
@@ -0,0 +1,11 @@
+AUX arduino-1.0.1-build.xml.patch 1732 SHA256 4637f8843a9abcafc7bfd95c247636248c8223419751159d5b323f6851de47b8 SHA512 a5317a131449f08fa272cd7d3bf477eedc69f354b771297bc20623277e79a2c1349299c14fba52689f015c71d6a19733fb8ee24de820e59c1aa2b3e2d7f2af42 WHIRLPOOL 5f598424c212c4e6bdd3126bb71867cf8e73c1b4fe5cb336507197ca77e138d4cf655f5fd55ced4f778a028558b761a4fca05a077b3a3b6f6d7624ada92f2b70
+AUX arduino-1.0.3-script.patch 608 SHA256 1b77300bce911b5b697df0804c18b805f9ca52178451983336514aefa34ea53b SHA512 073f2adfc9066879a409a064599d9972ecf0110990a20d778d631fa24c35854831872a0ee220d80cfe996b9e6fa91ef00281a40c466b510a5ce635c59c84103a WHIRLPOOL e7953e567209c408b370c1d1771f38cac8ed875b9074f893c444481f5b6e2ad681516941a5152f0aa878c2678aac3e743c2c79d02e5aac994b29197d9996c2b4
+AUX arduino-1.5.8-build.xml.patch 6049 SHA256 51bb1625de53f9a6bd846d63cfb5698c8f06b94603e85868b21030d52db61f89 SHA512 29c6ce0862d247c9f32b3606528d9ffff735d135d8ce1c43336ad96cf08159dd354624d41e2c3187e64c1aa1b92874bf09a9ce4f87320a6840c6189efeb1a683 WHIRLPOOL b446bdb792b8bbfc6985770815428619dba293a1072650794f125c6f4af7c306fa05ddcdce5a1b6ec746d6e4e632e4a0086355b804fa0140a127576811b1590d
+AUX arduino.desktop 196 SHA256 707520d5c0075f9ad6663890d697e41f4a0b486bdb946469343c9fffced8b8db SHA512 d5c19162e7863ef3d1e4182caafafd090e2df98cb65b92aad01a3c68d793fe7f056939b920ab11666ab67fba4faa880ad4da599cad25206b8f22612c675cb3f1 WHIRLPOOL 9df9e95c443393a56e818b4892c7a7b41a7d0ec3220bffaa9dd9c767dfe9d3c1c9affc86b40baa00b27e2429fe59dfe7191a63f74e1f822312ddf851f712bb3d
+DIST 1.0.6.tar.gz 232972861 SHA256 4020fde5605156a99a2d19f37c14dcf2b9a66a7e2b11c93eb5353a862deb9f5d SHA512 888276d561b3cfae83d005dd8dae8bdcecbb43dde2003101615f3c04bd2765ba2ac9c189bd3fb8611343b82caaf1702f6e49e14f7498807a1dfd05ef072a583c WHIRLPOOL 57c8217c398f50870a93e604d0ef475d79600d83fa8e793485efa5a9109f1ea886fd600e61ede5642f84450cde78dd95d85ea701e02a1935c6111960989d6d9d
+DIST 1.5.8.tar.gz 72309449 SHA256 88f820a753edfe3faac2a1a60c2cc93c5d21299dfaaefdf8050e4e14ec15fd94 SHA512 17adf314564b747d4055b83f8f28ec9f439a8ddb457264f6cb903abe68556cb68a16e413ee5d99dea66f8d4874096fd8484e59c3f0a5830ba199acb66409a17f WHIRLPOOL ad2a8ac8a5c6e10ae6128a756b32aabdddd2fc4acf884e74dba7c67ef83c76681a6e7e015d85fe59d380072b73b4afcec17153bc9968d5a17500a61a21806338
+DIST arduino-icons.tar.bz2 58775 SHA256 9086ae27a13cc19e428ed7e6434366752b33a7d066b5620bfdd371709277390e SHA512 b750e79d6117f5df619f2b765dad6e64f0ba4aa3314b0b6e00801577e3ea1f15951ba15efe7a00f5317285a19ac29ac41c78b71342f45cd164c794a42bafcdd9 WHIRLPOOL b53ab3ff2981ca9f6d45311b9f885ca831700a7a49fef4a376cdc489f7cc3a6c39fbb93994b962b6854b0833d7342b951b5c6327422aafce762f92952b7a5876
+EBUILD arduino-1.0.6.ebuild 2773 SHA256 bf56ff05fb8aa4b12b1bc7ffdd25b2376e1ddbea5bf12c2a152007fe370308c9 SHA512 9cecc30984c6b568a2a57e39b84712b8633640f53579c9c8a3d4cad51f84c5a77f609c9505b0304c1158a7ce5302e5e9c8869bb8fb86e3aed86ac37d919326c5 WHIRLPOOL dd77ef5d99cfa21afa42914aaef9f9efe20ec39746141bb4c58540a76c20cbb49cc3969bfb62d98ac4af97988de83e1696951dc503ad7068ba2fba092e675167
+EBUILD arduino-1.5.8.ebuild 3262 SHA256 5ab14b8b75c390363e2af68bb948439c5d584c8b4e74124e71a13ce198090c1a SHA512 17ffc4cb2e6be685b28d8d1c475211e71877136169b06eedcff08df89eced24165aa200250973bd97791e572db0074ebc358975cdaa5e18b1d67220550d9f7a5 WHIRLPOOL 7d52034b67a1435e645847787c356b6234ed5bc9a1130ae6b32779b982896e9e2d169e519c25202b4c5933d162dbe6d913e9365603faecace0f15d6218dc0ebf
+MISC ChangeLog 1025 SHA256 365c9c8a51b2eee5afe1f2a473e3e135407362bd55fd9f4dddb72f33e97e4e56 SHA512 a835fe0314863091321aa804559519be418a083a142d178b053343db563500ea7464d1ffa226b082f3f77cbbfa841016ef45cb682a6491ce69aaf8cc19f9b87c WHIRLPOOL b76fe553d72f35a16b3a06bc4e74796fc3e286e4cb463cd3bd9a645e45f826a79c2f57374650061712203c2981f764569a5e59ef7e519f74111d8ae96fe66b36
+MISC metadata.xml 208 SHA256 24c4d46d397c253ce96a7cded3abfdd0bb86e77d5051fb28d7f0e650860b2fe3 SHA512 661f904a1085ad65ed73fac9f0b509bd17ba351525556d9182863504dc0659a0f6d1cdd6869be0c872a5a0089eea08b32b8b08cbe89145b34e1d28e0cb68b4d8 WHIRLPOOL a8263d59843cad65421a12792f01298fb6927e26d0fc3c2df02f3a12cd98f50f869c6825cfcd808ee59d9829c54a5d17c89ce0cd637a79e2249c53bff989d46d
diff --git a/dev-embedded/arduino/arduino-1.0.6.ebuild b/dev-embedded/arduino/arduino-1.0.6.ebuild
new file mode 100644
index 0000000..418b0a6
--- /dev/null
+++ b/dev-embedded/arduino/arduino-1.0.6.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/arduino-1.0.5.ebuild,v 1.3 2013/08/18 13:27:34 ago Exp $
+
+EAPI=4
+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/ http://arduino.googlecode.com/"
+SRC_URI="https://github.com/${PN}/Arduino/archive/${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
+>dev-java/rxtx-2.1"
+
+RDEPEND="${COMMONDEP}
+dev-embedded/avrdude
+dev-embedded/uisp
+sys-devel/crossdev
+>=virtual/jre-1.5"
+
+DEPEND="${COMMONDEP}
+>=virtual/jdk-1.5"
+
+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 build/linux/dist/tools/avrdude* || die
+ rm build/linux/dist/lib/* || die
+ 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}"/${PN}-1.0.1-build.xml.patch
+
+ # Patch launcher script to include rxtx class/ld paths
+ epatch "${FILESDIR}"/${PN}-1.0.3-script.patch
+}
+
+src_compile() {
+ eant -f 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 "${S}"/build/linux/work || die
+ java-pkg_dojar lib/core.jar lib/pde.jar
+ java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --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
+ java-pkg_dojavadoc "${S}"/build/javadoc/everything
+ fi
+
+ insinto "/usr/share/${PN}/"
+ doins -r hardware libraries
+ fowners -R root:uucp "/usr/share/${PN}/hardware"
+
+ insinto "/usr/share/${PN}/lib"
+ doins -r lib/*.txt lib/theme lib/*.jpg
+
+ # use system avrdude
+ # patching class files is too hard
+ dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude"
+ dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avrdude.conf"
+
+ # 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"
+}
diff --git a/dev-embedded/arduino/arduino-1.5.8.ebuild b/dev-embedded/arduino/arduino-1.5.8.ebuild
new file mode 100644
index 0000000..5b9759e
--- /dev/null
+++ b/dev-embedded/arduino/arduino-1.5.8.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/arduino-1.0.5.ebuild,v 1.3 2013/08/18 13:27:34 ago Exp $
+
+EAPI=4
+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/ http://arduino.googlecode.com/"
+SRC_URI="https://github.com/${PN}/Arduino/archive/${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
+>dev-java/rxtx-2.1
+dev-util/astyle"
+
+RDEPEND="${COMMONDEP}
+dev-embedded/avrdude
+dev-embedded/uisp
+sys-devel/crossdev
+>=virtual/jre-1.5"
+
+DEPEND="${COMMONDEP}
+>=virtual/jdk-1.5"
+
+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}"/${PN}-1.5.8-build.xml.patch
+
+ # Patch launcher script to include rxtx class/ld paths
+ epatch "${FILESDIR}"/${PN}-1.0.3-script.patch
+}
+
+src_compile() {
+ eant -f 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 "${S}"/build/linux/work || die
+ java-pkg_dojar lib/*.jar
+ java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --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
+ java-pkg_dojavadoc "${S}"/build/javadoc/everything
+ fi
+
+ insinto "/usr/share/${PN}/"
+ doins -r hardware libraries
+ fowners -R root:uucp "/usr/share/${PN}/hardware"
+
+ insinto "/usr/share/${PN}/lib"
+ doins -r lib/*.txt lib/theme lib/*.jpg
+
+ # use system avrdude
+ # patching class files is too hard
+ dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avr/bin/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"
+}
diff --git a/dev-embedded/arduino/files/arduino-1.0.1-build.xml.patch b/dev-embedded/arduino/files/arduino-1.0.1-build.xml.patch
new file mode 100644
index 0000000..afde2e0
--- /dev/null
+++ b/dev-embedded/arduino/files/arduino-1.0.1-build.xml.patch
@@ -0,0 +1,38 @@
+--- arduino-1.0.1/build/build.xml 2012-04-09 00:16:12.000000000 +0100
++++ arduino-1.0.1/build/build.xml 2012-06-25 06:12:09.000000000 +0100
+@@ -24,9 +24,9 @@
+ <fileset dir=".." id="runtime.jars">
+ <include name="core/core.jar" />
+ <include name="app/pde.jar" />
+- <include name="app/lib/ecj.jar" />
++<!-- <include name="app/lib/ecj.jar" /> -->
+ <include name="app/lib/jna.jar" />
+- <include name="app/lib/RXTXcomm.jar" />
++<!-- <include name="app/lib/RXTXcomm.jar" /> -->
+ <include name="app/lib/ant.jar" />
+ <include name="app/lib/ant-launcher.jar" />
+ </fileset>
+@@ -361,16 +361,18 @@
+ </target>
+
+ <target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version">
+- <copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" />
+- <copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" />
++<!-- <copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" /> -->
++<!-- <copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" /> -->
+
+- <chmod perm="755" file="linux/work/hardware/tools/avrdude" />
++<!-- <chmod perm="755" file="linux/work/hardware/tools/avrdude" /> -->
+
+ <!-- Unzip AVR tools -->
+- <exec executable="tar" dir="linux/work/hardware">
++<!-- Removed by Paulj - use system installed instead -->
++<!-- <exec executable="tar" dir="linux/work/hardware">
+ <arg value="-xjf"/>
+ <arg value="../../avr_tools_linux64.tar.bz2"/>
+- </exec>
++ </exec>
++-->
+ </target>
+
+ <target name="linux32-run" depends="linux32-build"
diff --git a/dev-embedded/arduino/files/arduino-1.0.3-script.patch b/dev-embedded/arduino/files/arduino-1.0.3-script.patch
new file mode 100644
index 0000000..b4accc8
--- /dev/null
+++ b/dev-embedded/arduino/files/arduino-1.0.3-script.patch
@@ -0,0 +1,20 @@
+diff --git a/build/linux/dist/arduino b/build/linux/dist/arduino
+index b5eb9db..3f3b4aa 100644
+--- a/build/linux/dist/arduino
++++ b/build/linux/dist/arduino
+@@ -10,11 +10,13 @@ for LIB in \
+ lib/*.jar \
+ ;
+ do
+- CLASSPATH="${CLASSPATH}:${LIB}"
++ CLASSPATH="${CLASSPATH+$CLASSPATH:}${LIB}"
++
+ done
++CLASSPATH="${CLASSPATH+$CLASSPATH:}:$(java-config -dp rxtx-2)"
+ export CLASSPATH
+
+-LD_LIBRARY_PATH=`pwd`/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}"
diff --git a/dev-embedded/arduino/files/arduino-1.5.8-build.xml.patch b/dev-embedded/arduino/files/arduino-1.5.8-build.xml.patch
new file mode 100644
index 0000000..d1a2341
--- /dev/null
+++ b/dev-embedded/arduino/files/arduino-1.5.8-build.xml.patch
@@ -0,0 +1,135 @@
+--- build/build.xml 2014-11-13 19:11:11.671501891 +0100
++++ build/build.xml 2014-11-13 19:12:09.494503614 +0100
+@@ -48,7 +48,6 @@
+ <include name="app/lib/commons-exec-1.1.jar" />
+ <include name="app/lib/commons-httpclient-3.1.jar" />
+ <include name="app/lib/commons-logging-1.0.4.jar" />
+- <include name="app/lib/ecj.jar" />
+ <include name="app/lib/jmdns-3.4.1.jar" />
+ <include name="app/lib/jna.jar" />
+ <include name="app/lib/jsch-0.1.50.jar" />
+@@ -224,9 +223,6 @@
+ </copy>
+
+ <!-- Unzip AVR tools -->
+- <antcall target="unzip-avr-toolchain">
+- <param name="file_arch" value="mac32" />
+- </antcall>
+
+ <!--
+ <exec executable="unzip">
+@@ -252,11 +248,6 @@
+ <param name="target.path" value="macosx/work/Arduino.app/Contents/Resources/Java" />
+ </antcall>
+
+- <antcall target="unzip-arm-toolchain">
+- <param name="dist_file" value="gcc-arm-none-eabi-4.8.3-2014q1-mac.tar.gz" />
+- <param name="dist_url" value="http://downloads.arduino.cc/gcc-arm-none-eabi-4.8.3-2014q1-mac.tar.gz" />
+- <param name="dist_check_file" value="gcc-arm-none-eabi-4.8.3-2014q1" />
+- </antcall>
+
+ <delete includeEmptyDirs="true" quiet="true">
+ <fileset dir="macosx/work/${staging_hardware_folder}/tools" includes="**/3.4.6/**/*"/>
+@@ -265,10 +256,6 @@
+ <fileset dir="macosx/work/${staging_hardware_folder}/tools" includes="**/man"/>
+ </delete>
+
+- <get src="http://downloads.arduino.cc/libastylej-2.03.zip" dest="macosx" usetimestamp="true" skipexisting="true"/>
+- <unzip src="macosx/libastylej-2.03.zip" dest="macosx" overwrite="true"/>
+- <copy file="macosx/libastylej/libastylej.jnilib" todir="macosx/work/Arduino.app/Contents/Resources/Java/lib/" />
+- <chmod perm="755" file="macosx/work/Arduino.app/Contents/Resources/Java/lib/libastylej.jnilib" />
+ </target>
+
+ <target name="macosx-run" depends="macosx-build" description="Run Mac OS X version">
+@@ -480,38 +467,14 @@
+ <copy todir="linux/work" file="linux/dist/arduino" />
+ <chmod perm="755" file="linux/work/arduino" />
+
+- <get src="http://downloads.arduino.cc/libastylej-2.03.zip" dest="linux" usetimestamp="true" skipexisting="true" />
+- <unzip src="linux/libastylej-2.03.zip" dest="linux" overwrite="true"/>
+- <copy file="linux/libastylej/libastylej${arch-bits}.so" tofile="linux/work/lib/libastylej.so" />
+- <chmod perm="755" file="linux/work/lib/libastylej.so" />
+ </target>
+
+ <target name="linux32-build" depends="linux-build" description="Build linux (32-bit) version">
+ <!-- Unzip ARM tools -->
+- <antcall target="unzip-arm-toolchain">
+- <param name="dist_file" value="gcc-arm-none-eabi-4.8.3-2014q1-linux32.tar.gz" />
+- <param name="dist_url" value="http://downloads.arduino.cc/gcc-arm-none-eabi-4.8.3-2014q1-linux32.tar.gz" />
+- <param name="dist_check_file" value="gcc-arm-none-eabi-4.8.3-2014q1" />
+- </antcall>
+-
+- <!-- Unzip AVR tools -->
+- <antcall target="unzip-avr-toolchain">
+- <param name="file_arch" value="linux32" />
+- </antcall>
+ </target>
+
+ <target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version">
+ <!-- Unzip ARM tools -->
+- <antcall target="unzip-tool">
+- <param name="dist_file" value="gcc-arm-none-eabi-4.8.3-2014q1-linux64.tar.gz" />
+- <param name="dist_url" value="http://downloads.arduino.cc/gcc-arm-none-eabi-4.8.3-2014q1-linux64.tar.gz" />
+- <param name="dist_check_file" value="gcc-arm-none-eabi-4.8.3-2014q1" />
+- </antcall>
+-
+- <!-- Unzip AVR tools -->
+- <antcall target="unzip-avr-toolchain">
+- <param name="file_arch" value="linux64" />
+- </antcall>
+ </target>
+
+ <target name="linux32-run" depends="linux32-build" description="Run Linux (32-bit) version">
+@@ -522,28 +485,6 @@
+ <exec executable="./linux/work/arduino" spawn="false"/>
+ </target>
+
+- <target name="unzip-avr-toolchain">
+- <get src="http://downloads.arduino.cc/avr-toolchain-${file_arch}-gcc-4.8.1.zip" dest="${staging_folder}" usetimestamp="true" ignoreerrors="true" verbose="true" />
+-
+- <checksum file="${staging_folder}/avr-toolchain-${file_arch}-gcc-4.8.1.zip" algorithm="sha" fileext=".sha" verifyproperty="checksum.matches"/>
+- <condition property="checksum.matches.fail">
+- <equals arg1="${checksum.matches}" arg2="false"/>
+- </condition>
+- <fail if="checksum.matches.fail">Checksum failed.
+-
+- File avr-toolchain-${file_arch}-gcc-4.8.1.zip failed checksum.
+- Please remove "${staging_folder}/avr-toolchain-${file_arch}-gcc-4.8.1.zip" and download it again.
+- </fail>
+-
+- <mkdir dir="${staging_folder}/work/${staging_hardware_folder}/tools/avr" />
+- <exec executable="unzip">
+- <arg value="-q" />
+- <arg value="-n" />
+- <arg value="-d" />
+- <arg value="${staging_folder}/work/${staging_hardware_folder}/tools/avr" />
+- <arg value="${staging_folder}/avr-toolchain-${file_arch}-gcc-4.8.1.zip" />
+- </exec>
+- </target>
+
+
+
+@@ -741,10 +682,6 @@
+ <param name="file_arch" value="win32" />
+ </antcall>
+
+- <get src="http://downloads.arduino.cc/libastylej-2.03.zip" dest="windows" usetimestamp="true" skipexisting="true" />
+- <unzip src="windows/libastylej-2.03.zip" dest="windows" overwrite="true"/>
+- <copy file="windows/libastylej/AStylej.dll" todir="windows/work/lib" />
+-
+ <!-- Copy bossac.exe tool -->
+ <copy todir="windows/work/hardware/tools">
+ <fileset file="windows/bossac.exe" />
+@@ -781,12 +718,6 @@
+ </chmod>
+
+ <!-- Unzip ARM toolchain -->
+- <antcall target="unzip-arm-toolchain">
+- <param name="dist_file" value="gcc-arm-none-eabi-4.8.3-2014q1-windows.tar.gz" />
+- <param name="dist_url" value="http://downloads.arduino.cc/gcc-arm-none-eabi-4.8.3-2014q1-windows.tar.gz" />
+- <param name="dist_check_file" value="gcc-arm-none-eabi-4.8.3-2014q1" />
+- </antcall>
+-
+ <delete includeEmptyDirs="true" quiet="true">
+ <fileset dir="windows/work/hardware/tools/avr/doc" />
+ </delete>
diff --git a/dev-embedded/arduino/files/arduino.desktop b/dev-embedded/arduino/files/arduino.desktop
new file mode 100644
index 0000000..b75dea5
--- /dev/null
+++ b/dev-embedded/arduino/files/arduino.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Name=arduino
+Comment=Open-source electronics prototyping platform
+Exec=arduino
+Icon=arduino
+Terminal=false
+Type=Application
+Categories=Development;
+StartupNotify=false
diff --git a/dev-embedded/arduino/metadata.xml b/dev-embedded/arduino/metadata.xml
new file mode 100644
index 0000000..4a415dc
--- /dev/null
+++ b/dev-embedded/arduino/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>gentoo.power@gmail.com</email>
+ </maintainer>
+</pkgmetadata>