dev-embedded/teensyduino-bin - 1.45 (tgbugs-overlay)

Search

Install

Install this version:

emerge -a =dev-embedded/teensyduino-bin-1.45

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-embedded/teensyduino-bin-1.45

Or alternatively:

emerge --autounmask-write -a =dev-embedded/teensyduino-bin-1.45

Package Information

Description:
USB-based electronics prototyping platform compatible with Arduino
Homepage:
https://www.pjrc.com/teensy/
License:
GPL-2 LGPL-2.1

Ebuild Details

Version EAPI Keywords Slot
1.45 7 ~amd64 0
View Raw Ebuild
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit udev

DESCRIPTION="USB-based electronics prototyping platform compatible with Arduino"
HOMEPAGE="https://www.pjrc.com/teensy/"

MY_PN="${PN/-bin}"
MY_P="${MY_PN}-${PV}"

ARDUINO_PN="arduino"
ARDUINO_PV="1.8.6"
ARDUINO_P="${ARDUINO_PN}-${ARDUINO_PV}"

SRC_URI="
	amd64? ( https://github.com/tgbugs/tgbugs-overlay/releases/download/${MY_P}/${MY_P}-linux64.tar.xz )
"

LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
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."
}

Inherited Eclasses

Dependencies

DEPEND

virtual/libusb:0

RDEPEND

virtual/libusb:0

Manifest for 1.45

Type File Size Source URLs
DIST teensyduino-1.45-linux64.tar.xz 174046728 bytes https://github.com/tgbugs/tgbugs-overlay/releases/download/teensyduino-1.45/teensyduino-1.45-linux64.tar.xz