diff --git a/dev-embedded/arduino-builder/Manifest b/dev-embedded/arduino-builder/Manifest new file mode 100644 index 0000000..04ba6f8 --- /dev/null +++ b/dev-embedded/arduino-builder/Manifest @@ -0,0 +1,4 @@ +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 diff --git a/dev-embedded/arduino-builder/arduino-builder-1.3.14.ebuild b/dev-embedded/arduino-builder/arduino-builder-1.3.14.ebuild new file mode 100644 index 0000000..545cc92 --- /dev/null +++ b/dev-embedded/arduino-builder/arduino-builder-1.3.14.ebuild @@ -0,0 +1,47 @@ +# 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" +} diff --git a/dev-embedded/arduino-builder/files/arduino-builder-1.3.14-codereview-patch.patch b/dev-embedded/arduino-builder/files/arduino-builder-1.3.14-codereview-patch.patch new file mode 100644 index 0000000..736ad7c --- /dev/null +++ b/dev-embedded/arduino-builder/files/arduino-builder-1.3.14-codereview-patch.patch @@ -0,0 +1,32 @@ +--- 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) { diff --git a/dev-embedded/arduino-builder/metadata.xml b/dev-embedded/arduino-builder/metadata.xml new file mode 100644 index 0000000..e44c1c0 --- /dev/null +++ b/dev-embedded/arduino-builder/metadata.xml @@ -0,0 +1,7 @@ + + + + + junk4me46806@yahoo.com + + diff --git a/dev-embedded/arduino-core/Manifest b/dev-embedded/arduino-core/Manifest new file mode 100644 index 0000000..e3d7ff5 --- /dev/null +++ b/dev-embedded/arduino-core/Manifest @@ -0,0 +1,6 @@ +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 diff --git a/dev-embedded/arduino-core/arduino-core-1.6.9.ebuild b/dev-embedded/arduino-core/arduino-core-1.6.9.ebuild new file mode 100644 index 0000000..27b2cd6 --- /dev/null +++ b/dev-embedded/arduino-core/arduino-core-1.6.9.ebuild @@ -0,0 +1,50 @@ +# 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" +} diff --git a/dev-embedded/arduino-core/files/arduino-core-1.6.9-platform.patch b/dev-embedded/arduino-core/files/arduino-core-1.6.9-platform.patch new file mode 100644 index 0000000..3a4c951 --- /dev/null +++ b/dev-embedded/arduino-core/files/arduino-core-1.6.9-platform.patch @@ -0,0 +1,24 @@ +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 diff --git a/dev-embedded/arduino-core/files/platform-1.6.9/platform.keys.rewrite.txt b/dev-embedded/arduino-core/files/platform-1.6.9/platform.keys.rewrite.txt new file mode 100644 index 0000000..4e8c93f --- /dev/null +++ b/dev-embedded/arduino-core/files/platform-1.6.9/platform.keys.rewrite.txt @@ -0,0 +1,42 @@ +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}" \ No newline at end of file diff --git a/dev-embedded/arduino-core/files/platform-1.6.9/platform.txt b/dev-embedded/arduino-core/files/platform-1.6.9/platform.txt new file mode 100644 index 0000000..bbd5874 --- /dev/null +++ b/dev-embedded/arduino-core/files/platform-1.6.9/platform.txt @@ -0,0 +1,13 @@ +# 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}" diff --git a/dev-embedded/arduino-core/metadata.xml b/dev-embedded/arduino-core/metadata.xml new file mode 100644 index 0000000..e44c1c0 --- /dev/null +++ b/dev-embedded/arduino-core/metadata.xml @@ -0,0 +1,7 @@ + + + + + junk4me46806@yahoo.com + + diff --git a/dev-embedded/arduino-ide/Manifest b/dev-embedded/arduino-ide/Manifest new file mode 100644 index 0000000..9beeec6 --- /dev/null +++ b/dev-embedded/arduino-ide/Manifest @@ -0,0 +1,7 @@ +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 diff --git a/dev-embedded/arduino-ide/arduino-ide-1.6.9.ebuild b/dev-embedded/arduino-ide/arduino-ide-1.6.9.ebuild new file mode 100644 index 0000000..da454f6 --- /dev/null +++ b/dev-embedded/arduino-ide/arduino-ide-1.6.9.ebuild @@ -0,0 +1,109 @@ +# 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/]*>//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 +} diff --git a/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-build.xml.patch b/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-build.xml.patch new file mode 100644 index 0000000..8c82bda --- /dev/null +++ b/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-build.xml.patch @@ -0,0 +1,61 @@ +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 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + +@@ -726,30 +706,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + diff --git a/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-no-doc.patch b/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-no-doc.patch new file mode 100644 index 0000000..e6f2e25 --- /dev/null +++ b/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-no-doc.patch @@ -0,0 +1,29 @@ +--- 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 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + diff --git a/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-startup.patch b/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-startup.patch new file mode 100644 index 0000000..5243b8c --- /dev/null +++ b/dev-embedded/arduino-ide/files/arduino-ide-1.6.9-startup.patch @@ -0,0 +1,85 @@ +--- 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; + } diff --git a/dev-embedded/arduino-ide/files/arduino-ide.desktop b/dev-embedded/arduino-ide/files/arduino-ide.desktop new file mode 100644 index 0000000..d8f12c8 --- /dev/null +++ b/dev-embedded/arduino-ide/files/arduino-ide.desktop @@ -0,0 +1,10 @@ +[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 diff --git a/dev-embedded/arduino-ide/metadata.xml b/dev-embedded/arduino-ide/metadata.xml new file mode 100644 index 0000000..e44c1c0 --- /dev/null +++ b/dev-embedded/arduino-ide/metadata.xml @@ -0,0 +1,7 @@ + + + + + junk4me46806@yahoo.com + + diff --git a/dev-embedded/avr-libc/Manifest b/dev-embedded/avr-libc/Manifest new file mode 100644 index 0000000..fa4adec --- /dev/null +++ b/dev-embedded/avr-libc/Manifest @@ -0,0 +1,5 @@ +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 diff --git a/dev-embedded/avr-libc/avr-libc-2.0.0.ebuild b/dev-embedded/avr-libc/avr-libc-2.0.0.ebuild new file mode 100644 index 0000000..e4d5997 --- /dev/null +++ b/dev-embedded/avr-libc/avr-libc-2.0.0.ebuild @@ -0,0 +1,77 @@ +# 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 +} diff --git a/dev-embedded/avr-libc/metadata.xml b/dev-embedded/avr-libc/metadata.xml new file mode 100644 index 0000000..2f1e470 --- /dev/null +++ b/dev-embedded/avr-libc/metadata.xml @@ -0,0 +1,12 @@ + + + + + embedded@gentoo.org + Embedded Gentoo + + + 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). + + diff --git a/dev-embedded/listserialportsc/Manifest b/dev-embedded/listserialportsc/Manifest new file mode 100644 index 0000000..c1af0aa --- /dev/null +++ b/dev-embedded/listserialportsc/Manifest @@ -0,0 +1,3 @@ +DIST 1.0.7.tar.gz 2577 SHA256 8b1ce11c21e42f0d6db5dee31fa23d5180b77cc8fd9aea359657a17cccf91eab SHA512 8a398ec1ea9ae41181415198d13a546e00fe157c49a04f32547df1bed67de1df0d6abc966b8ff88d9b60a0ba65b0dce483e2dbcdc81e08b05318de9fe7059f95 WHIRLPOOL 88b41ed32b6f56b5c183798dfa04b613ba27ce459df6567734112b73223417019415c4cce6e6e045c671b2e2e07d9186b808a99efbf95ba7a8e24707bc509362 +EBUILD listserialportsc-1.0.7.ebuild 1139 SHA256 f8f5f7a40d0e19f7e2a554631b86f897b15aca64b59abdb44bc703bb43b2b5eb SHA512 3352dae38db5b9447c66fbaf17734b127df269c0894cfd22873b39869bc225538efeb6233c2d655b06e5d1644ca9c108350e3652827c695b7a68bab398dc3571 WHIRLPOOL 4e4e50a7b6578824845eac864634d1ccd87e82e682b44c8b60c7fdfa8c0798931d8b7b8a9d9fc369bab12d3a923eb5bf96f0cd0a57aa02a7a63763809589f0c0 +MISC metadata.xml 208 SHA256 91ad1c1aa6da2120f2a36c6b31826659af1eb7ebc30b62bb537795296c80ad68 SHA512 b53b2af56213a10dea345cecbacd72494d9a84e794274b2739837893a2fdec5ff71d66d8000375c440762734fff7f83a415ff6c44aa759b5bda7be21e983b79e WHIRLPOOL 32934c3a294d9bbbcadec4b77a0968f9f9cad6df554a58cd85d916d05d5a80311d1bbe3945b81662982fb9a7dccf64b8f0170c35bc716e1bb4d0219b8b0d16ed diff --git a/dev-embedded/listserialportsc/listserialportsc-1.0.7.ebuild b/dev-embedded/listserialportsc/listserialportsc-1.0.7.ebuild new file mode 100644 index 0000000..027f0c5 --- /dev/null +++ b/dev-embedded/listserialportsc/listserialportsc-1.0.7.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils java-pkg-2 toolchain-funcs + +DESCRIPTION="List serial ports with vid/pid/iserial fields" +HOMEPAGE="https://github.com/arduino/listSerialPortsC" +SRC_URI="https://github.com/arduino/listSerialPortsC/archive/${PV}.tar.gz" +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="" + +DEPEND=">=dev-libs/libserialport-0.1.1" + +S="${WORKDIR}/listSerialPortsC-${PV}" + +src_prepare() { + # Unbundle + rm -rf libserialport win32_jni +} + +src_compile() { + CC=$(tc-getCC) + ${CC} -Wall -O2 ${CPPFLAGS} ${CFLAGS} -c -o main.o main.c + ${CC} ${CFLAGS} ${LDFLAGS} main.o -lserialport -o listSerialC + + ${CC} \ + -Wall -O2 ${CPPFLAGS} ${CFLAGS} -fPIC \ + -I$(java-config-2 -o)/include \ + -I$(java-config-2 -o)/include/linux \ + -o jnilib.o -c jnilib.c + + ${CC} \ + ${CFLAGS} ${LDFLAGS} \ + -shared -Wl,-soname,liblistSerialsj.so \ + jnilib.o -lserialport -o liblistSerialsj.so.${PV} +} + +src_install() { + dobin listSerialC + dolib liblistSerialsj.so.${PV} + dosym liblistSerialsj.so.${PV} /usr/$(get_libdir)/liblistSerialsj.so +} diff --git a/dev-embedded/listserialportsc/metadata.xml b/dev-embedded/listserialportsc/metadata.xml new file mode 100644 index 0000000..e44c1c0 --- /dev/null +++ b/dev-embedded/listserialportsc/metadata.xml @@ -0,0 +1,7 @@ + + + + + junk4me46806@yahoo.com + + diff --git a/dev-go/errors/Manifest b/dev-go/errors/Manifest new file mode 100644 index 0000000..b6c6411 --- /dev/null +++ b/dev-go/errors/Manifest @@ -0,0 +1,3 @@ +DIST errors-20160314.tar.gz 7835 SHA256 41b8d7e8a08afa3f98dd7a0dd538d024976bee7f56442fd8f991681f0896e608 SHA512 b1d5e7c6f30f94f8a41b10d32b7f4ce7de8394f74ede6c14fb1f267a0514b24bc3bc7659c3baf6eacf424cea8451e7e57f5f72acc568342e90a447bd02f3e262 WHIRLPOOL 13e3ead7b64ea6c8e513e1e3bd8ce3381a7c62f4e3b3faebc04ea0b24c94fa94ef5f2ff69e10b14c0b9c4ad9a8739c5b4f96125c0e2f811cf5870f08172852d2 +EBUILD errors-20160314.ebuild 506 SHA256 3615dd6615c60aa2567a79781fd7dc3b4402faef25a83423099602e69259b89b SHA512 d4763fecfea96a0615d46b22d6d20b6d9ccf42f9eb1ad62a7183e9a69a04f56d62b7cfc509fe1e2ea9cb73bd8e6a5e231e778af67e60680fe83c42b18d2aa2fe WHIRLPOOL cdcaa9f8724c8a36046c557f65dd269487c5a87124d15d12264cffc2601d61ef16a82e4e96434dfd179ebb0d1acb2381c01892a3cf202b487d861323d5afdc1d +MISC metadata.xml 208 SHA256 91ad1c1aa6da2120f2a36c6b31826659af1eb7ebc30b62bb537795296c80ad68 SHA512 b53b2af56213a10dea345cecbacd72494d9a84e794274b2739837893a2fdec5ff71d66d8000375c440762734fff7f83a415ff6c44aa759b5bda7be21e983b79e WHIRLPOOL 32934c3a294d9bbbcadec4b77a0968f9f9cad6df554a58cd85d916d05d5a80311d1bbe3945b81662982fb9a7dccf64b8f0170c35bc716e1bb4d0219b8b0d16ed diff --git a/dev-go/errors/errors-20160314.ebuild b/dev-go/errors/errors-20160314.ebuild new file mode 100644 index 0000000..68e9f5e --- /dev/null +++ b/dev-go/errors/errors-20160314.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/go-errors/errors/..." +EGIT_COMMIT="a41850380601eeb43f4350f7d17c6bbd8944aaf8" +ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="adds stacktrace support to errors in go" +HOMEPAGE="https://${EGO_PN%/*}" +SRC_URI="${ARCHIVE_URI}" +LICENSE="MIT" +SLOT="0" +IUSE="" diff --git a/dev-go/errors/metadata.xml b/dev-go/errors/metadata.xml new file mode 100644 index 0000000..e44c1c0 --- /dev/null +++ b/dev-go/errors/metadata.xml @@ -0,0 +1,7 @@ + + + + + junk4me46806@yahoo.com + + diff --git a/dev-go/go-junit-report/Manifest b/dev-go/go-junit-report/Manifest new file mode 100644 index 0000000..bcf074e --- /dev/null +++ b/dev-go/go-junit-report/Manifest @@ -0,0 +1,3 @@ +DIST go-junit-report-20160314.tar.gz 6901 SHA256 cc87bd0c20f298df0983502bf53ef847aacb1270d4fb6c6ded6a73371887936d SHA512 00f38f51c5f761b5a3e60a6e6b602f1246a746f081f2d8946d01387234270544692c6af54d0e69919c1af8aa753f848eeecc4421f2ddf881f21522ccf5545d75 WHIRLPOOL 7aa5781c31def1d078c9d3310ff9c1853704470a3db66162a5bebf843d66d2723a2df1699534f4c99753df8b332c00f9541fabcd894721ef4809b88611f952eb +EBUILD go-junit-report-20160314.ebuild 515 SHA256 9daaa14488c559d334f51f4a150f03498b81307dfcdda5ffc9f5617915d6d915 SHA512 6f834cd82a79bc6e4a5487e4fdfb0a815b18f6aecc1afc7ccb596473be3cc09d74fbecb772b8d3c5807beb4868d5fced03af1f5edbfbf80ac8ce4b8148dec528 WHIRLPOOL e831da723735ac5fb8a70bdda9b4b148a1c1354309a34ce57dfa7d4ffb74457ba7a578829e9a4281c5b88ec277e8296eb9b29dae7ba5e0b8b9161ee514450d34 +MISC metadata.xml 208 SHA256 91ad1c1aa6da2120f2a36c6b31826659af1eb7ebc30b62bb537795296c80ad68 SHA512 b53b2af56213a10dea345cecbacd72494d9a84e794274b2739837893a2fdec5ff71d66d8000375c440762734fff7f83a415ff6c44aa759b5bda7be21e983b79e WHIRLPOOL 32934c3a294d9bbbcadec4b77a0968f9f9cad6df554a58cd85d916d05d5a80311d1bbe3945b81662982fb9a7dccf64b8f0170c35bc716e1bb4d0219b8b0d16ed diff --git a/dev-go/go-junit-report/go-junit-report-20160314.ebuild b/dev-go/go-junit-report/go-junit-report-20160314.ebuild new file mode 100644 index 0000000..5d282b7 --- /dev/null +++ b/dev-go/go-junit-report/go-junit-report-20160314.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/jstemmer/go-junit-report/..." +EGIT_COMMIT="833f8ea2b99d36d5f018698333834f3df200a0c2" +ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Converts go test output to an xml report" +HOMEPAGE="https://${EGO_PN%/*}" +SRC_URI="${ARCHIVE_URI}" +LICENSE="MIT" +SLOT="0" +IUSE="" diff --git a/dev-go/go-junit-report/metadata.xml b/dev-go/go-junit-report/metadata.xml new file mode 100644 index 0000000..e44c1c0 --- /dev/null +++ b/dev-go/go-junit-report/metadata.xml @@ -0,0 +1,7 @@ + + + + + junk4me46806@yahoo.com + + diff --git a/dev-go/testify/Manifest b/dev-go/testify/Manifest new file mode 100644 index 0000000..27caae0 --- /dev/null +++ b/dev-go/testify/Manifest @@ -0,0 +1,3 @@ +DIST testify-20160314.tar.gz 81099 SHA256 7fd6c2b16c53447101c0d276094e2c301fed9f23d8d6d4af927e4a65522f5bac SHA512 f10255b0f47237c7583626a3bb213ca67d0db92c2a1531cc31dac089cdb13139b01647809503313a26f3e53a64a98cebc3bf9c4e1bd1ed975d9b81aa516ab5af WHIRLPOOL cc4571c1678624fa0e5905b970e657e37dc522523ed8c20c6164032f5de4e7ff0a75f339304e280088815bb5482929782884fb353d67078eb9ac444db1e57ab4 +EBUILD testify-20160314.ebuild 485 SHA256 e5efd2c1a9e57bb5acc1bccc2404b5fcf75f47038d28f4720b871e249504f706 SHA512 9348206dca79dfbf1784d0a053d19e9dd9f6eb05d578bdccf9272ceda15d002db92ad49f79ed0ab4bbdbeddf87f16d02939b761b1d49a7b4f196bb917e4143ef WHIRLPOOL 0defe607a4b2843aa5c7f3f6ac7bd0f824957dce9417a12be1d6dc580c795b1d77b4203c4a69f4f657a1e34fb2c8b7b3e41058b742b920b9565e7501d1a30d2f +MISC metadata.xml 208 SHA256 91ad1c1aa6da2120f2a36c6b31826659af1eb7ebc30b62bb537795296c80ad68 SHA512 b53b2af56213a10dea345cecbacd72494d9a84e794274b2739837893a2fdec5ff71d66d8000375c440762734fff7f83a415ff6c44aa759b5bda7be21e983b79e WHIRLPOOL 32934c3a294d9bbbcadec4b77a0968f9f9cad6df554a58cd85d916d05d5a80311d1bbe3945b81662982fb9a7dccf64b8f0170c35bc716e1bb4d0219b8b0d16ed diff --git a/dev-go/testify/metadata.xml b/dev-go/testify/metadata.xml new file mode 100644 index 0000000..e44c1c0 --- /dev/null +++ b/dev-go/testify/metadata.xml @@ -0,0 +1,7 @@ + + + + + junk4me46806@yahoo.com + + diff --git a/dev-go/testify/testify-20160314.ebuild b/dev-go/testify/testify-20160314.ebuild new file mode 100644 index 0000000..620e79a --- /dev/null +++ b/dev-go/testify/testify-20160314.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/stretchr/testify/..." +EGIT_COMMIT="1661650f989674e3e5bcdcb805536e5d31481526" +ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="go require package" +HOMEPAGE="https://${EGO_PN%/*}" +SRC_URI="${ARCHIVE_URI}" +LICENSE="MIT" +SLOT="0" +IUSE="" diff --git a/dev-libs/libserialport/Manifest b/dev-libs/libserialport/Manifest new file mode 100644 index 0000000..f8b9cf6 --- /dev/null +++ b/dev-libs/libserialport/Manifest @@ -0,0 +1,3 @@ +DIST libserialport-0.1.1.tar.gz 405251 SHA256 4a2af9d9c3ff488e92fb75b4ba38b35bcf9b8a66df04773eba2a7bbf1fa7529d SHA512 7d379d1099173841e6d4df04c8c12dc6a4ebdfa0323ef35da6f3dea20db55d4f6ad81c1f6679f5aac7fe83270176428a817daa8627c336505335a07e06350a85 WHIRLPOOL 1dd4db30de12edf9c604fa3e70b0d643f940acf75d029e0ce92727e83b566cba1fca062e25ca379398b8351391e4b99b6942d35829883ba1faea2372c5be98ad +EBUILD libserialport-0.1.1.ebuild 704 SHA256 6094a0a7ee314b82cd3ea045dd366c4c2fc8afe7f230e2400591ee70656d5a17 SHA512 26b2ca273355733d64eb6a23bdb754d3432fb37160b57674054bcfbf00970f17942d6a3adfae1dcd34b194c77af4420fabbd9909eb9c6bf6af87cc995b01f88c WHIRLPOOL cb74d6d21d8b4e32ca95b67c8126b38f8efb5807899cc17fa733068d045dfdc3c131182aaac38b7b31a7119ba727c103e831b71ab4feb83e969b252f46fbd6dd +MISC metadata.xml 247 SHA256 751aa1f012df292bed9716a5c6a7e64114b695d2ba0c0572fc7e87fc3bbcebc5 SHA512 15df289e0f962f564551f61ada3cfef0311f6af639887def780bf5ad3be105515c8d24c950ff340ed35d89b9cd994af3540322b684c5dec3b43ec6bb0041aa4e WHIRLPOOL b6c074cf39f6ec1e2d085151836db47f9a4d71bcc9cc3296889bfa10172c7f07837ca79c8613f9c483b1332683e78eebe88e0a433a7caf801fc7ccac2552cd53 diff --git a/dev-libs/libserialport/libserialport-0.1.1.ebuild b/dev-libs/libserialport/libserialport-0.1.1.ebuild new file mode 100644 index 0000000..ea01251 --- /dev/null +++ b/dev-libs/libserialport/libserialport-0.1.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://sigrok.org/${PN}" + inherit git-r3 autotools +else + SRC_URI="http://sigrok.org/download/source/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Cross platform serial port access library" +HOMEPAGE="http://sigrok.org/wiki/Libserialport" + +LICENSE="LGPL-3" +SLOT="0" +IUSE="static-libs" + +RDEPEND="" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + [[ ${PV} == "9999" ]] && eautoreconf +} + +src_configure() { + econf \ + $(use_enable static-libs static) +} + +src_install() { + default + prune_libtool_files +} diff --git a/dev-libs/libserialport/metadata.xml b/dev-libs/libserialport/metadata.xml new file mode 100644 index 0000000..71b1461 --- /dev/null +++ b/dev-libs/libserialport/metadata.xml @@ -0,0 +1,8 @@ + + + + + embedded@gentoo.org + Embedded Gentoo + + diff --git a/dev-util/ctags/Manifest b/dev-util/ctags/Manifest new file mode 100644 index 0000000..075aee9 --- /dev/null +++ b/dev-util/ctags/Manifest @@ -0,0 +1,8 @@ +AUX ctags-5.6-ebuilds.patch 822 SHA256 86930711593e7a2a88043bc9a8d5863c2b62514b256d3e9a81f7929951f17e07 SHA512 25a9738d758f9039dd75a17c1c8259e18c4fab2ad6230db91304f93604386ec450207b6c4b3d582eec98c66380e004c9a050ca69f1636b25e02e04c1f67994df WHIRLPOOL 93eb6ba8ec917d967f549438dcf3b6cd80d00b36d0bd058139f38d9792674d43edbdac03d7e9ce8594a54ed1f87ad1fe986e8e1c46190c13bddffceab39e7dba +AUX ctags-5.8-ada.patch 613 SHA256 e6122236e929509248661569967f4a0168d30214ed0ea814926583f9c087846a SHA512 730ff695fefd9593eae452d51fb236df810bd013843f3a907440eb3f6512d2e5a2e645a449c607d0c73f9e8f3f978c489e2b9464f8970ae3854002518eff7ab1 WHIRLPOOL e9fb4db31a9817191e01952de0aac7dcaca089ba9fc623965647805b442a961ee729615cda556f74bc80a20af46dfb62d0e4032951168a7b227b2fece49fa626 +AUX ctags-5.8-f95-pointers.patch 471 SHA256 93434a7e0df23da4c98b4425e8971152125674bf135c1a87f7ee1024ce3034d7 SHA512 ea51864f3428da88a2abac9937757483bc0bcda8c00d075673256c93c15cf35372c04597b07b319236a76df1b1923bfcd56fe23093c6cd2386a7c966c6f28c33 WHIRLPOOL c778aa70b9160fa6abf1c15ae3870551ed22f88efe1c8b32a1f8b0a8fab18cef88ed1c33a11c9c634854f3401af8736fd4b155cf402b05e5503917844fee792e +AUX ctags-5.8-python-vars-starting-with-def.patch 435 SHA256 a388bafd70e538f187d5c6540c586da36e5a91e4ff3bc93a5f2caf75b13282c3 SHA512 0eed31a85cc347e62183809f93be1f2a0eed5b6a5e4c040c3a67448e38764a34483310bf370008d62308985640c4441993a176c60a871fc3cb07728aa901750b WHIRLPOOL 4b8544dd05fb3d798c73bc425bda584998a85ec2b0dae87bb7437448941c3ad3d00ff9e26bceaebef58a507da17f25f2b1675cfd66feea0144e11e2c47ad7bdb +DIST ctags-5.8_p20160314.tar.gz 490210 SHA256 91a551690294140f3f71c1718531397d7ac3dc061a49cf8c2a3a91173cedf3dc SHA512 2005cd0882d3bdf19d91ccf51fe5600893674319af3b93b2b815022818961704dc9bb539afa116a164778a3a8abb6e2b211ce6529d0d11ba68f33974f71eb279 WHIRLPOOL 357cc525cf9abac4e96f1241f47ae845284dc19a17dbaca93e5ffabd69e97faf731ffcf53a00636598241ff8eb476c86ea5a4df9e7083d1e09cc7e649ecaaf41 +DIST ctags-ada-mode-4.3.11.tar.bz2 14060 SHA256 d25a3fd26b356adbd068f10a0b68691d36c154c04b96304b96386e169e4b6b57 SHA512 51c71e13ef658cd6682f04c94485315c4a702080ef2c7786fc9881b03c86f1c1d43aa1a69c452e4b0b2f7a78383804b66b159542cb4eae0cd309bc1ddbe2eb6e WHIRLPOOL 7e0ded8c97d3651e1afe48ec836697a4a19264baf3b203f6e98c134b88e3ab0eee7ac660789f5b955f0f827128996988694aa6c4bc78f18adf52724c5230da5d +EBUILD ctags-5.8_p20160314.ebuild 1786 SHA256 3d2f92126286029b3146ba49b257eec8d0111e82bee1dea6a8b46c30c1aa8c05 SHA512 8ae1d1321433e74b65c0b539432fe02b6f11f1496eb7d0a85232e4af38c559663a523e161c002cff7700e09146413b7e72b0688833a722ab0378dee2bb5afaf1 WHIRLPOOL 602e7416c6c4fba339c6cfecd9d6d34da7753ddbc0ebcc146497b38408af8924e05917d7802837e0978aa3eef26472d77583f7ccca30f2368769555aa594a320 +MISC metadata.xml 462 SHA256 76922d8f5d78982ef005c79d4a6eba28bca6dc6c4ec28c673c4bd92b06a924f0 SHA512 df77349a472c81e5c74184cc7a255bae6165defdae90482169253b3976facf64e27818643e51c0b3b91329610b0069d3e346d27a167b27914c958621948cc657 WHIRLPOOL 2d113b87319c674c5c152fb576d92294426401771e789901adbc366fb578ad5ab1eed7eb7c48e31cb0417bb72368caf7e15f15f70d03f67c86c49d8301cd536a diff --git a/dev-util/ctags/ctags-5.8_p20160314.ebuild b/dev-util/ctags/ctags-5.8_p20160314.ebuild new file mode 100644 index 0000000..4e8bf23 --- /dev/null +++ b/dev-util/ctags/ctags-5.8_p20160314.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils autotools vcs-snapshot + +DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors" +HOMEPAGE="http://ctags.sourceforge.net" +# this commit is from the sourceforge branch, which is a git-svn clone of the +# original exhuberant-ctags SVN repository +SRC_URI="https://github.com/arduino/ctags/archive/5dbd71201f79e976a728802ca8638b14db0728dc.tar.gz -> ${P}.tar.gz + ada? ( mirror://sourceforge/gnuada/ctags-ada-mode-4.3.11.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="ada" + +RDEPEND="app-eselect/eselect-ctags" + +src_prepare() { + epatch "${FILESDIR}/${PN}-5.6-ebuilds.patch" + + # Bug #273697 + epatch "${FILESDIR}/${PN}-5.8-f95-pointers.patch" + + # enabling Ada support + if use ada ; then + cp "${WORKDIR}/${PN}-ada-mode-4.3.11/ada.c" "${S}" || die + epatch "${FILESDIR}/${PN}-5.8-ada.patch" + fi + + eautoreconf +} + +src_configure() { + econf \ + --with-posix-regex \ + --without-readlib \ + --disable-etags \ + --enable-tmpdir=/tmp +} + +src_install() { + emake prefix="${D}"/usr mandir="${D}"/usr/share/man install + + # namepace collision with X/Emacs-provided /usr/bin/ctags -- we + # rename ctags to exuberant-ctags (Mandrake does this also). + mv "${D}"/usr/bin/{ctags,exuberant-ctags} || die + mv "${D}"/usr/share/man/man1/{ctags,exuberant-ctags}.1 || die + + dodoc FAQ NEWS README EXTENDING.html +} + +pkg_postinst() { + eselect ctags update + elog "You can set the version to be started by /usr/bin/ctags through" + elog "the ctags eselect module. \"man ctags.eselect\" for details." +} + +pkg_postrm() { + eselect ctags update +} diff --git a/dev-util/ctags/files/ctags-5.6-ebuilds.patch b/dev-util/ctags/files/ctags-5.6-ebuilds.patch new file mode 100644 index 0000000..5b0de66 --- /dev/null +++ b/dev-util/ctags/files/ctags-5.6-ebuilds.patch @@ -0,0 +1,22 @@ +diff -ur ctags-5.6/sh.c ctags-5.6-ebuild/sh.c +--- ctags-5.6/sh.c 2006-05-30 00:37:13.000000000 -0400 ++++ ctags-5.6-ebuild/sh.c 2006-10-07 17:37:31.000000000 -0400 +@@ -7,7 +7,8 @@ + * GNU General Public License. + * + * This module contains functions for generating tags for scripts for the +-* Bourne shell (and its derivatives, the Korn and Z shells). ++* Bourne shell (and its derivatives, the Korn and Z shells), along with some ++* specialised kinds of shell scripts (Gentoo ebuilds and eclasses). + */ + + /* +@@ -102,7 +103,7 @@ + extern parserDefinition* ShParser (void) + { + static const char *const extensions [] = { +- "sh", "SH", "bsh", "bash", "ksh", "zsh", NULL ++ "sh", "SH", "bsh", "bash", "ksh", "zsh", "ebuild", "eclass", NULL + }; + parserDefinition* def = parserNew ("Sh"); + def->kinds = ShKinds; diff --git a/dev-util/ctags/files/ctags-5.8-ada.patch b/dev-util/ctags/files/ctags-5.8-ada.patch new file mode 100644 index 0000000..48ed96f --- /dev/null +++ b/dev-util/ctags/files/ctags-5.8-ada.patch @@ -0,0 +1,28 @@ +--- parsers-orig.h 2009-11-16 23:39:49.747328066 +0200 ++++ parsers.h 2009-11-16 23:40:26.541581805 +0200 +@@ -16,6 +16,7 @@ + + /* Add the name of any new parser definition function here */ + #define PARSER_LIST \ ++ AdaParser, \ + AntParser, \ + AsmParser, \ + AspParser, \ +--- source-orig.mak 2009-11-16 23:41:17.184586699 +0200 ++++ source.mak 2009-11-16 23:41:48.358331136 +0200 +@@ -8,6 +8,7 @@ + strlist.h vstring.h + + SOURCES = \ ++ ada.c \ + args.c \ + ant.c \ + asm.c \ +@@ -70,6 +71,7 @@ + REGEX_HEADERS = gnu_regex/regex.h + + OBJECTS = \ ++ ada.$(OBJEXT) \ + args.$(OBJEXT) \ + ant.$(OBJEXT) \ + asm.$(OBJEXT) \ diff --git a/dev-util/ctags/files/ctags-5.8-f95-pointers.patch b/dev-util/ctags/files/ctags-5.8-f95-pointers.patch new file mode 100644 index 0000000..4ac9560 --- /dev/null +++ b/dev-util/ctags/files/ctags-5.8-f95-pointers.patch @@ -0,0 +1,12 @@ +--- fortran-orig.c 2009-11-16 23:38:06.154328652 +0200 ++++ fortran.c 2009-11-16 23:38:08.711335501 +0200 +@@ -1319,7 +1319,8 @@ + readToken (token); + skipPast (token, TOKEN_OPERATOR); + } +- else if (strcmp (vStringValue (token->string), "=") == 0) ++ else if ((strcmp (vStringValue (token->string), "=") == 0) || ++ (strcmp (vStringValue (token->string), "=>") == 0)) + { + while (! isType (token, TOKEN_COMMA) && + ! isType (token, TOKEN_STATEMENT_END)) diff --git a/dev-util/ctags/files/ctags-5.8-python-vars-starting-with-def.patch b/dev-util/ctags/files/ctags-5.8-python-vars-starting-with-def.patch new file mode 100644 index 0000000..83d9f7e --- /dev/null +++ b/dev-util/ctags/files/ctags-5.8-python-vars-starting-with-def.patch @@ -0,0 +1,13 @@ +--- python-orig.c 2009-11-16 23:33:44.930351712 +0200 ++++ python.c 2009-11-16 23:35:08.433328150 +0200 +@@ -264,8 +264,8 @@ + while (*cp) + { + cp = skipEverything (cp); +- if (!strncmp(cp, "def", 3) || !strncmp(cp, "class", 5) || +- !strncmp(cp, "cdef", 4) || !strncmp(cp, "cpdef", 5)) ++ if (!strncmp(cp, "def ", 4) || !strncmp(cp, "class ", 6) || ++ !strncmp(cp, "cdef ", 5) || !strncmp(cp, "cpdef ", 6)) + { + return cp; + } diff --git a/dev-util/ctags/metadata.xml b/dev-util/ctags/metadata.xml new file mode 100644 index 0000000..30c6883 --- /dev/null +++ b/dev-util/ctags/metadata.xml @@ -0,0 +1,15 @@ + + + + + vim@gentoo.org + Gentoo Vim Project + + + Enable Ada support + + + gnuada + universal-ctags/ctags + +