Commit dfec1e25 authored by Kawin Nikomborirak's avatar Kawin Nikomborirak

add arduino

parent f4c64d0d
AUX 49-teensy.rules 1781 BLAKE2B 9facfa0a188c93bebfa05d83f4f76edbdb6be4ddcbba6f1ea3f9ac3867606ac2a02df616c127c2786910105c3128b958b6e9bb2fc7d06e2052119622e349fcc6 SHA512 ec4632c7f9999e32b0276eed7cca9360f2d0856136be41c953a94d839d9f34b33fa33017ceef13c458b043e729ba61779d7326ece6c1b8d2d1bcec26f01f08d0
DIST teensyduino-1.40-linux32.tar.xz 155146880 BLAKE2B 3085c1381f6e4de086574a7dc155102a6bc64e1d02eaab927980b352294369584ce19493a255d9b925b4ce30563fe957fff24c4ff5a6b047ef2f8fbfcab85244 SHA512 4df7209aefb74bd0526e579c2b0b2ac58cf745c3844b6e2985affcb63909e1b8a88e85d301f70d191d07560ed0f96c37840f739df336170cfc8e5b5bcb8ec6a2
DIST teensyduino-1.40-linux64.tar.xz 154200368 BLAKE2B 66301ebbdcbadff3ff2cca2e1d38fe6b996568d5b52d6d646e5fa444f1440166cb4f81f825f794d9e095c572e44189d70de18bd2bd19da188e66ee0afe669771 SHA512 10b4d8fd1e3db5afed3808f76697b18826deaede5a38764bce64baedd88e3f81d5a141c8f42081e201ae0530c77110aee8676b742fa647aaa6ddf8b3dda71cdf
EBUILD teensyduino-bin-1.40.ebuild 1506 BLAKE2B 4f53aa5d32d579bc0545d6e6cc916a1c445613cbb96d8891c044d0ddfd27a74318069f43f60551e867206ed74240c7fbd44c09c84c47bb6e2661ff4b8f5c3240 SHA512 6c63be7cf9197eb5744fba687525317dedb181dabe3bc2456c1558777f02dec2d57cfa4588eaad2f4425f22b22e461da28d718900bc5bb3eb78bfa997daa60a4
# UDEV Rules for Teensy boards, http://www.pjrc.com/teensy/
#
# The latest version of this file may be found at:
# http://www.pjrc.com/teensy/49-teensy.rules
#
# This file must be placed at:
#
# /etc/udev/rules.d/49-teensy.rules (preferred location)
# or
# /lib/udev/rules.d/49-teensy.rules (req'd on some broken systems)
#
# To install, type this command in a terminal:
# sudo cp 49-teensy.rules /etc/udev/rules.d/49-teensy.rules
#
# Or use the alternate way (from this forum message) to download and install:
# https://forum.pjrc.com/threads/45595?p=150445&viewfull=1#post150445
#
# After this file is installed, physically unplug and reconnect Teensy.
#
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666"
#
# If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with
# GROUP:="somegroupname" and mange access using standard unix groups.
#
#
# If using USB Serial you get a new device each time (Ubuntu 9.10)
# eg: /dev/ttyACM0, ttyACM1, ttyACM2, ttyACM3, ttyACM4, etc
# apt-get remove --purge modemmanager (reboot may be necessary)
#
# Older modem proding (eg, Ubuntu 9.04) caused very slow serial device detection.
# To fix, add this near top of /lib/udev/rules.d/77-nm-probe-modem-capabilities.rules
# SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", GOTO="nm_modem_probe_end"
#
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils udev versionator
DESCRIPTION="USB-based electronics prototyping platform compatible with Arduino"
HOMEPAGE="https://www.pjrc.com/teensy/"
MY_PV="$(replace_all_version_separators '')"
MY_PN="${PN/-bin}"
MY_P="${MY_PN}-${PV}"
ARDUINO_PN="arduino"
ARDUINO_PV="1.8.5"
ARDUINO_P="${ARDUINO_PN}-${ARDUINO_PV}"
SRC_URI="
amd64? ( https://file.fooster.io/overlay/${MY_P}-linux64.tar.xz )
x86? ( https://file.fooster.io/overlay/${MY_P}-linux32.tar.xz )
"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="virtual/libusb:0"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
RESTRICT="binchecks preserve-libs strip"
src_unpack() {
if use amd64; then
unpack "${MY_P}"-linux64.tar.xz
else
unpack "${MY_P}"-linux32.tar.xz
fi
cp "${FILESDIR}"/49-teensy.rules "${WORKDIR}" || die
}
src_install() {
newicon lib/arduino.png "${MY_PN}".png
make_desktop_entry "${MY_PN}" Teensyduino "${MY_PN}"
mkdir -p "${D}"/opt/"${PN}" || die
cp -a * "${D}"/opt/"${PN}" || die
make_wrapper ${MY_PN} "${EROOT}opt/${PN}/${ARDUINO_PN}" "${EROOT}opt/${PN}"
udev_dorules "${WORKDIR}"/49-teensy.rules
}
pkg_postinst() {
udev_reload
elog "Initial setup for your Teensy requires you to plug in the board,"
elog "verify a sketch, then press the reset button on the board. After"
elog "that, you can use the upload button."
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment