Major cleanup

This commit is contained in:
layman
2016-07-08 15:04:50 +02:00
parent 528b4c8758
commit 7ca66cca1a
127 changed files with 19 additions and 103663 deletions
-4
View File
@@ -1,4 +0,0 @@
AUX arduino-builder-1.3.14-codereview-patch.patch 1057 SHA256 2d45cc8c5a237fcca4c9cb1cc92068591774d9e592c0cd89bdc0e68ae5f758d0 SHA512 943e8e1a72411a83af4e801230471275a2bc08f6d6d9805b41d8346902bce013d55948591a3a787b12e97f346c943a32674c765fa1c7ec335990e37a598f9de8 WHIRLPOOL 28bf96fd384df502b59935379e9047ef044ae5cd92caa4b248be637d29baa9c3158b773070c3827df157902461503daab1d563603899cccfc514aa309db126c8
DIST 1.3.14.tar.gz 200770 SHA256 efd3cd07b86c9f42a15bae2054ac26b084ff8806ae31b9de565fb0a652b07507 SHA512 9c920e8ef66790aa91985936b2b836ad6ab8b97a6110634fc2dbd0e023676d0131f845e05a07ee10df36967adcc46c1312869a269a28798c705ba0ad1b93dfc5 WHIRLPOOL 68703cea60ff6fe8f9fc9297897adc69cc6bf0232935586e4fb7275aeb0e8d70fb04568697e72eeb7026bfac890d3593e9bd4027ce66dc8fdb30e6cea932b337
EBUILD arduino-builder-1.3.14.ebuild 1027 SHA256 c1db9e03232811bc1e16f6db3f768ba219db4181d6ece8b4a7d7179d93be5602 SHA512 2caf5614ca59096c559d70108d2c3201aa0eb1f50cf78ed88c6cd9676f3766d7cb383ecf5c09daa4d635bdb33fdf0ee55a486e289333e3f2af4b237ec39cffcf WHIRLPOOL e738c222e9ade7e03562c1b6168d44db57ad89b82e9d2eb41f079695010667d57375eb8ae63ab1200b997a1522fd6c0173cb0a2b342cf3985f8b4d5a2fc72416
MISC metadata.xml 208 SHA256 91ad1c1aa6da2120f2a36c6b31826659af1eb7ebc30b62bb537795296c80ad68 SHA512 b53b2af56213a10dea345cecbacd72494d9a84e794274b2739837893a2fdec5ff71d66d8000375c440762734fff7f83a415ff6c44aa759b5bda7be21e983b79e WHIRLPOOL 32934c3a294d9bbbcadec4b77a0968f9f9cad6df554a58cd85d916d05d5a80311d1bbe3945b81662982fb9a7dccf64b8f0170c35bc716e1bb4d0219b8b0d16ed
@@ -1,47 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils golang-build
EGO_PN="arduino.cc/builder/..."
DESCRIPTION="A command line tool for compiling Arduino sketches"
HOMEPAGE="https://github.com/arduino/arduino-builder"
SRC_URI="https://github.com/arduino/${PN}/archive/${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="sys-devel/crossdev
>=dev-util/ctags-5.8_p20160314"
DEPEND=">=dev-lang/go-1.4.3
dev-go/errors
dev-go/testify
dev-go/go-junit-report"
src_prepare() {
epatch "${FILESDIR}/arduino-builder-1.3.14-codereview-patch.patch"
}
src_compile() {
golang-build_src_compile
set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
go build -v -work -x ${EGO_BUILD_FLAGS} -o arduino-builder main.go
echo "$@"
"$@" || die
}
src_install() {
golang-build_src_install
dobin arduino-builder
}
pkg_postinst() {
[ ! -x /usr/bin/avr-gcc ] && ewarn "Missing avr-gcc; you need to crossdev -s4 avr"
}
@@ -1,32 +0,0 @@
--- src/arduino.cc/builder/test/helper_tools_downloader.go.orig 2016-03-14 22:40:25.937123887 -0400
+++ src/arduino.cc/builder/test/helper_tools_downloader.go 2016-03-14 22:49:35.922357747 -0400
@@ -38,7 +38,6 @@
"encoding/json"
"fmt"
"github.com/go-errors/errors"
- "golang.org/x/codereview/patch"
"io"
"io/ioutil"
"net/http"
@@ -147,21 +146,6 @@
}
func patchFiles(t *testing.T) {
- files, err := ioutil.ReadDir(PATCHES_FOLDER)
- NoError(t, err)
-
- for _, file := range files {
- if filepath.Ext(file.Name()) == ".patch" {
- data, err := ioutil.ReadFile(Abs(t, filepath.Join(PATCHES_FOLDER, file.Name())))
- NoError(t, err)
- patchSet, err := patch.Parse(data)
- NoError(t, err)
- operations, err := patchSet.Apply(ioutil.ReadFile)
- for _, op := range operations {
- utils.WriteFileBytes(op.Dst, op.Data)
- }
- }
- }
}
func download(t *testing.T, cores, boardsManagerCores, boardsManagerRedBearCores []Core, tools, toolsMultipleVersions, boardsManagerTools, boardsManagerRFduinoTools []Tool, libraries []Library) {
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>junk4me46806@yahoo.com</email>
</maintainer>
</pkgmetadata>
-6
View File
@@ -1,6 +0,0 @@
AUX arduino-core-1.6.9-platform.patch 1102 SHA256 f6be9de0fadac8a462e1fb419517aaf7fa65424bb839946c5af93d2ae8d65d84 SHA512 50744007c6445fb76466c0446fb2c5cc2bb9e5fa0dda1c599a90b71aae6f7a5240ac1253845807b82ca8c74a0137d81019db3372277ff1f35c182eb6d8facccc WHIRLPOOL 4b7a72464247548f917589eb99699a51ff381707e5cf20f93b0536c07db48c208b30b3c4766b6013f98d0c8b0c0fa272fc81cf2e353f922e43a8844e958adbb8
AUX platform-1.6.9/platform.keys.rewrite.txt 7194 SHA256 3669990c14facbbf13cde0483f4f7961b958b6ffd17f6115b08a3a43f0e63c0c SHA512 913b183eb5828fbebe565c259cd199e7c97d56af8e13d0b516fe825716feecdba8cd298b97bd24efac2612eae8c4f30c35f9b82d7499a6ae6256e1ee48510470 WHIRLPOOL 0c836b2d0bcc0781ca5791cb83797a412b79b7a43bd5e094b59a33d6844fedfe46f56047c1c2b8ee631c114688551d83614a98dac99f85071a9e57cac7f27492
AUX platform-1.6.9/platform.txt 1393 SHA256 85d3db3f4136b8a1ea843e8fe71c201dafb86fb93071cf9fdd38654a9b20a78b SHA512 250ea74fd1dbe4a9fd736766925fb7d60eaec4d70af6c7586e0709cf4b4da783edd82a642cd4a9c96006548f3db21fa4e6c84e2ed77d9bf0bc76219061d71def WHIRLPOOL 4282a46bd28df17dfa543725f7b730f23dfccb7b9bbfd470455e8c93b4badc9c489bfe08b898a35b1c4d23ec31475d30f126c2069d5851c31c48a5f615d109b9
DIST 1.6.9.tar.gz 81103494 SHA256 0927e4d6bb24fd297765aaf529fe7b16a7da3223848e7b40cdc9843d4246f98d SHA512 92b3508068e3aae6a88c3a395d0906fb63d2fd8ee20d003173b96f3f0ff6851eddcdb77c6349dfec3ad0ee36976f53432c643f56724490e9187d4af049fd4bf8 WHIRLPOOL 841ebd6e4c23b610f87a5254b888a31bd9b36ea162f52f9301b8cc0af2288cb7cff83f130f7f3a03ca71fdaf471818f2faea99ab3f1c64b233d7d504b7ac0049
EBUILD arduino-core-1.6.9.ebuild 1125 SHA256 e1a7a838e94bb4b5b7797e157b28bc5e98480bfe8d0061a14e30caf82fc8b896 SHA512 40e3dcd1e55029c0c3d54becb7b5d23e4a03fae8e2f2e03e378a0d732cd25c3a2bf9575a3d010ef6d16498e49a42ef5c03a2a9fe0c3f0a3beaf23b2879616e1a WHIRLPOOL a8a31bb5d3c6248aca3718ff3611ae3c724f04d257e68115d88d83d08a7451a8b35ba4bfcc40d46ac515c9a1ad5b4c415afbb7e7d7bda2cf4e52c912ac5dc555
MISC metadata.xml 208 SHA256 91ad1c1aa6da2120f2a36c6b31826659af1eb7ebc30b62bb537795296c80ad68 SHA512 b53b2af56213a10dea345cecbacd72494d9a84e794274b2739837893a2fdec5ff71d66d8000375c440762734fff7f83a415ff6c44aa759b5bda7be21e983b79e WHIRLPOOL 32934c3a294d9bbbcadec4b77a0968f9f9cad6df554a58cd85d916d05d5a80311d1bbe3945b81662982fb9a7dccf64b8f0170c35bc716e1bb4d0219b8b0d16ed
@@ -1,50 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils
DESCRIPTION="An open-source AVR electronics prototyping platform"
HOMEPAGE="http://arduino.cc/"
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="strip binchecks"
RDEPEND="
dev-embedded/arduino-builder
dev-embedded/avrdude
dev-embedded/uisp"
DEPEND="
!dev-embedded/arduino"
S="${WORKDIR}/Arduino-${PV}"
SHARE="/usr/share/${PN}"
src_prepare() {
epatch "${FILESDIR}/${P}-platform.patch"
cp "${FILESDIR}/platform-${PV}/"* hardware/
}
src_install() {
insinto "${SHARE}"
rm -fr hardware/tools
doins -r hardware libraries
fowners -R root:uucp "${SHARE}"
# Use system arduino-builder
dosym /usr/bin/arduino-builder "${SHARE}/arduino-builder"
# Install examples (NOT optional, needed for application startup)
doins -r "${S}/build/shared/examples"
# hardware/tools/avr needs to exist or arduino-builder will
# complain about missing required -tools arg
dodir "${SHARE}/hardware/tools/avr"
}
@@ -1,24 +0,0 @@
diff -ur Arduino-1.6.9.orig/hardware/arduino/avr/platform.txt Arduino-1.6.9/hardware/arduino/avr/platform.txt
--- Arduino-1.6.9.orig/hardware/arduino/avr/platform.txt 2016-05-10 10:36:07.000000000 +0200
+++ Arduino-1.6.9/hardware/arduino/avr/platform.txt 2016-07-04 22:38:17.670917983 +0200
@@ -18,7 +18,7 @@
compiler.warning_flags.all=-Wall -Wextra
# Default "compiler.path" is correct, change only if you want to override the initial value
-compiler.path={runtime.tools.avr-gcc.path}/bin/
+compiler.path=/usr/bin/
compiler.c.cmd=avr-gcc
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
@@ -91,9 +91,9 @@
# AVR Uploader/Programmers tools
# ------------------------------
-tools.avrdude.path={runtime.tools.avrdude.path}
+tools.avrdude.path=/usr
tools.avrdude.cmd.path={path}/bin/avrdude
-tools.avrdude.config.path={path}/etc/avrdude.conf
+tools.avrdude.config.path=/etc/avrdude.conf
tools.avrdude.upload.params.verbose=-v
tools.avrdude.upload.params.quiet=-q -q
@@ -1,42 +0,0 @@
old.0.compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
new.0.compiler.path={runtime.tools.avr-gcc.path}/bin/
old.1.tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude
new.1.tools.avrdude.cmd.path={path}/bin/avrdude
old.2.tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
new.2.tools.avrdude.config.path={path}/etc/avrdude.conf
old.3.compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/
new.3.compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
old.4.tools.bossac.path={runtime.ide.path}/hardware/tools
new.4.tools.bossac.path={runtime.tools.bossac.path}
old.5.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc
new.5.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/core/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc
#specific to RedBearLab nRF51822 Boards
old.6.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -mcpu={build.mcu} -mthumb -Wl,--gc-sections --specs=nano.specs -Wl,--wrap,main -Wl,-Map={build.path}/{build.project_name}.map,--cref "-T{build.variant.path}/{build.ldscript}" -o "{build.path}/{build.project_name}.elf" -Wl,--start-group "{build.path}/system_nrf51.c.o" {object_files} "{build.path}/startup_NRF51822.s.o" "{build.path}/{archive_file}" -Wl,--end-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
new.6.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -mcpu={build.mcu} -mthumb -Wl,--gc-sections --specs=nano.specs -Wl,--wrap,main -Wl,-Map={build.path}/{build.project_name}.map,--cref "-T{build.variant.path}/{build.ldscript}" -o "{build.path}/{build.project_name}.elf" -Wl,--start-group "{build.path}/core/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c.o" {object_files} "{build.path}/core/startup_NRF51822.S.o" "{build.path}/{archive_file}" -Wl,--end-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
#specific to RFduino 1.6.3
old.7.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} {build.extra_flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" -Wl,--cref -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "{build.path}/syscalls.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.variant.path}/libRFduino.a" "{build.variant.path}/libRFduinoBLE.a" "{build.variant.path}/libRFduinoGZLL.a" "{build.path}/{archive_file}" -Wl,--end-group
new.7.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} {build.extra_flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" -Wl,--cref -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "{build.path}/core/syscalls.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.variant.path}/libRFduino.a" "{build.variant.path}/libRFduinoBLE.a" "{build.variant.path}/libRFduinoGZLL.a" "{build.path}/{archive_file}" -Wl,--end-group
old.8.recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}"
new.8.recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
old.9.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "{build.path}/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc
new.9.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "{build.path}/core/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc
#specific to Digistump AVR Boards 1.5.4
old.10.recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}"
new.10.recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}"
old.11.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" "-L{build.path}" -lm
new.11.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} -o "{build.path}/{build.project_name}.elf" {object_files} "{archive_file_path}" "-L{build.path}" -lm
#generic again
old.12.recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}"
new.12.recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{preprocessed_file_path}"
@@ -1,13 +0,0 @@
# ctags
# ------------------------------
tools.ctags.path=/usr/bin
tools.ctags.cmd.path={path}/ctags
tools.ctags.pattern="{cmd.path}" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}"
preproc.includes.flags=-w -x c++ -M -MG -MP
preproc.includes.compatibility_flags={build.mbed_api_include} {build.nRF51822_api_include} {build.ble_api_include} {compiler.libsam.c.flags} {compiler.arm.cmsis.path} {build.variant_system_include}
recipe.preproc.includes="{compiler.path}{compiler.cpp.cmd}" {preproc.includes.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {preproc.includes.compatibility_flags} {includes} "{source_file}"
preproc.macros.flags=-w -x c++ -E -CC
preproc.macros.compatibility_flags={build.mbed_api_include} {build.nRF51822_api_include} {build.ble_api_include} {compiler.libsam.c.flags} {compiler.arm.cmsis.path} {build.variant_system_include}
recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpreprocessor.flags} {compiler.cpp.flags} {preproc.macros.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {preproc.macros.compatibility_flags} {includes} "{source_file}" -o "{preprocessed_file_path}"
-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>junk4me46806@yahoo.com</email>
</maintainer>
</pkgmetadata>
-7
View File
@@ -1,7 +0,0 @@
AUX arduino-ide-1.6.9-build.xml.patch 3781 SHA256 6846ed1447d4181ef7ed5c6229bd09a2d4123c9b7d85d0ed4f1b296c1dfd13e9 SHA512 00690ad45079a67c100ebe67565356a4d4a179f6be4a683c30ecf1310519325144d6bd284e70dc4cfa2262ca4a02019bd62564d84e5fe97e6f23d5da9f4480b2 WHIRLPOOL f9c0c3d588228d57e906996aed996e8d2605a5e2146d7228448a96d36293435e7cb20c7543248f99bd2760b2a281710bfb9ac82a086fce067d10fb46c86c7d78
AUX arduino-ide-1.6.9-no-doc.patch 1478 SHA256 6da2bcab4034172fd773eae3fd22ba0f98798d55714b4408b32b722f7c337774 SHA512 708a954fe56b7713cab67a2bd4d5187ba9946567b2e6c712ca9fdda0bc44677017d63c164c4d36dae1875c31daa73f7aa8abed1829848d45041848c895517b2c WHIRLPOOL dc62e1eba814e996d19209bd4ae2f006de0f8973e9d40500a573bc45b08546e274077f2f9ff99ac92335f236ac61396db69c112894a9770fc46ea910d82933f6
AUX arduino-ide-1.6.9-startup.patch 3309 SHA256 a14da2f3fb24214e8636b3a724e02287ac30f6e7ba71cab1fc751c0d1497f45e SHA512 1b51b1f8b8518195c66732ab4e8ced4148971d9ab5a8be8cb638c498cdfefb99abd469211ff449b9fccbd37f77289777f0129c1ff7a682c669b6106a74f7cef2 WHIRLPOOL e8016ce20cc0154b5e19c17e27b67eec02596ef1374f39473cae0022e493f766c9b1db4418e51b544759376761980c09d4986b51d9a475c9d2e4f751759cea4f
AUX arduino-ide.desktop 208 SHA256 d58be4fc8ab0420b403e78c9d2dc7d273d6418ceb9f979086169e8de1eb5c7d8 SHA512 36ca05b24e3dcca0d054f4dcea44abb51a5584b23f87bcb2ba52c294c75df4633117859ef1fda494f77ce481b6b4c1346b73013038a9324e048aa89ad5c87d5d WHIRLPOOL 6f8af8ab13f9be3110aa02973ae369e8a561a29942acb395bac99152e2383289d04d5437216293dcfcc4b456f2c28b182816ebb96b6a69cd8fef2f569f26747d
DIST 1.6.9.tar.gz 81103494 SHA256 0927e4d6bb24fd297765aaf529fe7b16a7da3223848e7b40cdc9843d4246f98d SHA512 92b3508068e3aae6a88c3a395d0906fb63d2fd8ee20d003173b96f3f0ff6851eddcdb77c6349dfec3ad0ee36976f53432c643f56724490e9187d4af049fd4bf8 WHIRLPOOL 841ebd6e4c23b610f87a5254b888a31bd9b36ea162f52f9301b8cc0af2288cb7cff83f130f7f3a03ca71fdaf471818f2faea99ab3f1c64b233d7d504b7ac0049
EBUILD arduino-ide-1.6.9.ebuild 2840 SHA256 2ef8b623f022a4cd6b1b45b6816c2dba412a0d62c33bdf11a3da2381feb64a41 SHA512 73b2f50eac41ea3357ad7b4033a43a7c2d6b8f25407a5229e044d30c792e005596a6550a0d0890122c1cab0a5f0175920b650286d1068f2a725d907f26edd050 WHIRLPOOL d823e50da222028d92da30fa623cc632d65592458c1199c4a2a6e8355c1d3dbd7a90bc9d7ab4c9022a4eebc81e17521af5abab7f8508da4dcbf1e389c880c56b
MISC metadata.xml 208 SHA256 91ad1c1aa6da2120f2a36c6b31826659af1eb7ebc30b62bb537795296c80ad68 SHA512 b53b2af56213a10dea345cecbacd72494d9a84e794274b2739837893a2fdec5ff71d66d8000375c440762734fff7f83a415ff6c44aa759b5bda7be21e983b79e WHIRLPOOL 32934c3a294d9bbbcadec4b77a0968f9f9cad6df554a58cd85d916d05d5a80311d1bbe3945b81662982fb9a7dccf64b8f0170c35bc716e1bb4d0219b8b0d16ed
@@ -1,109 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc"
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="An open-source AVR electronics prototyping platform"
HOMEPAGE="http://arduino.cc/"
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz"
LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# Todo: Remaining bundled libs:
# commons-exec
# jackson-module-mrbean
# java-semver
# rsyntaxtextarea-arduino
# xml-apis
# xml-apis-ext
COMMONDEP="
dev-java/batik:1.8
dev-java/bcpg:1.52
dev-java/bcprov:1.52
dev-java/commons-codec:0
dev-java/commons-compress:0
dev-java/commons-httpclient:3
dev-java/commons-lang:3.3
dev-java/commons-logging:0
>=dev-java/commons-net-3.2:0
dev-java/jackson:2
dev-java/jackson-annotations:2
dev-java/jackson-databind:2
dev-java/jmdns:0
dev-java/jna:0
dev-java/jsch:0
>=dev-java/jssc-2.8.0-r1:0
dev-java/xmlgraphics-commons:2
dev-util/astyle[java]
dev-embedded/listserialportsc"
RDEPEND="${COMMONDEP}
dev-embedded/arduino-core
>=virtual/jre-1.8"
DEPEND="${COMMONDEP}
>=virtual/jdk-1.8"
EANT_GENTOO_CLASSPATH="batik-1.8,bcpg-1.52,bcprov-1.52,commons-codec,commons-compress,commons-httpclient-3,commons-lang-3.3,commons-logging,commons-net,jackson-2,jackson-annotations-2,jackson-databind-2,jmdns,jna,jsch,jssc,xmlgraphics-commons-2"
EANT_EXTRA_ARGS="-Djava.net.preferIPv4Stack=true"
EANT_BUILD_TARGET="build"
JAVA_ANT_REWRITE_CLASSPATH="yes"
S="${WORKDIR}/Arduino-${PV}"
CORE="/usr/share/arduino-core"
java_prepare() {
# Remove bundled libraries to ensure the system libraries are used
rm -f {arduino-core,app}/lib/{apple*,batik*,bcpg*,bcprov*,commons-[^e]*,jackson-[^m]*,jmdns*,jna*,jsch*,jssc*,xmlgraphics*} || die
epatch "${FILESDIR}/${P}-build.xml.patch"
if ! use doc; then
epatch "${FILESDIR}/${P}-no-doc.patch"
fi
sed -e 's/<download-library[^>]*>//g' -i build/build.xml
epatch "${FILESDIR}/${P}-startup.patch"
rm -rf {arduino-core,app}/src/processing/app/macosx
rm -rf arduino-core/src/processing/app/linux/GTKLookAndFeelFixer.java
}
src_compile() {
eant -f build/build.xml
}
src_install() {
cd "${S}"/build/linux/work || die
java-pkg_dojar lib/*.jar
java-pkg_dolauncher ${PN} \
--pwd "${CORE}" \
--main "processing.app.Base" \
--java_args "-DAPP_DIR=/usr/share/${PN} -DCORE_DIR=${CORE} -splash:/usr/share/${PN}/lib/splash.png"
# Install libraries
insinto "/usr/share/${PN}"
rm -fr lib/*.jar lib/*.so
doins -r lib dist
if use doc; then
dodoc revisions.txt "${S}"/README.md
dohtml -r reference
fi
# Install menu and icons
domenu "${FILESDIR}/${PN}.desktop"
for sz in `ls lib/icons | sed -e 's/\([0-9]*\)x[0-9]*/\1/'`; do
newicon -s $sz \
"lib/icons/${sz}x${sz}/apps/arduino.png" \
"${PN}.png"
done
}
@@ -1,61 +0,0 @@
diff -ur Arduino-1.6.9.orig/build/build.xml Arduino-1.6.9/build/build.xml
--- Arduino-1.6.9.orig/build/build.xml 2016-05-10 10:36:07.000000000 +0200
+++ Arduino-1.6.9/build/build.xml 2016-07-04 22:46:28.719469457 +0200
@@ -437,26 +437,6 @@
<param name="target.path" value="${staging_folder}/work/${staging_hardware_folder}/.." />
</antcall>
- <antcall target="unzip">
- <param name="archive_file" value="./libastylej-2.05.1-3.zip" />
- <param name="archive_url" value="http://downloads.arduino.cc/libastylej-2.05.1-3.zip" />
- <param name="final_folder" value="${staging_folder}/libastylej-2.05.1" />
- <param name="dest_folder" value="${staging_folder}" />
- </antcall>
- <copy file="macosx/libastylej-2.05.1/libastylej.jnilib" todir="macosx/work/${staging_hardware_folder}/../lib/" />
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../lib/libastylej.jnilib" />
- <copy file="macosx/libastylej-2.05.1/libastylej.jnilib" tofile="macosx/work/${staging_hardware_folder}/../lib/libastylej.dylib" />
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../lib/libastylej.dylib" />
-
- <antcall target="unzip">
- <param name="archive_file" value="./liblistSerials-${LIBLISTSERIAL-VERSION}.zip" />
- <param name="archive_url" value="http://downloads.arduino.cc/liblistSerials/liblistSerials-${LIBLISTSERIAL-VERSION}.zip" />
- <param name="final_folder" value="${staging_folder}/liblistSerials-${LIBLISTSERIAL-VERSION}" />
- <param name="dest_folder" value="${staging_folder}" />
- </antcall>
- <copy file="macosx/liblistSerials-${LIBLISTSERIAL-VERSION}/osx/liblistSerialsj.dylib" todir="macosx/work/${staging_hardware_folder}/../lib/" />
- <chmod perm="755" file="macosx/work/${staging_hardware_folder}/../lib/liblistSerialsj.dylib" />
-
<delete dir="${staging_folder}/arduino-builder-macosx" includeemptydirs="true"/>
<mkdir dir="${staging_folder}/arduino-builder-macosx"/>
<antcall target="untar">
@@ -726,30 +706,6 @@
<param name="JVM" value="${LINUX32_BUNDLED_JVM}"/>
</antcall>
- <delete dir="${staging_folder}/arduino-builder-linux32" includeemptydirs="true"/>
- <mkdir dir="${staging_folder}/arduino-builder-linux32"/>
- <antcall target="untar">
- <param name="archive_file" value="./arduino-builder-linux32-${ARDUINO-BUILDER-VERSION}.tar.bz2" />
- <param name="archive_url" value="http://downloads.arduino.cc/tools/arduino-builder-linux32-${ARDUINO-BUILDER-VERSION}.tar.bz2" />
- <param name="final_folder" value="${staging_folder}/arduino-builder-linux32/arduino-builder" />
- <param name="dest_folder" value="${staging_folder}/arduino-builder-linux32" />
- </antcall>
- <copy file="${staging_folder}/arduino-builder-linux32/arduino-builder" tofile="linux/work/arduino-builder" />
- <chmod perm="755" file="linux/work/arduino-builder" />
- <move file="${staging_folder}/arduino-builder-linux32/tools" tofile="linux/work/tools-builder"/>
- <copy todir="linux/work/hardware" overwrite="true">
- <fileset dir="${staging_folder}/arduino-builder-linux32/hardware" includes="*.txt"/>
- </copy>
- <delete dir="${staging_folder}/arduino-builder-linux32" includeemptydirs="true"/>
-
- <antcall target="avr-toolchain-bundle">
- <param name="unpack_target" value="untar"/>
- <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-i686-pc-linux-gnu.tar.bz2"/>
- <param name="gcc_version" value="4.8.1-arduino5"/>
- <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-i686-pc-linux-gnu.tar.bz2"/>
- <param name="avrdude_version" value="6.0.1-arduino5"/>
- </antcall>
-
<antcall target="package-library-index-json-bundle"/>
</target>
@@ -1,29 +0,0 @@
--- build/build.xml.orig2 2016-03-18 01:03:33.298185636 -0400
+++ build/build.xml 2016-03-18 01:03:35.047162990 -0400
@@ -166,26 +166,6 @@
<mkdir dir="${target.path}/reference"/>
- <!-- Unzip documentation -->
- <antcall target="unzip">
- <param name="archive_file" value="shared/reference-1.6.6-3.zip" />
- <param name="archive_url" value="http://downloads.arduino.cc/reference-1.6.6-3.zip" />
- <param name="final_folder" value="${target.path}/reference/www.arduino.cc" />
- <param name="dest_folder" value="${target.path}/reference/" />
- </antcall>
- <antcall target="unzip">
- <param name="archive_file" value="shared/Galileo_help_files-1.6.2.zip" />
- <param name="archive_url" value="http://downloads.arduino.cc/Galileo_help_files-1.6.2.zip" />
- <param name="final_folder" value="${target.path}/reference/Galileo_help_files" />
- <param name="dest_folder" value="${target.path}/reference/" />
- </antcall>
- <antcall target="unzip">
- <param name="archive_file" value="shared/Edison_help_files-1.6.2.zip" />
- <param name="archive_url" value="http://downloads.arduino.cc/Edison_help_files-1.6.2.zip" />
- <param name="final_folder" value="${target.path}/reference/Edison_help_files" />
- <param name="dest_folder" value="${target.path}/reference/" />
- </antcall>
-
<!-- Write the revision file! -->
<echo file="${target.path}/lib/version.txt" message="${version}" />
@@ -1,85 +0,0 @@
--- a/app/src/processing/app/Base.java 2016-03-13 22:15:01.741451380 -0400
+++ b/app/src/processing/app/Base.java 2016-03-14 19:18:48.020801765 -0400
@@ -747,6 +747,8 @@
} catch (IOException e) {
if (activeEditor != null) {
activeEditor.statusError(e);
+ } else {
+ e.printStackTrace();
}
}
}
--- a/arduino-core/src/processing/app/Platform.java 2016-03-17 00:29:33.841099694 -0400
+++ b/arduino-core/src/processing/app/Platform.java 2016-03-17 00:29:56.909802119 -0400
@@ -145,7 +145,7 @@
}
static {
- loadLib(new File(BaseNoGui.getContentFile("lib"), System.mapLibraryName("listSerialsj")));
+ System.loadLibrary("listSerialsj");
};
private static void loadLib(File lib) {
--- a/app/src/cc/arduino/packages/formatter/AStyleInterface.java 2016-03-17 23:58:11.616069086 -0400
+++ b/app/src/cc/arduino/packages/formatter/AStyleInterface.java 2016-03-17 23:58:27.564864023 -0400
@@ -41,7 +41,7 @@
loadLib(Base.getContentFile(System.mapLibraryName("msvcp100")));
loadLib(Base.getContentFile(System.mapLibraryName("msvcr100")));
}
- loadLib(new File(Base.getContentFile("lib"), System.mapLibraryName("astylej")));
+ System.loadLibrary("astylej");
}
private static void loadLib(File lib) {
--- a/app/src/processing/app/Base.java 2016-03-18 00:30:57.537608387 -0400
+++ b/app/src/processing/app/Base.java 2016-03-18 00:31:15.267371958 -0400
@@ -47,7 +47,6 @@
import processing.app.helpers.filefilters.OnlyFilesWithExtension;
import processing.app.javax.swing.filechooser.FileNameExtensionFilter;
import processing.app.legacy.PApplet;
-import processing.app.macosx.ThinkDifferent;
import processing.app.packages.LibraryList;
import processing.app.packages.UserLibrary;
import processing.app.syntax.PdeKeywords;
@@ -129,10 +128,6 @@
splashScreenHelper.splashText(tr("Loading configuration..."));
- if (OSUtils.isMacOS()) {
- ThinkDifferent.init();
- }
-
try {
guardedMain(args);
} catch (Throwable e) {
--- a/arduino-core/src/processing/app/linux/Platform.java 2016-03-18 00:34:37.179690507 -0400
+++ b/arduino-core/src/processing/app/linux/Platform.java 2016-03-18 00:34:38.536672987 -0400
@@ -37,7 +37,6 @@
// TODO Need to be smarter here since KDE people ain't gonna like that GTK.
// It may even throw a weird exception at 'em for their trouble.
public void setLookAndFeel() throws Exception {
- GTKLookAndFeelFixer.installGtkPopupBugWorkaround();
}
--- a/arduino-core/src/processing/app/BaseNoGui.java 2016-03-26 19:12:50.769791536 -0400
+++ b/arduino-core/src/processing/app/BaseNoGui.java 2016-03-26 19:17:57.352927746 -0400
@@ -161,8 +161,17 @@
return prefs;
}
+ static public boolean isAppDir(String name) {
+ String dirs[] = name.split("//*", 3);
+ if (dirs.length == 0) {
+ return false;
+ }
+ int index = dirs.length >= 2 && dirs[0].equals("") ? 1 : 0;
+ return dirs[index].equals("lib") || dirs[index].equals("dist");
+ }
+
static public File getContentFile(String name) {
- String appDir = System.getProperty("APP_DIR");
+ String appDir = System.getProperty(isAppDir(name) ? "APP_DIR" : "CORE_DIR");
if (appDir == null || appDir.length() == 0) {
appDir = currentDirectory;
}
@@ -1,10 +0,0 @@
[Desktop Entry]
Version=1.0
Name=arduino-ide
Comment=Open-source electronics prototyping platform
Exec=arduino-ide
Icon=arduino-ide
Terminal=false
Type=Application
Categories=Development;
StartupNotify=false
-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>junk4me46806@yahoo.com</email>
</maintainer>
</pkgmetadata>
-5
View File
@@ -1,5 +0,0 @@
DIST avr-libc-2.0.0.tar.bz2 3590893 SHA256 b2dd7fd2eefd8d8646ef6a325f6f0665537e2f604ed02828ced748d49dc85b97 SHA512 fc8d062043d633350dbe05978935dcb8028257a4f1013f246af9658aef0671def19ac11577d1ee9302df68df1b8cf030b22441d96852e185db212263aacabea6 WHIRLPOOL 18f149bdda6cadb2e29d42e16a15fbe2d2331aa044a3c668a984bbf95ef2b5cad93b907bb4cadcac4f5002c6d62dd0928e74592cd453e21afe70618176a88231
DIST avr-libc-manpages-2.0.0.tar.bz2 151137 SHA256 f1086ff15cbe341eda0286a7191c563a10127343573e01aad66a97924d7b41b5 SHA512 8b4aaa6ae176076171e90e629e0e6142c4c56f9cc4f1640432384276df2f7b457f5137739535b07b9cede9b5b2e564db7fe200203faa4e2d0cd9874432507823 WHIRLPOOL 2fd740cb4345c43d0789b12edc5d34eae5cf16c13ae1ad3f5984f13960c710255988f54bb576cd89a0a99685aa3883b29f0fabef4079002af0f2018857492e4b
DIST avr-libc-user-manual-2.0.0.tar.bz2 932920 SHA256 3bb4dbfafe32595f035d3373afb622b68ae8c7a3d4bb2a8ed89ca69edc42e5b0 SHA512 246180be1f793b46335a49f33028ff59bd7cc06ca3d8627309521801e405e0e1305663a2c0760521467e75732ad513749bf707732b59fb17744e51acda9bb2c6 WHIRLPOOL 59090a877ab58f2fa208c15ad629e879c93f61513e3168fff34cee28555f40fb7870d8a16cc2daeb94fc69c2bc4ee1ceb046ffa5514a2277486465f84c81152f
EBUILD avr-libc-2.0.0.ebuild 1885 SHA256 9110fddcea1a8a0637dc131d0cb27b18c7109926fa45dd8211646611ee1e6e6b SHA512 169da7322488edf870db18828cd4ead44e3169565114d351c070750c58ccfb7cbad5f7f418940542f9c26dfff3755de68af97ff5b766c875db50a003c3168555 WHIRLPOOL f184dcf99b8ac6dfb76be81cfa9dd33546d2735fb8b7f53d5cbfe19607f9ebc672770018aa5d7a035cd98b63e7b74707b0280ff980db1b04bfc9d1f32a78ce26
MISC metadata.xml 470 SHA256 7cf932a070e783a07987d294d5212f831a4ce99bd95030dbfce21895886f0208 SHA512 0a09da72e78c945fa53ee056913bc563897dcb65c33e8cba04dfd15d57a1578a502f18071b0a3cd5feecdbc7e570bfddfde05deda12746e70962b841d90d566a WHIRLPOOL 3550bf83513ff00fa48af706aa9655fcc611dbe5a518aa03f65373eb70cbd791802451cbc13a480c67b8a2c8b5d605478f9c2d8dc31db9e246f71fa17e585dc4
@@ -1,77 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
CHOST="avr"
CTARGET="avr"
inherit flag-o-matic eutils
DESCRIPTION="C library for Atmel AVR microcontrollers"
HOMEPAGE="http://www.nongnu.org/avr-libc/"
BASE_URI="http://download.savannah.gnu.org/releases/avr-libc"
SRC_URI="${BASE_URI}/${P}.tar.bz2
${BASE_URI}/${PN}-manpages-${PV}.tar.bz2
doc? ( ${BASE_URI}/${PN}-user-manual-${PV}.tar.bz2 )"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="doc crosscompile_opts_headers-only"
DEPEND=">=sys-devel/crossdev-0.9.1"
[[ ${CATEGORY/cross-} != ${CATEGORY} ]] \
&& RDEPEND="!dev-embedded/avr-libc" \
|| RDEPEND=""
DOCS="AUTHORS ChangeLog* NEWS README"
pkg_setup() {
# check for avr-gcc, bug #134738
ebegin "Checking for avr-gcc"
if type -p avr-gcc > /dev/null ; then
eend 0
else
eend 1
eerror
eerror "Failed to locate 'avr-gcc' in \$PATH. You can install an AVR toolchain using:"
eerror " $ crossdev -t avr"
eerror
die "AVR toolchain not found"
fi
}
src_prepare() {
epatch_user #455828
# work around broken gcc versions PR45261
local mcu
for mcu in $(sed -r -n '/CHECK_AVR_DEVICE/{s:.*[(](.*)[)]:\1:;p}' configure.ac) ; do
if avr-gcc -E - -mmcu=${mcu} <<<"" |& grep -q 'unknown MCU' ; then
sed -i "/HAS_${mcu}=yes/s:yes:no:" configure
fi
done
# Install docs in correct directory
sed -i -e "/DOC_INST_DIR/s:\$(VERSION):${PVR}:" configure || die
strip-flags
strip-unsupported-flags
}
src_install() {
default
# man pages can not go into standard locations
# as they would then overwrite libc man pages
insinto /usr/share/doc/${PF}/man/man3
doins "${WORKDIR}"/man/man3/*
use doc && dohtml "${WORKDIR}"/${PN}-user-manual-${PV}/*
# Make sure diff cross-compilers don't collide #414075
mv "${ED}"/usr/share/doc/{${PF},${CTARGET}-${PF}} || die
}
-12
View File
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>embedded@gentoo.org</email>
<name>Embedded Gentoo</name>
</maintainer>
<longdescription>
This package is part of the avr- binutils, -gcc, -lib toolchain for the Atmel microcontrollers.
These ebuilds have been created and submitted by Scott L. Price (dflytech.com).
</longdescription>
</pkgmetadata>