diff --git a/dev-embedded/arduino-libs/arduino-libs-1.6.12.ebuild b/dev-embedded/arduino-libs/arduino-libs-1.6.12.ebuild new file mode 100644 index 0000000..de100b6 --- /dev/null +++ b/dev-embedded/arduino-libs/arduino-libs-1.6.12.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="An open-source AVR electronics prototyping platform" +HOMEPAGE="http://arduino.cc/ https://arduino.googlecode.com/" +SRC_URI="https://github.com/arduino/Arduino/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}/Arduino-${PV}" + +src_install() { + 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" +}