diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-embedded/arduino | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-embedded/arduino')
-rw-r--r-- | dev-embedded/arduino/Manifest | 2 | ||||
-rw-r--r-- | dev-embedded/arduino/arduino-1.0.5-r1.ebuild | 99 | ||||
-rw-r--r-- | dev-embedded/arduino/files/arduino-1.0.1-build.xml.patch | 38 | ||||
-rw-r--r-- | dev-embedded/arduino/files/arduino-1.0.3-script.patch | 20 | ||||
-rw-r--r-- | dev-embedded/arduino/files/arduino.desktop | 10 | ||||
-rw-r--r-- | dev-embedded/arduino/metadata.xml | 8 |
6 files changed, 177 insertions, 0 deletions
diff --git a/dev-embedded/arduino/Manifest b/dev-embedded/arduino/Manifest new file mode 100644 index 000000000000..de225ccf6748 --- /dev/null +++ b/dev-embedded/arduino/Manifest @@ -0,0 +1,2 @@ +DIST arduino-1.0.5-src.tar.gz 40526292 SHA256 2f222c944d317dcae40c2d9a1e8ca8c2092f1fff4e3d1814c609209ffc9afe17 SHA512 0401bf6051a48d343f9e4e822446a846b2c6446c68949efe5daf5f5445114312eecb9c99a4565ab2e2f80831aaa32122ecc21f81c8a97136704482cd0f1f1c00 WHIRLPOOL 9176557007b039dae097dd96fc6a56956117ec879f3689005493bb19f54909e6f502672c92e81cb8bdc24b3a661881ffd696e7179b4dfc4a68af38a8d05cee93 +DIST arduino-icons.tar.bz2 58775 SHA256 9086ae27a13cc19e428ed7e6434366752b33a7d066b5620bfdd371709277390e SHA512 b750e79d6117f5df619f2b765dad6e64f0ba4aa3314b0b6e00801577e3ea1f15951ba15efe7a00f5317285a19ac29ac41c78b71342f45cd164c794a42bafcdd9 WHIRLPOOL b53ab3ff2981ca9f6d45311b9f885ca831700a7a49fef4a376cdc489f7cc3a6c39fbb93994b962b6854b0833d7342b951b5c6327422aafce762f92952b7a5876 diff --git a/dev-embedded/arduino/arduino-1.0.5-r1.ebuild b/dev-embedded/arduino/arduino-1.0.5-r1.ebuild new file mode 100644 index 000000000000..2c9fa48a4ddb --- /dev/null +++ b/dev-embedded/arduino/arduino-1.0.5-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +JAVA_PKG_IUSE="doc examples" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="An open-source AVR electronics prototyping platform" +HOMEPAGE="http://arduino.cc/ http://arduino.googlecode.com/" +SRC_URI="http://${PN}.googlecode.com/files/${P}-src.tar.gz +mirror://gentoo/arduino-icons.tar.bz2" +LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 x86" +RESTRICT="strip binchecks" +IUSE="" + +COMMONDEP=" +dev-java/jna:0 +>dev-java/rxtx-2.1:2" + +RDEPEND="${COMMONDEP} +dev-embedded/avrdude +dev-embedded/uisp +sys-devel/crossdev +>=virtual/jre-1.5" + +DEPEND="${COMMONDEP} +>=virtual/jdk-1.5" + +EANT_GENTOO_CLASSPATH="jna,rxtx-2" +EANT_EXTRA_ARGS="-Dversion=${PV}" +EANT_BUILD_TARGET="build" +JAVA_ANT_REWRITE_CLASSPATH="yes" + +java_prepare() { + # Remove the libraries to ensure the system + # libraries are used + rm build/linux/dist/tools/avrdude* || die + rm build/linux/dist/lib/* || die + rm app/lib/* || die + rm -rf app/src/processing/app/macosx || die + # Patch build/build.xml - remove local jar files + # for rxtx and ecj (use system wide versions) + epatch "${FILESDIR}"/${PN}-1.0.1-build.xml.patch + + # Patch launcher script to include rxtx class/ld paths + epatch "${FILESDIR}"/${PN}-1.0.3-script.patch +} + +src_compile() { + eant -f core/build.xml + EANT_GENTOO_CLASSPATH_EXTRA="../core/core.jar" + eant -f app/build.xml + eant "${EANT_EXTRA_ARGS}" -f build/build.xml +} + +src_install() { + cd "${S}"/build/linux/work || die + java-pkg_dojar lib/core.jar lib/pde.jar + java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --main processing.app.Base + + if use examples; then + java-pkg_doexamples examples + docompress -x /usr/share/doc/${P}/examples/ + fi + + if use doc; then + dodoc revisions.txt "${S}"/readme.txt + dohtml -r reference + java-pkg_dojavadoc "${S}"/build/javadoc/everything + fi + + insinto "/usr/share/${PN}/" + doins -r hardware libraries + fowners -R root:uucp "/usr/share/${PN}/hardware" + + insinto "/usr/share/${PN}/lib" + doins -r lib/*.txt lib/theme lib/*.jpg + + # use system avrdude + # patching class files is too hard + dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude" + dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avrdude.conf" + + # install menu and icons + domenu "${FILESDIR}/${PN}.desktop" + for sz in 16 24 32 48 128 256; do + newicon -s $sz \ + "${WORKDIR}/${PN}-icons/debian_icons_${sz}x${sz}_apps_${PN}.png" \ + "${PN}.png" + done +} + +pkg_postinst() { + [ ! -x /usr/bin/avr-g++ ] && ewarn "Missing avr-g++; you need to crossdev -s4 avr" +} diff --git a/dev-embedded/arduino/files/arduino-1.0.1-build.xml.patch b/dev-embedded/arduino/files/arduino-1.0.1-build.xml.patch new file mode 100644 index 000000000000..afde2e05b661 --- /dev/null +++ b/dev-embedded/arduino/files/arduino-1.0.1-build.xml.patch @@ -0,0 +1,38 @@ +--- arduino-1.0.1/build/build.xml 2012-04-09 00:16:12.000000000 +0100 ++++ arduino-1.0.1/build/build.xml 2012-06-25 06:12:09.000000000 +0100 +@@ -24,9 +24,9 @@ + <fileset dir=".." id="runtime.jars"> + <include name="core/core.jar" /> + <include name="app/pde.jar" /> +- <include name="app/lib/ecj.jar" /> ++<!-- <include name="app/lib/ecj.jar" /> --> + <include name="app/lib/jna.jar" /> +- <include name="app/lib/RXTXcomm.jar" /> ++<!-- <include name="app/lib/RXTXcomm.jar" /> --> + <include name="app/lib/ant.jar" /> + <include name="app/lib/ant-launcher.jar" /> + </fileset> +@@ -361,16 +361,18 @@ + </target> + + <target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version"> +- <copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" /> +- <copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" /> ++<!-- <copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" /> --> ++<!-- <copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" /> --> + +- <chmod perm="755" file="linux/work/hardware/tools/avrdude" /> ++<!-- <chmod perm="755" file="linux/work/hardware/tools/avrdude" /> --> + + <!-- Unzip AVR tools --> +- <exec executable="tar" dir="linux/work/hardware"> ++<!-- Removed by Paulj - use system installed instead --> ++<!-- <exec executable="tar" dir="linux/work/hardware"> + <arg value="-xjf"/> + <arg value="../../avr_tools_linux64.tar.bz2"/> +- </exec> ++ </exec> ++--> + </target> + + <target name="linux32-run" depends="linux32-build" diff --git a/dev-embedded/arduino/files/arduino-1.0.3-script.patch b/dev-embedded/arduino/files/arduino-1.0.3-script.patch new file mode 100644 index 000000000000..b4accc8959a1 --- /dev/null +++ b/dev-embedded/arduino/files/arduino-1.0.3-script.patch @@ -0,0 +1,20 @@ +diff --git a/build/linux/dist/arduino b/build/linux/dist/arduino +index b5eb9db..3f3b4aa 100644 +--- a/build/linux/dist/arduino ++++ b/build/linux/dist/arduino +@@ -10,11 +10,13 @@ for LIB in \ + lib/*.jar \ + ; + do +- CLASSPATH="${CLASSPATH}:${LIB}" ++ CLASSPATH="${CLASSPATH+$CLASSPATH:}${LIB}" ++ + done ++CLASSPATH="${CLASSPATH+$CLASSPATH:}:$(java-config -dp rxtx-2)" + export CLASSPATH + +-LD_LIBRARY_PATH=`pwd`/lib${LD_LIBRARY_PATH:+:$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}" diff --git a/dev-embedded/arduino/files/arduino.desktop b/dev-embedded/arduino/files/arduino.desktop new file mode 100644 index 000000000000..b75dea564b5d --- /dev/null +++ b/dev-embedded/arduino/files/arduino.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Name=arduino +Comment=Open-source electronics prototyping platform +Exec=arduino +Icon=arduino +Terminal=false +Type=Application +Categories=Development; +StartupNotify=false diff --git a/dev-embedded/arduino/metadata.xml b/dev-embedded/arduino/metadata.xml new file mode 100644 index 000000000000..70282d0d7284 --- /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>miknix@gentoo.org</email> + </maintainer> +</pkgmetadata> |