From f0b13f4a10ca5c5163f171161efe3111575c9085 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 12 Aug 2016 09:41:23 -0700 Subject: [PATCH] dev-embedded: Remove simulavr and teensy-* I don't have time to maintain these. --- dev-embedded/simulavr/ChangeLog | 12 - dev-embedded/simulavr/Manifest | 4 - ...10-update_poisoned_interrupt_vectors.patch | 209 ------------------ dev-embedded/simulavr/metadata.xml | 9 - dev-embedded/simulavr/simulavr-9999.ebuild | 90 -------- dev-embedded/teensy-hid-listen/ChangeLog | 12 - dev-embedded/teensy-hid-listen/Manifest | 4 - dev-embedded/teensy-hid-listen/metadata.xml | 9 - .../teensy-hid-listen-1.01.ebuild | 32 --- dev-embedded/teensy-loader-cli/ChangeLog | 12 - dev-embedded/teensy-loader-cli/Manifest | 5 - .../teensy-loader-cli/files/49-teensy.rules | 7 - dev-embedded/teensy-loader-cli/metadata.xml | 9 - .../teensy-loader-cli-2.0.ebuild | 66 ------ 14 files changed, 480 deletions(-) delete mode 100644 dev-embedded/simulavr/ChangeLog delete mode 100644 dev-embedded/simulavr/Manifest delete mode 100644 dev-embedded/simulavr/files/9999-0010-update_poisoned_interrupt_vectors.patch delete mode 100644 dev-embedded/simulavr/metadata.xml delete mode 100644 dev-embedded/simulavr/simulavr-9999.ebuild delete mode 100644 dev-embedded/teensy-hid-listen/ChangeLog delete mode 100644 dev-embedded/teensy-hid-listen/Manifest delete mode 100644 dev-embedded/teensy-hid-listen/metadata.xml delete mode 100644 dev-embedded/teensy-hid-listen/teensy-hid-listen-1.01.ebuild delete mode 100644 dev-embedded/teensy-loader-cli/ChangeLog delete mode 100644 dev-embedded/teensy-loader-cli/Manifest delete mode 100644 dev-embedded/teensy-loader-cli/files/49-teensy.rules delete mode 100644 dev-embedded/teensy-loader-cli/metadata.xml delete mode 100644 dev-embedded/teensy-loader-cli/teensy-loader-cli-2.0.ebuild diff --git a/dev-embedded/simulavr/ChangeLog b/dev-embedded/simulavr/ChangeLog deleted file mode 100644 index fa058f0..0000000 --- a/dev-embedded/simulavr/ChangeLog +++ /dev/null @@ -1,12 +0,0 @@ -# ChangeLog for dev-embedded/simulavr -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - -*simulavr-9999 (13 Aug 2012) - 13 Aug 2012; W. Trevor King simulavr-9999.ebuild: - - Added initial ChangeLog which should be updated whenever the - package is updated in any way. This changelog is targetted to - users. This means that the comments should well explained and - written in clean English. The details about writing correct - changelogs are explained in the skel.ChangeLog file which you can - find in the root directory of the portage repository. diff --git a/dev-embedded/simulavr/Manifest b/dev-embedded/simulavr/Manifest deleted file mode 100644 index 6953aa4..0000000 --- a/dev-embedded/simulavr/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -AUX 9999-0010-update_poisoned_interrupt_vectors.patch 5946 RMD160 4d186938c7cf930da1b8ee8a6e9b14c136d242ed SHA1 153f81002eb44bc1404a8f6c86b00e8f93a44895 SHA256 f74d0dacdc77c1bd0e88ea6c47be08659f778b5c9f4263d98333bda19e2f9a9b -EBUILD simulavr-9999.ebuild 2409 RMD160 68f261958ce8e52b137124cd797adeecf5347384 SHA1 28cfc14aeb109e7fc07aabb168fa4f537f12b71e SHA256 efb90bf37b2ef115c5a4596b55780bdce703d2546495e99a78f1273adfff860d -MISC ChangeLog 601 RMD160 56171751910f8d3564700e61b478729aca7fbd84 SHA1 14323d44d908388575f06ffc0690ea4d92d88f2c SHA256 b41cd1718171fed8744d6fc386c7277b760222e49a517cdcb2479ae06aa9a837 -MISC metadata.xml 247 RMD160 f6a3debfa8f70e039ec74fe92be0de687c8cec20 SHA1 30c46f34b3a777a6ff4f46dd4590b94677594948 SHA256 30b3270d8e655f6c190d3148f49b9364795beb41991502630e6631886ef107ea diff --git a/dev-embedded/simulavr/files/9999-0010-update_poisoned_interrupt_vectors.patch b/dev-embedded/simulavr/files/9999-0010-update_poisoned_interrupt_vectors.patch deleted file mode 100644 index ab9cc7f..0000000 --- a/dev-embedded/simulavr/files/9999-0010-update_poisoned_interrupt_vectors.patch +++ /dev/null @@ -1,209 +0,0 @@ -bug #35737: new awr-gcc is picky about depreciated constants -http://savannah.nongnu.org/bugs/?35737 - -diff --git a/examples/atmega128_timer/main.c b/examples/atmega128_timer/main.c -index 15661d7..d666ac0 100644 ---- a/examples/atmega128_timer/main.c -+++ b/examples/atmega128_timer/main.c -@@ -5,7 +5,7 @@ - volatile int timer2_ticks; - - /* Every ~ms */ --ISR(SIG_OUTPUT_COMPARE2) -+ISR(TIMER2_COMP_vect) - { /* Every ~1ms */ - timer2_ticks++; - } -diff --git a/examples/atmel_key/StdDefs.c b/examples/atmel_key/StdDefs.c -index 738f84c..556d6ff 100644 ---- a/examples/atmel_key/StdDefs.c -+++ b/examples/atmel_key/StdDefs.c -@@ -54,14 +54,6 @@ void test_pin(void) - sbi(TESTPIN_PORT, TESTPIN_BIT); - } - --// Delay in 1/10's of a millisecond --// Does not work with -O0, use -O1, even for debugging. --void msleep(INT16U ms10) -- { -- for( ; ms10; --ms10) -- _delay_ms(0.1); -- } -- - //------------------------------------------------------------ - // void putBCD(INT16S X, CHARU length, CHARU TrailingSpace) - // -diff --git a/examples/atmel_key/StdDefs.h b/examples/atmel_key/StdDefs.h -index 9ae8b91..38ea1d8 100644 ---- a/examples/atmel_key/StdDefs.h -+++ b/examples/atmel_key/StdDefs.h -@@ -63,8 +63,8 @@ void print_hexbyte(unsigned char i); - #define UART_BAUD_REG_H UBRR0H - #define UART_CONTROL_REG UCSR0B - #define UART_STATUS_REG UCSR0A -- #define UART_RCV_INT_VECTOR SIG_UART0_RECV -- #define UART_REG_EMPTY_INT_VECTOR SIG_UART0_DATA -+ #define UART_RCV_INT_VECTOR USART0_RX_vect -+ #define UART_REG_EMPTY_INT_VECTOR USART0_UDRE_vect - #define UART_DATA_REG UDR0 - #elif DEVICE_NAME == ATMEGA163 - #define UART_BAUD_REG UBRR -diff --git a/examples/atmel_key/kb.c b/examples/atmel_key/kb.c -index 322b443..77edaa2 100644 ---- a/examples/atmel_key/kb.c -+++ b/examples/atmel_key/kb.c -@@ -36,7 +36,7 @@ void init_kb(void) - bitcount = 11; - } - --SIGNAL(SIG_INTERRUPT0) -+SIGNAL(INT0_vect) - { - static unsigned char data; // Holds the received scan code - -diff --git a/examples/atmel_key/main.c b/examples/atmel_key/main.c -index 5fb551a..47a2221 100644 ---- a/examples/atmel_key/main.c -+++ b/examples/atmel_key/main.c -@@ -5,6 +5,7 @@ - // PS-1 Keyboard interface test program - - #include -+#include - #include - //include - #include -@@ -31,7 +32,7 @@ int main(void) - { - key=getchar(); - putchar(key); -- msleep(10); -+ _delay_ms(10); - } - return 1; - } -diff --git a/examples/atmel_key/scancodes.h b/examples/atmel_key/scancodes.h -index a9375f3..f39474b 100644 ---- a/examples/atmel_key/scancodes.h -+++ b/examples/atmel_key/scancodes.h -@@ -15,7 +15,7 @@ - - // Unshifted characters - --static char unshifted[][2] __attribute__ ((progmem)) = { -+static const char unshifted[][2] PROGMEM = { - 0x0d,9, - 0x0e,'`', - 0x15,'q', -@@ -87,7 +87,7 @@ static char unshifted[][2] __attribute__ ((progmem)) = { - }; - - // Shifted characters --prog_char shifted[][2] = { -+static const char shifted[][2] PROGMEM = { - 0x0d,9, - 0x0e,'~', - 0x15,'Q', -diff --git a/examples/python/ex_pinout.c b/examples/python/ex_pinout.c -index 0bea2e0..7e55392 100644 ---- a/examples/python/ex_pinout.c -+++ b/examples/python/ex_pinout.c -@@ -3,7 +3,7 @@ - - volatile int timer2_ticks; - --ISR(SIG_OUTPUT_COMPARE2) { -+ISR(TIMER2_COMP_vect) { - timer2_ticks++; - } - -diff --git a/examples/python/example.c b/examples/python/example.c -index bfd7509..35931b5 100644 ---- a/examples/python/example.c -+++ b/examples/python/example.c -@@ -4,7 +4,7 @@ - volatile int timer2_ticks; - - /* Every ~ms */ --ISR(SIG_OUTPUT_COMPARE2) { -+ISR(TIMER2_COMP_vect) { - timer2_ticks++; - } - -diff --git a/examples/python/example_io.c b/examples/python/example_io.c -index 3822b41..71c932e 100644 ---- a/examples/python/example_io.c -+++ b/examples/python/example_io.c -@@ -5,7 +5,7 @@ volatile int timer2_ticks; - volatile int port_val; - volatile int port_cnt; - --ISR(SIG_OUTPUT_COMPARE2) { -+ISR(TIMER2_COMP_vect) { - timer2_ticks++; - } - -diff --git a/examples/python/multicore.c b/examples/python/multicore.c -index 2df7443..869563e 100644 ---- a/examples/python/multicore.c -+++ b/examples/python/multicore.c -@@ -11,7 +11,7 @@ - volatile char cnt_irq = 0; // IRQ counter - volatile char cnt_res = 0; // measurement value for time distance between events - --ISR(SIG_INTERRUPT0) { -+ISR(INT0_vect) { - cnt_irq++; // increment event counter - cnt_res = TCNT0; // save timer value = time distance to last event - TCNT0 = 0; // reset timer value -diff --git a/regress/extinttest/ext_int0.c b/regress/extinttest/ext_int0.c -index 9a619c2..a12304a 100644 ---- a/regress/extinttest/ext_int0.c -+++ b/regress/extinttest/ext_int0.c -@@ -89,12 +89,12 @@ volatile unsigned char hs_data = 0; - volatile unsigned char dis_mask = 0; - - #if defined(TEST_INT1) -- ISR(SIG_INTERRUPT1) { -+ ISR(INT1_vect) { - #else - # if defined(TEST_INT2_16) -- ISR(SIG_INTERRUPT2) { -+ ISR(INT2_vect) { - # else -- ISR(SIG_INTERRUPT0) { -+ ISR(INT0_vect) { - # endif - #endif - cnt_irq++; -diff --git a/regress/timertest/timer_16bit.c b/regress/timertest/timer_16bit.c -index c3accf2..bcdd27b 100644 ---- a/regress/timertest/timer_16bit.c -+++ b/regress/timertest/timer_16bit.c -@@ -7,7 +7,7 @@ volatile int timer_ticks; - ISR(SIG_OVERFLOW3) { - timer_ticks++; - } --ISR(SIG_OUTPUT_COMPARE3B) { -+ISR(TIMER3_COMPB_vect) { - timer_ticks++; - } - #else -diff --git a/regress/timertest/timer_8bit_ctc.c b/regress/timertest/timer_8bit_ctc.c -index 1b9c969..7341336 100644 ---- a/regress/timertest/timer_8bit_ctc.c -+++ b/regress/timertest/timer_8bit_ctc.c -@@ -4,11 +4,11 @@ - volatile int timer_ticks; - - #ifdef PROC_atmega48 --ISR(SIG_OUTPUT_COMPARE2A) { -+ISR(TIMER2_COMPA_vect) { - timer_ticks++; - } - #else --ISR(SIG_OUTPUT_COMPARE2) { -+ISR(TIMER2_COMP_vect) { - timer_ticks++; - } - #endif diff --git a/dev-embedded/simulavr/metadata.xml b/dev-embedded/simulavr/metadata.xml deleted file mode 100644 index 7b35910..0000000 --- a/dev-embedded/simulavr/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - wking@tremily.us - W. Trevor King - - diff --git a/dev-embedded/simulavr/simulavr-9999.ebuild b/dev-embedded/simulavr/simulavr-9999.ebuild deleted file mode 100644 index 9d7eb06..0000000 --- a/dev-embedded/simulavr/simulavr-9999.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="4" - -inherit autotools eutils - -if [[ "${PV}" == "9999" ]]; then - inherit git-2 - EGIT_BRANCH="master" - EGIT_REPO_URI="git://git.savannah.nongnu.org/${PN}.git" - SRC_URI="" -else - SRC_URI="http://download.savannah.nongnu.org/releases/${PN}/${P}.tar.gz" -fi - -DESCRIPTION="A simulator for the Atmel AVR family of microcontrollers" -HOMEPAGE="http://www.nongnu.org/${PN}/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64" -IUSE="doc python static-libs tcl verilog" - -RDEPEND="sys-libs/ncurses" -DEPEND="${RDEPEND} - >=dev-lang/swig-2.0.0 - doc? ( app-doc/doxygen[dot] dev-python/sphinx ) - python? ( >=dev-lang/python-2.4 ) - tcl? ( dev-lang/tcl dev-tcltk/itcl ) - verilog? ( sci-electronics/iverilog )" - -pkg_setup() { - if ! has_version cross-avr/gcc; then - eerror - eerror "${PN} requires avr-gcc >= 4.3.4 to be installed." - eerror "You can install it by running:" - eerror " # crossdev -t avr" - eerror - die "Missing avr-gcc" - fi - if ! has_version cross-avr/binutils; then - eerror - eerror "${PN} requires avr binutils >= 2.20 to be installed." - eerror "You can install it by running:" - eerror " # crossdev -t avr" - eerror - die "Missing avr binutils" - fi -} - -src_prepare() { - epatch "${FILESDIR}/${PV}"-*.patch - if [[ "${PV}" == "9999" ]]; then - ./bootstrap - fi -} - -src_configure() { - local my_conf="--enable-dependency-tracking" - local BINUTILS=$(binutils-config --get-current-profile avr) - local BINUTILS_CONFIG="/etc/env.d/binutils/${BINUTILS}" - local BINUTILS_PATH=$(sed -n 's/^LIBPATH="\(.*\)"$/\1/p' "${BINUTILS_CONFIG}") - my_conf="${my_conf} --with-bfd=${BINUTILS_PATH}" - my_conf="${my_conf} $(use_enable python)" - my_conf="${my_conf} $(use_enable static-libs static)" - my_conf="${my_conf} $(use_enable tcl)" - my_conf="${my_conf} $(use_enable verilog)" - my_conf="${my_conf} $(use_enable doc doxygen-doc)" - my_conf="${my_conf} $(use_enable doc doxygen-html)" - LDFLAGS="-Wl,-rpath=${BINUTILS_PATH},--enable-new-dtags ${LDFLAGS}" econf ${my_conf} --docdir="${EPREFIX}/usr/share/doc/${PF}" -} - -src_compile() { - emake - if use doc; then - make web-html - make doxygen-doc - fi -} - -src_install() { - emake DESTDIR="${D}" install - dodoc NEWS README* AUTHORS SUPPORT TODO ChangeLog - if use doc; then - dohtml -r doc/web_build/html/* - _E_DOCDESTTREE_="doxygen" dohtml -r doc/doxygen-doc/html/* - fi -} diff --git a/dev-embedded/teensy-hid-listen/ChangeLog b/dev-embedded/teensy-hid-listen/ChangeLog deleted file mode 100644 index 61d2338..0000000 --- a/dev-embedded/teensy-hid-listen/ChangeLog +++ /dev/null @@ -1,12 +0,0 @@ -# ChangeLog for dev-embedded/teensy-hid-listen -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - -*teensy-hid-listen-1.01 (26 Jul 2012) - 26 Jul 2012; W. Trevor King teensy-hid-listen-1.01.ebuild: - - Added initial ChangeLog which should be updated whenever the - package is updated in any way. This changelog is targetted to - users. This means that the comments should well explained and - written in clean English. The details about writing correct - changelogs are explained in the skel.ChangeLog file which you can - find in the root directory of the portage repository. diff --git a/dev-embedded/teensy-hid-listen/Manifest b/dev-embedded/teensy-hid-listen/Manifest deleted file mode 100644 index 2899a05..0000000 --- a/dev-embedded/teensy-hid-listen/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST hid_listen_1.01.zip 73460 RMD160 259855d1e9679e37f632009a4c9be01a7c3c74d6 SHA1 04ee317fd4d0cb88483f5b63016dca87a9e96019 SHA256 9cc73e325dc9265c032c295d93e16aad63e01214f69ee788b0b80cbc16d3b076 -EBUILD teensy-hid-listen-1.01.ebuild 647 RMD160 85790cbdbd2d65d1dd86ba5753ece353b1f90937 SHA1 21d7d8ebbcf2d3b629ef4dea7f209e8b33fc3761 SHA256 ca81a8ac080aaf5e24494308bec255c37ac03a537ebd52985003e66155a14ef2 -MISC ChangeLog 628 RMD160 42f3d1e569a30c8d88d422cce0c0e09e55f98173 SHA1 9384235339d1b9372ca74c266ed9e8e3b772aa02 SHA256 3aeb4e0cceea437a6dfd70d2f58ce64ab25c3890c9cd6c6f48c747d638a49b66 -MISC metadata.xml 247 RMD160 f6a3debfa8f70e039ec74fe92be0de687c8cec20 SHA1 30c46f34b3a777a6ff4f46dd4590b94677594948 SHA256 30b3270d8e655f6c190d3148f49b9364795beb41991502630e6631886ef107ea diff --git a/dev-embedded/teensy-hid-listen/metadata.xml b/dev-embedded/teensy-hid-listen/metadata.xml deleted file mode 100644 index 7b35910..0000000 --- a/dev-embedded/teensy-hid-listen/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - wking@tremily.us - W. Trevor King - - diff --git a/dev-embedded/teensy-hid-listen/teensy-hid-listen-1.01.ebuild b/dev-embedded/teensy-hid-listen/teensy-hid-listen-1.01.ebuild deleted file mode 100644 index 34d5be0..0000000 --- a/dev-embedded/teensy-hid-listen/teensy-hid-listen-1.01.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="4" - -inherit eutils - -MY_PN="${PN//-/_}" -MY_PN="${MY_PN/teensy_}" -DESCRIPTION="Command line HID-raw listener for Teensy microcontrollers" -HOMEPAGE="http://pjrc.com/teensy/${MY_PN}.html" -SRC_URI="http://pjrc.com/teensy/${MY_PN}_${PV}.zip" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND="dev-libs/libusb" -RDEPEND="$DEPEND" - -S="${WORKDIR}/${MY_PN}" - -src_compile() { - emake OS=LINUX "CFLAGS=${CFLAGS}" "LDFLAGS=${LDFLAGS}" STRIP=echo -} - -src_install() { - cp hid_listen teensy_hid_listen - dobin teensy_hid_listen -} diff --git a/dev-embedded/teensy-loader-cli/ChangeLog b/dev-embedded/teensy-loader-cli/ChangeLog deleted file mode 100644 index 214f243..0000000 --- a/dev-embedded/teensy-loader-cli/ChangeLog +++ /dev/null @@ -1,12 +0,0 @@ -# ChangeLog for dev-embedded/teensy-loader-cli -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - -*teensy-loader-cli-2.0 (23 Jul 2012) - 23 Jul 2012; W. Trevor King teensy-loader-cli-2.0.ebuild: - - Added initial ChangeLog which should be updated whenever the - package is updated in any way. This changelog is targetted to - users. This means that the comments should well explained and - written in clean English. The details about writing correct - changelogs are explained in the skel.ChangeLog file which you can - find in the root directory of the portage repository. diff --git a/dev-embedded/teensy-loader-cli/Manifest b/dev-embedded/teensy-loader-cli/Manifest deleted file mode 100644 index 10123db..0000000 --- a/dev-embedded/teensy-loader-cli/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX 49-teensy.rules 351 RMD160 698918dc4fbc18576648c301315ca8359c61f300 SHA1 7fa52c47195a86c328e712b6bce28220cdfacfb9 SHA256 fdf8636c1749a6dc26e1d6f37bf1894d047512d07fcbae36fa51da6455cb1ce9 -DIST teensy_loader_cli.2.0.tar.gz 27044 RMD160 11851edd9a46fc4b929177b8fef54edd5a1aac54 SHA1 2b49231dadc7cae63745ab0e0b0756ef895ccb5c SHA256 0ffd4d4b65fe3c2bce7ef73cf599b0b5279b3101fb843054cd79b0df6e067a96 -EBUILD teensy-loader-cli-2.0.ebuild 1416 RMD160 b274db1962920a562ece7eaadabe3945eca4db26 SHA1 04683f79240acb02637efd5e2adf3a0532062390 SHA256 93667c72726132b870c815ada893f6c6cb7a02999bcf03b220c4b68a3a28840e -MISC ChangeLog 626 RMD160 49e55e33ad18e22e7ba9899d210e95f449012fdb SHA1 613495d45b77448bc47554ecf7423b957d290c14 SHA256 46ee92e2364e65a163cb566acfdeff66228287b8b5035cbd7f4ae5ed8f665275 -MISC metadata.xml 247 RMD160 f6a3debfa8f70e039ec74fe92be0de687c8cec20 SHA1 30c46f34b3a777a6ff4f46dd4590b94677594948 SHA256 30b3270d8e655f6c190d3148f49b9364795beb41991502630e6631886ef107ea diff --git a/dev-embedded/teensy-loader-cli/files/49-teensy.rules b/dev-embedded/teensy-loader-cli/files/49-teensy.rules deleted file mode 100644 index 5f45978..0000000 --- a/dev-embedded/teensy-loader-cli/files/49-teensy.rules +++ /dev/null @@ -1,7 +0,0 @@ -# UDEV Rules for Teensy boards, http://www.pjrc.com/teensy/ -# -# Based on the suggestions at: -# http://www.pjrc.com/teensy/49-teensy.rules - -SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", GROUP:="teensy" -KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", GROUP:="teensy", ENV{ID_MM_DEVICE_IGNORE}="1" diff --git a/dev-embedded/teensy-loader-cli/metadata.xml b/dev-embedded/teensy-loader-cli/metadata.xml deleted file mode 100644 index 7b35910..0000000 --- a/dev-embedded/teensy-loader-cli/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - wking@tremily.us - W. Trevor King - - diff --git a/dev-embedded/teensy-loader-cli/teensy-loader-cli-2.0.ebuild b/dev-embedded/teensy-loader-cli/teensy-loader-cli-2.0.ebuild deleted file mode 100644 index 8570795..0000000 --- a/dev-embedded/teensy-loader-cli/teensy-loader-cli-2.0.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="4" - -inherit eutils - -MY_PN="${PN//-/_}" -DESCRIPTION="Command line programmer for Teensy microcontrollers" -HOMEPAGE="http://pjrc.com/teensy/loader_cli.html" -SRC_URI="http://pjrc.com/teensy/${MY_PN}.${PV}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64" -IUSE="-examples +udev" - -DEPEND="dev-libs/libusb" -RDEPEND="$DEPEND" - -S="${WORKDIR}/${MY_PN}" - -pkg_setup() { - use udev && enewgroup teensy - #groupdel in pkg_postrm()? -} - -src_unpack() { - unpack ${A} - cd "${S}" - # Don't strip the binary (remove -s flag) - sed -i 's/$(CFLAGS) -s /$(CFLAGS) /' Makefile -} - -src_compile() { - emake OS=LINUX "CFLAGS=${CFLAGS}" "LDFLAGS=${LDFLAGS}" -} - -src_install() { - dobin teensy_loader_cli - if use examples; then - dodoc *.hex - fi - if use udev; then - insinto /lib/udev/rules.d - doins "${FILESDIR}/49-teensy.rules" - fi -} - -pkg_postinst() { - if use udev; then - elog "To be able to use Teensy devices, you need to be a" - elog "member of the group 'teensy' which has just been added" - elog "to your system. You can add your user to the group by" - elog "running the following command as root:" - elog - elog " usermod -a -G teensy youruser" - elog - elog "Please be aware that you need to either re-login or run" - elog - elog " newgrp - teensy" - elog - elog "for the group membership to take effect." - fi -} -- 2.26.2