diff options
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/arduino/ChangeLog | 10 | ||||
-rw-r--r-- | dev-embedded/arduino/Manifest | 6 | ||||
-rw-r--r-- | dev-embedded/arduino/arduino-0011.ebuild | 44 | ||||
-rw-r--r-- | dev-embedded/arduino/files/Makefile-0011.patch | 38 | ||||
-rwxr-xr-x | dev-embedded/arduino/files/arduino | 3 | ||||
-rw-r--r-- | dev-embedded/arduino/metadata.xml | 8 |
6 files changed, 109 insertions, 0 deletions
diff --git a/dev-embedded/arduino/ChangeLog b/dev-embedded/arduino/ChangeLog new file mode 100644 index 000000000000..8511e66f3e0f --- /dev/null +++ b/dev-embedded/arduino/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/arduino +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/ChangeLog,v 1.1 2008/09/21 05:03:06 solar Exp $ + +*arduino-0011 (21 Sep 2008) + + 21 Sep 2008; <solar@gentoo.org> +files/Makefile-0011.patch, + +files/arduino, +metadata.xml, +arduino-0011.ebuild: + - Initial Commit + diff --git a/dev-embedded/arduino/Manifest b/dev-embedded/arduino/Manifest new file mode 100644 index 000000000000..0cd9c215a4e2 --- /dev/null +++ b/dev-embedded/arduino/Manifest @@ -0,0 +1,6 @@ +AUX Makefile-0011.patch 1355 RMD160 d6f2e059412c213c7a06055b6b8cfb2ab1b35da9 SHA1 be3240e52e71baab36acd7a300a8ad74cb0992b6 SHA256 da734a41e74c7ced025fbbc209b832e809381739bfbf6553360e8ce2c009d86c +AUX arduino 49 RMD160 5cb54f143b4d69163121fd133f4effa474f2257d SHA1 72b9dc6322353c9474eed33052bc87a636ff1acd SHA256 95d6daf538f4a3d36a16725b8e38ae02b634ff708282b10b5f62678e18289fe4 +DIST arduino-0011-linux.tgz 1361152 RMD160 3020ddaf24440ee132912fd32d05123b9fa38a84 SHA1 4d59a7ceeb8f683e6a616c94cb51e0bfde45f8c3 SHA256 000fa8ce226b6b76d0a30039c645301b97daccaacf082ab53cc8a8f0aaac5e27 +EBUILD arduino-0011.ebuild 1208 RMD160 6ed07ed24ba6bb6c9619473b3dc864c2488101ff SHA1 f92ae4569fafc56d08248c09b5aa56a1eba38235 SHA256 d4d6130717cd26323c8c02122afd717597370b7547a66abbf1b2fd74a011d360 +MISC ChangeLog 287 RMD160 a63eeea291e072ac4991c76b1e3af6b512d8eb18 SHA1 d8232825882e823b1f73dce3d05520d01d4b1f8a SHA256 928bbc3d2faaf125ba9479e9717b58300151f84e1e4a4a5eadd66e61ee263b93 +MISC metadata.xml 229 RMD160 a934867befeafd5ea4b262f492b0fb6e1b3d6451 SHA1 2ca6d09172d4904a069e5ecea4848b6f4d6857a6 SHA256 5e3deff28663b8e5950241ef1cce6fb50b2f28effd9451bf117c796230644177 diff --git a/dev-embedded/arduino/arduino-0011.ebuild b/dev-embedded/arduino/arduino-0011.ebuild new file mode 100644 index 000000000000..5e27c204fc04 --- /dev/null +++ b/dev-embedded/arduino/arduino-0011.ebuild @@ -0,0 +1,44 @@ +# Copyright 2008-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/arduino-0011.ebuild,v 1.1 2008/09/21 05:03:06 solar Exp $ + +inherit eutils + +DESCRIPTION="Arduino is an open-source AVR electronics prototyping platform" +HOMEPAGE="http://arduino.cc/" +SRC_URI="http://www.arduino.cc/files/${P}-linux.tgz" +LICENSE="GPL-2 LGPL-2 CCPL-Attribution-ShareAlike-3.0" +SLOT="0" +KEYWORDS="~x86 ~amd64" +RESTRICT="strip binchecks" +IUSE="java" +RDEPEND="dev-embedded/avrdude" +DEPEND="${RDEPEND} sys-devel/crossdev java? ( virtual/jre dev-embedded/uisp dev-java/jikes dev-java/rxtx )" + +pkg_setup() { + [ ! -x /usr/bin/avr-gcc ] && ewarn "You need to crossdev -s4 avr" +} + +pkg_postinst() { + pkg_setup + einfo "Copy /usr/share/${P}/hardware/cores/arduino/Makefile and edit it to suit the project" +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/Makefile-${PV}.patch + rm -rf hardware/tools/ + if ! use java; then + rm -rf lib + rm -f arduino + fi +} + +src_install() { + mkdir -p "${D}/usr/share/${P}/" "${D}/usr/bin" + cp -a "${S}" "${D}/usr/share/" + chown root:uucp "${D}/usr/share/${P}/hardware" -R + use java && ( sed -e s@__PN__@${P}@g < "${FILESDIR}"/arduino > "${D}/usr/bin/arduino"; chmod +x "${D}/usr/bin/arduino" ) + +} diff --git a/dev-embedded/arduino/files/Makefile-0011.patch b/dev-embedded/arduino/files/Makefile-0011.patch new file mode 100644 index 000000000000..b9790305025e --- /dev/null +++ b/dev-embedded/arduino/files/Makefile-0011.patch @@ -0,0 +1,38 @@ +--- hardware/cores/arduino/Makefile 2008-09-20 20:15:27.000000000 -0700 ++++ hardware/cores/arduino/Makefile 2008-09-20 20:22:19.000000000 -0700 +@@ -37,8 +37,8 @@ + # $Id: Makefile-0011.patch,v 1.1 2008/09/21 05:03:07 solar Exp $ + + TARGET = foo +-INSTALL_DIR = /Users/dmellis/Source/arduino/trunk/build/macosx/build/work +-PORT = /dev/tty.usb* ++INSTALL_DIR = /usr/share/arduino-0011/ ++PORT = /dev/ttyUSB1 + UPLOAD_RATE = 19200 + AVRDUDE_PROGRAMMER = stk500v1 + MCU = atmega168 +@@ -48,7 +48,7 @@ + # Below here nothing should be changed... + + ARDUINO = $(INSTALL_DIR)/hardware/cores/arduino +-AVR_TOOLS_PATH = $(INSTALL_DIR)/hardware/tools/avr/bin ++AVR_TOOLS_PATH = /usr/bin + SRC = $(ARDUINO)/pins_arduino.c $(ARDUINO)/wiring.c \ + $(ARDUINO)/wiring_analog.c $(ARDUINO)/wiring_digital.c \ + $(ARDUINO)/wiring_pulse.c $(ARDUINO)/wiring_serial.c \ +@@ -89,13 +89,13 @@ + CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CSTANDARD) $(CEXTRA) + CXXFLAGS = $(CDEFS) $(CINCS) -O$(OPT) + #ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs +-LDFLAGS = -lm ++LDFLAGS = -L/usr/avr/lib -lm + + + # Programming support using avrdude. Settings and variables. + AVRDUDE_PORT = $(PORT) + AVRDUDE_WRITE_FLASH = -U flash:w:applet/$(TARGET).hex +-AVRDUDE_FLAGS = -V -F -C $(INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf \ ++AVRDUDE_FLAGS = -V -F -C /etc/avrdude.conf \ + -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \ + -b $(UPLOAD_RATE) + diff --git a/dev-embedded/arduino/files/arduino b/dev-embedded/arduino/files/arduino new file mode 100755 index 000000000000..f6b97590109a --- /dev/null +++ b/dev-embedded/arduino/files/arduino @@ -0,0 +1,3 @@ +#!/bin/bash +cd /usr/share/__PN__/ +./arduino "$@" diff --git a/dev-embedded/arduino/metadata.xml b/dev-embedded/arduino/metadata.xml new file mode 100644 index 000000000000..cd5dde44d44e --- /dev/null +++ b/dev-embedded/arduino/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>dev-embedded</herd> + <maintainer> + <email>solar@gentoo.org</email> + </maintainer> +</pkgmetadata> |