diff options
author | Joe Sapp <nixphoeni@gentoo.org> | 2009-10-17 18:15:11 +0000 |
---|---|---|
committer | Joe Sapp <nixphoeni@gentoo.org> | 2009-10-17 18:15:11 +0000 |
commit | 2e05c4c8937702e1fbfaedad0726daf6a87a7e24 (patch) | |
tree | 38bf563bafc1a3b7c83c64f711c11b206159c119 /dev-embedded | |
parent | Depend on libvformat (#264584) (diff) | |
download | historical-2e05c4c8937702e1fbfaedad0726daf6a87a7e24.tar.gz historical-2e05c4c8937702e1fbfaedad0726daf6a87a7e24.tar.bz2 historical-2e05c4c8937702e1fbfaedad0726daf6a87a7e24.zip |
Version bump
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/arduino/ChangeLog | 8 | ||||
-rw-r--r-- | dev-embedded/arduino/Manifest | 6 | ||||
-rw-r--r-- | dev-embedded/arduino/arduino-0017.ebuild | 66 | ||||
-rw-r--r-- | dev-embedded/arduino/files/Makefile-0017.patch | 38 | ||||
-rw-r--r-- | dev-embedded/arduino/files/arduino-script-0017.patch | 20 |
5 files changed, 136 insertions, 2 deletions
diff --git a/dev-embedded/arduino/ChangeLog b/dev-embedded/arduino/ChangeLog index c4d3f042206b..d234a700bcf6 100644 --- a/dev-embedded/arduino/ChangeLog +++ b/dev-embedded/arduino/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-embedded/arduino # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/ChangeLog,v 1.4 2009/04/24 22:55:42 nixphoeni Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/ChangeLog,v 1.5 2009/10/17 18:15:07 nixphoeni Exp $ + +*arduino-0017 (17 Oct 2009) + + 17 Oct 2009; Joe Sapp <nixphoeni@gentoo.org> +arduino-0017.ebuild, + +files/Makefile-0017.patch, +files/arduino-script-0017.patch: + Version bump (bug #289205) 24 Apr 2009; Joe Sapp <nixphoeni@gentoo.org> metadata.xml, arduino-0015-r1: diff --git a/dev-embedded/arduino/Manifest b/dev-embedded/arduino/Manifest index 9c58a6d63993..7f16737a47e1 100644 --- a/dev-embedded/arduino/Manifest +++ b/dev-embedded/arduino/Manifest @@ -1,7 +1,11 @@ AUX Makefile-0011.patch 1413 RMD160 677cb0b9664e0379103cb48866d31e6f91d65b12 SHA1 e9884501b2ebea909b84cb7350f7b5f8a5e7189b SHA256 5ef1676f842f7c7f141919a72006839a154bf69990f4ef38d2fe7c79b3b63401 AUX Makefile-0015.patch 1429 RMD160 ee3535e9f596cf01e68f7b1b430bcf9fa83107cf SHA1 32dae6f370e5338f37967953bb3feea916fcb609 SHA256 60439c7edf4a9e9d16e66e47549695a89e3b1bd9216499ffad47709e55a6bf3e +AUX Makefile-0017.patch 1381 RMD160 2dc4b0863f880180602aed802d62817edfc8e2a0 SHA1 d0018d925dfeebd995c3f5b5aa95c2df28fb2734 SHA256 9e0a617434bb483f083fc73322ceb8cfa29f33247609745ca0da437e774ad9f5 AUX arduino 49 RMD160 5cb54f143b4d69163121fd133f4effa474f2257d SHA1 72b9dc6322353c9474eed33052bc87a636ff1acd SHA256 95d6daf538f4a3d36a16725b8e38ae02b634ff708282b10b5f62678e18289fe4 +AUX arduino-script-0017.patch 688 RMD160 0ab5d830d7175c1b8286635cd656269109f355ed SHA1 c93ac06a1bf11b6eb49223a8773f37e9e54bb076 SHA256 a7ab22ccfe2ac2022e54239b333fad238bbc8edf99e274e4c3c6bee58943dc67 DIST arduino-0015-linux.tgz 1389657 RMD160 6c1de452a0c3936c3cd658fe8784d593aa388cdf SHA1 9f6876449640f287f0c42d821e80e96017f3ddf3 SHA256 5eee994268a7f7227c6bf4ecb9290a256566c051fc0c215a91adbe7f314432fb +DIST arduino-0017.tgz 4141675 RMD160 555ae7611d9335305ae60a28b901d2ade9cb4d8a SHA1 f40828b2bd2a229cb5ccec56afc70602e866dfc4 SHA256 0b9e61dbcd8577eb90e5f498f2a416659d7994f92e0a9a10e25619803f36a7e7 EBUILD arduino-0015-r1.ebuild 2288 RMD160 0f518fb54255f2ff32528d30a26cd38241c20b2d SHA1 fac85b44f9d6e593cef04ffdae77459f4925416f SHA256 2de7aa7a257e9c83f7c535fe1fdd70e5c02fe8c96cd75d474aa0b9c722f71ae8 -MISC ChangeLog 1170 RMD160 9b1e2833cd19f7cdbb284a5dca1a1af1b4f2a379 SHA1 eb7c4aca0208a4bceab156adef0e265aba5f37e3 SHA256 4ef6be04db05fca513a443d2f2bfb324f319c9da9fb8a3a350faf7922e8fb9c5 +EBUILD arduino-0017.ebuild 2119 RMD160 f31820968eecacc58e56d3c6d98efcd67beaee71 SHA1 f3dd9833a0b6d0af5a38e4399094275784f63a3b SHA256 df7f350f4b22f64c5e09ee4e3e475248a6ed4fff9770653c3e21db7bc13a2440 +MISC ChangeLog 1362 RMD160 879588b7335b6a8d4c7bddc628a6d4d5e4b45fcf SHA1 251eeb9c6ec3872755cf60d629b58c0ec13d2d4e SHA256 32c404818895f1209c7ad447503a16a74e6a41b4db613966a6c4279bf6db3076 MISC metadata.xml 296 RMD160 257fb7c49fdb92d61b27af23898c128dee0ca360 SHA1 5985105860fe1c29409bfe51141c04ce655e4587 SHA256 eaa506a8c6d17aeb12582aeb742f6675ea7ab7d638a0ab74b9aa00fbd8674d8f diff --git a/dev-embedded/arduino/arduino-0017.ebuild b/dev-embedded/arduino/arduino-0017.ebuild new file mode 100644 index 000000000000..ea736b390c1d --- /dev/null +++ b/dev-embedded/arduino/arduino-0017.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/arduino-0017.ebuild,v 1.1 2009/10/17 18:15:07 nixphoeni Exp $ + +EAPI=2 +inherit eutils + +DESCRIPTION="Arduino is an open-source AVR electronics prototyping platform" +HOMEPAGE="http://arduino.cc/" +SRC_URI="http://www.arduino.cc/files/${P}.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 sys-devel/crossdev" +DEPEND="${RDEPEND} java? ( virtual/jre dev-embedded/uisp dev-java/jikes dev-java/rxtx dev-java/antlr )" + +pkg_setup() { + [ ! -x /usr/bin/avr-g++ ] && ewarn "Missing avr-g++; 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_prepare() { + epatch "${FILESDIR}"/Makefile-${PV}.patch + rm -rf hardware/tools/avrdude* + if ! use java; then + rm -rf lib + rm -f arduino + else + # fix the provided arduino script to call out the right + # libraries, remove resetting of $PATH, and fix its + # reference to LD_LIBRARY_PATH (see bug #189249) + epatch "${FILESDIR}"/arduino-script-${PV}.patch + 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" + + # get rid of libraries provided by other packages + rm -f "${D}/usr/share/${P}/lib/RXTXcomm.jar" + rm -f "${D}/usr/share/${P}/lib/librxtxSerial.so" + rm -f "${D}/usr/share/${P}/lib/antlr.jar" + rm -f "${D}/usr/share/${P}/lib/ecj.jar" + + # 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 + + dodoc readme.txt +} diff --git a/dev-embedded/arduino/files/Makefile-0017.patch b/dev-embedded/arduino/files/Makefile-0017.patch new file mode 100644 index 000000000000..cee474142192 --- /dev/null +++ b/dev-embedded/arduino/files/Makefile-0017.patch @@ -0,0 +1,38 @@ +--- hardware/cores/arduino/Makefile 2009-10-16 23:18:21.000000000 -0400 ++++ hardware/cores/arduino/Makefile 2009-10-16 23:20:02.000000000 -0400 +@@ -35,8 +35,8 @@ + # $Id: Makefile-0017.patch,v 1.1 2009/10/17 18:15:11 nixphoeni Exp $ + + TARGET = $(notdir $(CURDIR)) +-INSTALL_DIR = ../../.. +-PORT = /dev/tty.usb* ++INSTALL_DIR = /usr/share/arduino-0017 ++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) + diff --git a/dev-embedded/arduino/files/arduino-script-0017.patch b/dev-embedded/arduino/files/arduino-script-0017.patch new file mode 100644 index 000000000000..aaad17e8ec73 --- /dev/null +++ b/dev-embedded/arduino/files/arduino-script-0017.patch @@ -0,0 +1,20 @@ +--- arduino 2009-08-11 19:00:04.000000000 -0400 ++++ arduino 2009-10-17 13:39:14.000000000 -0400 +@@ -8,14 +8,14 @@ + lib/*.jar \ + ; + do +- CLASSPATH="${CLASSPATH}:${APPDIR}/${LIB}" ++ CLASSPATH="${CLASSPATH+$CLASSPATH:}${APPDIR}/${LIB}" + done ++CLASSPATH="${CLASSPATH+$CLASSPATH:}$(java-config -dp antlr)" ++CLASSPATH="${CLASSPATH+$CLASSPATH:}$(java-config -dp rxtx-2)" + export CLASSPATH + +-LD_LIBRARY_PATH=`pwd`/lib:${LD_LIBRARY_PATH} ++LD_LIBRARY_PATH="$(java-config -di rxtx-2)${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}" + export LD_LIBRARY_PATH + +-export PATH="${APPDIR}/java/bin:${PATH}" +- + java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base |