commit: 085839c2d82f09a64b880f1bc881cba4423a637b Author: Samuel Bernardo <samuelbernardo <AT> tecnico <DOT> ulisboa <DOT> pt> AuthorDate: Tue Jun 21 00:13:21 2016 +0000 Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> CommitDate: Tue Jun 21 00:13:21 2016 +0000 URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=085839c2
arduino ebuild for version 1.6.9 dev-embedded/arduino-ide/Manifest | 7 ++ dev-embedded/arduino-ide/arduino-ide-1.6.8.ebuild | 94 ++++++++++++++++++++++ dev-embedded/arduino-ide/arduino-ide-1.6.9.ebuild | 94 ++++++++++++++++++++++ .../files/arduino-ide-1.6.8-script.patch | 19 +++++ .../files/arduino-ide-1.6.9-script.patch | 19 +++++ dev-embedded/arduino-libs/Manifest | 4 + .../arduino-libs/arduino-libs-1.6.8.ebuild | 36 +++++++++ .../arduino-libs/arduino-libs-1.6.9.ebuild | 36 +++++++++ dev-embedded/arduino/Manifest | 2 + dev-embedded/arduino/arduino-1.6.8.ebuild | 70 ++++++++++++++++ dev-embedded/arduino/arduino-1.6.9.ebuild | 70 ++++++++++++++++ 11 files changed, 451 insertions(+) diff --git a/dev-embedded/arduino-ide/Manifest b/dev-embedded/arduino-ide/Manifest new file mode 100644 index 0000000..2d98f64 --- /dev/null +++ b/dev-embedded/arduino-ide/Manifest @@ -0,0 +1,7 @@ +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.6.8.tar.gz 81091166 SHA256 5b2e8b3115000986f12ebdc126162d22c2dc85b3ca9732b8f8966e6dcdf2edad SHA512 a5814e7d7a43a337f96b2abc33c0bc10a09c5baa91b7416b9c17ee65ce643944eae133a8485dff09d5164665f90fdd25707e1025d7bd76f704552224074c5931 WHIRLPOOL 5be3b81cfff757d685bcc5b96118a8d024ce9ba36496fadbd3a2461d2974937d0bce16e091dbd8d778912bdbf9165fdbc3a2bd381ac8d25a42c9a70c73156e48 +DIST arduino-1.6.9.tar.gz 81103494 SHA256 0927e4d6bb24fd297765aaf529fe7b16a7da3223848e7b40cdc9843d4246f98d SHA512 92b3508068e3aae6a88c3a395d0906fb63d2fd8ee20d003173b96f3f0ff6851eddcdb77c6349dfec3ad0ee36976f53432c643f56724490e9187d4af049fd4bf8 WHIRLPOOL 841ebd6e4c23b610f87a5254b888a31bd9b36ea162f52f9301b8cc0af2288cb7cff83f130f7f3a03ca71fdaf471818f2faea99ab3f1c64b233d7d504b7ac0049 +DIST arduino-icons.tar.bz2 58775 SHA256 9086ae27a13cc19e428ed7e6434366752b33a7d066b5620bfdd371709277390e SHA512 b750e79d6117f5df619f2b765dad6e64f0ba4aa3314b0b6e00801577e3ea1f15951ba15efe7a00f5317285a19ac29ac41c78b71342f45cd164c794a42bafcdd9 WHIRLPOOL b53ab3ff2981ca9f6d45311b9f885ca831700a7a49fef4a376cdc489f7cc3a6c39fbb93994b962b6854b0833d7342b951b5c6327422aafce762f92952b7a5876 +EBUILD arduino-ide-1.6.8.ebuild 2592 SHA256 3e52c29ba3f0f5eb95e4198da7cd829c7b40cb62f5c83f9c245efc57a8993c02 SHA512 86ed995228a3fc3f993079fee9396a7a2b658dcc2c534cb1e41e4472161634aefcec5a6011f23b09fa79161d56bd5d6e7e36b6dcbf03e005cc7c514745e54a8d WHIRLPOOL 1d098c9d1b667587af77a08f19ce4f3dc8cf3a9803a90a80c08a136a3a97d30156dbdf6fb20b64fda915d0b8e0d22ccaac7085f06449b1d7cf090444e0238d3f +EBUILD arduino-ide-1.6.9.ebuild 2592 SHA256 3e52c29ba3f0f5eb95e4198da7cd829c7b40cb62f5c83f9c245efc57a8993c02 SHA512 86ed995228a3fc3f993079fee9396a7a2b658dcc2c534cb1e41e4472161634aefcec5a6011f23b09fa79161d56bd5d6e7e36b6dcbf03e005cc7c514745e54a8d WHIRLPOOL 1d098c9d1b667587af77a08f19ce4f3dc8cf3a9803a90a80c08a136a3a97d30156dbdf6fb20b64fda915d0b8e0d22ccaac7085f06449b1d7cf090444e0238d3f diff --git a/dev-embedded/arduino-ide/arduino-ide-1.6.8.ebuild b/dev-embedded/arduino-ide/arduino-ide-1.6.8.ebuild new file mode 100644 index 0000000..0aa0902 --- /dev/null +++ b/dev-embedded/arduino-ide/arduino-ide-1.6.8.ebuild @@ -0,0 +1,94 @@ +# 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 + +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 "${S}"/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 hardware libraries tools tools-builder dist + doins -r tools tools-builder dist + #fowners -R root:uucp "/usr/share/${PNS}/hardware" + + 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." +} diff --git a/dev-embedded/arduino-ide/arduino-ide-1.6.9.ebuild b/dev-embedded/arduino-ide/arduino-ide-1.6.9.ebuild new file mode 100644 index 0000000..0aa0902 --- /dev/null +++ b/dev-embedded/arduino-ide/arduino-ide-1.6.9.ebuild @@ -0,0 +1,94 @@ +# 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 + +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 "${S}"/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 hardware libraries tools tools-builder dist + doins -r tools tools-builder dist + #fowners -R root:uucp "/usr/share/${PNS}/hardware" + + 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." +} diff --git a/dev-embedded/arduino-ide/files/arduino-ide-1.6.8-script.patch b/dev-embedded/arduino-ide/files/arduino-ide-1.6.8-script.patch new file mode 100644 index 0000000..1d7c933 --- /dev/null +++ b/dev-embedded/arduino-ide/files/arduino-ide-1.6.8-script.patch @@ -0,0 +1,19 @@ +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}" + diff --git a/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-script.patch b/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-script.patch new file mode 100644 index 0000000..1d7c933 --- /dev/null +++ b/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-script.patch @@ -0,0 +1,19 @@ +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}" + diff --git a/dev-embedded/arduino-libs/Manifest b/dev-embedded/arduino-libs/Manifest new file mode 100644 index 0000000..7d4b48d --- /dev/null +++ b/dev-embedded/arduino-libs/Manifest @@ -0,0 +1,4 @@ +DIST arduino-1.6.8.tar.gz 81091166 SHA256 5b2e8b3115000986f12ebdc126162d22c2dc85b3ca9732b8f8966e6dcdf2edad SHA512 a5814e7d7a43a337f96b2abc33c0bc10a09c5baa91b7416b9c17ee65ce643944eae133a8485dff09d5164665f90fdd25707e1025d7bd76f704552224074c5931 WHIRLPOOL 5be3b81cfff757d685bcc5b96118a8d024ce9ba36496fadbd3a2461d2974937d0bce16e091dbd8d778912bdbf9165fdbc3a2bd381ac8d25a42c9a70c73156e48 +DIST arduino-1.6.9.tar.gz 81103494 SHA256 0927e4d6bb24fd297765aaf529fe7b16a7da3223848e7b40cdc9843d4246f98d SHA512 92b3508068e3aae6a88c3a395d0906fb63d2fd8ee20d003173b96f3f0ff6851eddcdb77c6349dfec3ad0ee36976f53432c643f56724490e9187d4af049fd4bf8 WHIRLPOOL 841ebd6e4c23b610f87a5254b888a31bd9b36ea162f52f9301b8cc0af2288cb7cff83f130f7f3a03ca71fdaf471818f2faea99ab3f1c64b233d7d504b7ac0049 +EBUILD arduino-libs-1.6.8.ebuild 978 SHA256 ad4323ffe91b513de411e731512e690212f6315c8b2ee2fcd3284f2746c511a5 SHA512 438e6e774bdef0f198649ac028d641f6d9b7461b6e5e324b5d50be83db384d6c516308845c069838de6a5f9320035b862b7108ff68c6c4bbc52f0dbc2f259229 WHIRLPOOL 7e68603c8ad4abb4adc5139aede9d59b84b396d970fe18186a21004c7b858b4f391bef2e4ee1672e4efd12ba539b63683541b273beb9072ae5bce1e4487a37b7 +EBUILD arduino-libs-1.6.9.ebuild 978 SHA256 ad4323ffe91b513de411e731512e690212f6315c8b2ee2fcd3284f2746c511a5 SHA512 438e6e774bdef0f198649ac028d641f6d9b7461b6e5e324b5d50be83db384d6c516308845c069838de6a5f9320035b862b7108ff68c6c4bbc52f0dbc2f259229 WHIRLPOOL 7e68603c8ad4abb4adc5139aede9d59b84b396d970fe18186a21004c7b858b4f391bef2e4ee1672e4efd12ba539b63683541b273beb9072ae5bce1e4487a37b7 diff --git a/dev-embedded/arduino-libs/arduino-libs-1.6.8.ebuild b/dev-embedded/arduino-libs/arduino-libs-1.6.8.ebuild new file mode 100644 index 0000000..4f43102 --- /dev/null +++ b/dev-embedded/arduino-libs/arduino-libs-1.6.8.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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() { + #cd "${S}"/build/linux/work || die + cd "${S}" || die + + 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" +} diff --git a/dev-embedded/arduino-libs/arduino-libs-1.6.9.ebuild b/dev-embedded/arduino-libs/arduino-libs-1.6.9.ebuild new file mode 100644 index 0000000..4f43102 --- /dev/null +++ b/dev-embedded/arduino-libs/arduino-libs-1.6.9.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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() { + #cd "${S}"/build/linux/work || die + cd "${S}" || die + + 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" +} diff --git a/dev-embedded/arduino/Manifest b/dev-embedded/arduino/Manifest new file mode 100644 index 0000000..8326ddf --- /dev/null +++ b/dev-embedded/arduino/Manifest @@ -0,0 +1,2 @@ +EBUILD arduino-1.6.8.ebuild 2480 SHA256 cb0fee4aca1caa301e27eaf55c15be1f642952efbf2c14852d5247191795d13d SHA512 3fc9ead14a6821ce594821d15903b60fe8f5ee0aaa384cae43cf189cae4cd448c914651c760616e20cb3f807b68de01672ef1f60ab10dd333590e268129a39c7 WHIRLPOOL 4607220071822da7286b28b51adbde6d01a9c40811b79ebbf9235eb3d732d1abbf734ffb5d4490a9b4dd2bcceeb5d02aeceb25bb9b83a33615cda0cbc388f623 +EBUILD arduino-1.6.9.ebuild 2480 SHA256 cb0fee4aca1caa301e27eaf55c15be1f642952efbf2c14852d5247191795d13d SHA512 3fc9ead14a6821ce594821d15903b60fe8f5ee0aaa384cae43cf189cae4cd448c914651c760616e20cb3f807b68de01672ef1f60ab10dd333590e268129a39c7 WHIRLPOOL 4607220071822da7286b28b51adbde6d01a9c40811b79ebbf9235eb3d732d1abbf734ffb5d4490a9b4dd2bcceeb5d02aeceb25bb9b83a33615cda0cbc388f623 diff --git a/dev-embedded/arduino/arduino-1.6.8.ebuild b/dev-embedded/arduino/arduino-1.6.8.ebuild new file mode 100644 index 0000000..2751eac --- /dev/null +++ b/dev-embedded/arduino/arduino-1.6.8.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="An open-source AVR electronics prototyping platform" +HOMEPAGE="http://arduino.cc/ https://arduino.googlecode.com/" +SRC_URI="" +LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+minimal" + +CDEPEND="!minimal? ( =dev-embedded/arduino-ide-${PV} ) +=dev-embedded/arduino-libs-${PV}" + +RDEPEND="${CDEPEND}" + +DEPEND="${CDEPEND}" + +src_unpack() { + mkdir -p "${WORKDIR}/${P}" +} + +src_install() { + if use minimal; then + mkdir -p "${D}/usr/share/arduino/lib" + echo "${PV}" > "${D}/usr/share/arduino/lib/version.txt" + fi + true +} + +pkg_postinst() { + elog "To compile programs for Arduino, you need a cross-compiler." + elog "You can install one using the 'crossdev' tool, as follows:" + elog "'USE=\"-sanitize\" crossdev -S -t avr'" + elog "^ for the AVR-based Arduino boards." + elog "'USE=\"-sanitize\" crossdev -S -t arm-none-eabi'" + elog "^ for ARM/SAM-based boards." + + ewarn "" + ewarn "There is a bug with cross-binutils for AVR (bug #147155), which" + ewarn "can cause linker errors. Fortunately, there is an easy workaround:" + ewarn "You must create the following symlink manually on your system:" + ewarn "ln -s /usr/lib/binutils/avr/2.25.1/ldscripts /usr/avr/lib/ldscripts" + ewarn "replacing '2.25.1' with the correct version of cross-binutils" + ewarn "installed on your system. If you ever update or re-install the" + ewarn "cross-avr/binutils package on your system, you will need to" + ewarn "re-create the above symlink accordingly, or linker errors will occur." + + ewarn "" + ewarn "As of 2016-03-01, AVR-gcc-5.x does not seem to work. You should" + ewarn "install the stable (4.9.x) version of cross-gcc using the '-S'" + ewarn "option when invoking the 'crossdev' command." + + if use minimal; then + elog "" + elog "You have emerged this package with the 'minimal' USE flag." + elog "Only the libraries and hardware platform files have been installed." + elog "This is sufficient for building Arduino programs from the" + elog "commandline using tools such as 'ano' and 'ino'." + elog "" + elog "If you wish to also install the Java-based Arduino IDE," + elog "disable the 'minimal' use flag." + elog "I have *NOT* tested if the Arduino IDE ebuild even works, because" + elog "I don't use it myself. If there are issues with the installation," + elog "please report them to me, and I will try my best to fix the ebuild." + fi +} diff --git a/dev-embedded/arduino/arduino-1.6.9.ebuild b/dev-embedded/arduino/arduino-1.6.9.ebuild new file mode 100644 index 0000000..2751eac --- /dev/null +++ b/dev-embedded/arduino/arduino-1.6.9.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="An open-source AVR electronics prototyping platform" +HOMEPAGE="http://arduino.cc/ https://arduino.googlecode.com/" +SRC_URI="" +LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+minimal" + +CDEPEND="!minimal? ( =dev-embedded/arduino-ide-${PV} ) +=dev-embedded/arduino-libs-${PV}" + +RDEPEND="${CDEPEND}" + +DEPEND="${CDEPEND}" + +src_unpack() { + mkdir -p "${WORKDIR}/${P}" +} + +src_install() { + if use minimal; then + mkdir -p "${D}/usr/share/arduino/lib" + echo "${PV}" > "${D}/usr/share/arduino/lib/version.txt" + fi + true +} + +pkg_postinst() { + elog "To compile programs for Arduino, you need a cross-compiler." + elog "You can install one using the 'crossdev' tool, as follows:" + elog "'USE=\"-sanitize\" crossdev -S -t avr'" + elog "^ for the AVR-based Arduino boards." + elog "'USE=\"-sanitize\" crossdev -S -t arm-none-eabi'" + elog "^ for ARM/SAM-based boards." + + ewarn "" + ewarn "There is a bug with cross-binutils for AVR (bug #147155), which" + ewarn "can cause linker errors. Fortunately, there is an easy workaround:" + ewarn "You must create the following symlink manually on your system:" + ewarn "ln -s /usr/lib/binutils/avr/2.25.1/ldscripts /usr/avr/lib/ldscripts" + ewarn "replacing '2.25.1' with the correct version of cross-binutils" + ewarn "installed on your system. If you ever update or re-install the" + ewarn "cross-avr/binutils package on your system, you will need to" + ewarn "re-create the above symlink accordingly, or linker errors will occur." + + ewarn "" + ewarn "As of 2016-03-01, AVR-gcc-5.x does not seem to work. You should" + ewarn "install the stable (4.9.x) version of cross-gcc using the '-S'" + ewarn "option when invoking the 'crossdev' command." + + if use minimal; then + elog "" + elog "You have emerged this package with the 'minimal' USE flag." + elog "Only the libraries and hardware platform files have been installed." + elog "This is sufficient for building Arduino programs from the" + elog "commandline using tools such as 'ano' and 'ino'." + elog "" + elog "If you wish to also install the Java-based Arduino IDE," + elog "disable the 'minimal' use flag." + elog "I have *NOT* tested if the Arduino IDE ebuild even works, because" + elog "I don't use it myself. If there are issues with the installation," + elog "please report them to me, and I will try my best to fix the ebuild." + fi +}