From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- dev-embedded/arduino/Manifest | 2 + dev-embedded/arduino/arduino-1.0.5-r1.ebuild | 99 ++++++++++++++++++++++ .../arduino/files/arduino-1.0.1-build.xml.patch | 38 +++++++++ .../arduino/files/arduino-1.0.3-script.patch | 20 +++++ dev-embedded/arduino/files/arduino.desktop | 10 +++ dev-embedded/arduino/metadata.xml | 8 ++ 6 files changed, 177 insertions(+) create mode 100644 dev-embedded/arduino/Manifest create mode 100644 dev-embedded/arduino/arduino-1.0.5-r1.ebuild create mode 100644 dev-embedded/arduino/files/arduino-1.0.1-build.xml.patch create mode 100644 dev-embedded/arduino/files/arduino-1.0.3-script.patch create mode 100644 dev-embedded/arduino/files/arduino.desktop create mode 100644 dev-embedded/arduino/metadata.xml (limited to 'dev-embedded/arduino') 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 @@ + + + +- ++ + +- ++ + + + +@@ -361,16 +361,18 @@ + + + +- +- ++ ++ + +- ++ + + +- ++ ++ + + + + + + dev-embedded + + miknix@gentoo.org + + -- cgit v1.2.3-65-gdbad