summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2009-04-14 22:00:19 +0000
committerNed Ludd <solar@gentoo.org>2009-04-14 22:00:19 +0000
commit79bfa92c4f2f5fb16b71a95dd985044631118cef (patch)
tree4e741b3fa5ef20510bb9abe8ad874d9e874ca418 /dev-embedded/arduino
parentVersion bump. (diff)
downloadgentoo-2-79bfa92c4f2f5fb16b71a95dd985044631118cef.tar.gz
gentoo-2-79bfa92c4f2f5fb16b71a95dd985044631118cef.tar.bz2
gentoo-2-79bfa92c4f2f5fb16b71a95dd985044631118cef.zip
- version bump. Bug 244969
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded/arduino')
-rw-r--r--dev-embedded/arduino/ChangeLog10
-rw-r--r--dev-embedded/arduino/arduino-0015.ebuild55
-rw-r--r--dev-embedded/arduino/files/Makefile-0015.patch38
3 files changed, 101 insertions, 2 deletions
diff --git a/dev-embedded/arduino/ChangeLog b/dev-embedded/arduino/ChangeLog
index 8511e66f3e0f..f1db2a2ce894 100644
--- a/dev-embedded/arduino/ChangeLog
+++ b/dev-embedded/arduino/ChangeLog
@@ -1,6 +1,12 @@
# 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 $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/ChangeLog,v 1.2 2009/04/14 22:00:18 solar Exp $
+
+*arduino-0015 (14 Apr 2009)
+
+ 14 Apr 2009; <solar@gentoo.org> +files/Makefile-0015.patch,
+ +arduino-0015.ebuild:
+ - version bump. Bug 244969
*arduino-0011 (21 Sep 2008)
diff --git a/dev-embedded/arduino/arduino-0015.ebuild b/dev-embedded/arduino/arduino-0015.ebuild
new file mode 100644
index 000000000000..e7412c60171d
--- /dev/null
+++ b/dev-embedded/arduino/arduino-0015.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2008-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/arduino-0015.ebuild,v 1.1 2009/04/14 22:00:18 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/avrdude*
+ 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/"
+ fowners -R root:uucp "/usr/share/${P}/hardware"
+ if use java; then
+ sed -e s@__PN__@${P}@g < "${FILESDIR}"/arduino > "${D}/usr/bin/arduino"
+ chmod +x "${D}/usr/bin/arduino"
+
+ # use system avrdude
+ # patching class files is too hard
+ dosym /usr/bin/avrdude "/usr/share/${P}/hardware/tools/avrdude"
+ dosym /etc/avrdude.conf "/usr/share/${P}/hardware/tools/avrdude.conf"
+
+ # IDE tries to compile these libs at first start up
+ fperms -R g+w "/usr/share/${P}/hardware/libraries"
+ fi
+
+}
diff --git a/dev-embedded/arduino/files/Makefile-0015.patch b/dev-embedded/arduino/files/Makefile-0015.patch
new file mode 100644
index 000000000000..c4f6e410e0de
--- /dev/null
+++ b/dev-embedded/arduino/files/Makefile-0015.patch
@@ -0,0 +1,38 @@
+--- hardware/cores/arduino/Makefile 2009-04-14 16:48:57.000000000 -0400
++++ hardware/cores/arduino/Makefile 2009-04-14 16:51:56.000000000 -0400
+@@ -35,8 +35,8 @@
+ # $Id: Makefile-0015.patch,v 1.1 2009/04/14 22:00:19 solar Exp $
+
+ TARGET = $(notdir $(CURDIR))
+-INSTALL_DIR = /Users/dmellis/Source/arduino/trunk/build/macosx/build/work
+-PORT = /dev/tty.usb*
++INSTALL_DIR = /usr/share/arduino-0015/
++PORT = /dev/ttyUSB1
+ UPLOAD_RATE = 19200
+ AVRDUDE_PROGRAMMER = stk500v1
+ MCU = atmega168
+@@ -46,7 +46,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 \
+@@ -88,13 +88,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)
+