From ca79380e4a3d32d6921ad8724dc22f33cb16fa5c Mon Sep 17 00:00:00 2001 From: pmunts Date: Thu, 2 Sep 2021 04:26:36 -0700 Subject: [PATCH 1/4] remoteio release 1.19928.2 (#309) msys tar needs tarballs created with -H posix --- index/re/remoteio/remoteio-1.19928.2.toml | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 index/re/remoteio/remoteio-1.19928.2.toml diff --git a/index/re/remoteio/remoteio-1.19928.2.toml b/index/re/remoteio/remoteio-1.19928.2.toml new file mode 100644 index 00000000..dc093a2b --- /dev/null +++ b/index/re/remoteio/remoteio-1.19928.2.toml @@ -0,0 +1,47 @@ +name = "remoteio" +description = "Remote I/O Protocol Client Library for GNAT Ada" +version = "1.19928.2" +licenses = "BSD-1-Clause" +website = "https://github.com/pmunts/simpleio" + +authors = ["Philip Munts"] +maintainers = ["Philip Munts "] +maintainers-logins = ["pmunts"] + +project-files = ["remoteio.gpr", "programs.gpr"] + +tags = ["embedded", "linux", "remoteio", "adc", "dac", "gpio", "i2c", "motor", +"pwm", "sensor", "serial", "servo", "spi", "stepper"] + +[available."case(os)"] +'linux|windows' = true +"..." = false + +# Linux needs libhidapi-dev and/or libusb-1.0-0-dev installed + +[[depends-on]] +[depends-on."case(os)"."linux"] +libhidapi = "~0.8" + +[[depends-on]] +[depends-on."case(os)"."linux"] +libusb = "~1.0" + +# On Linux, patch hid-hidapi.ads to link with libhidapi-hidraw.so + +[[actions."case(os)".linux]] +type = "post-fetch" +command = ["sh", "-c", "sed -i 's/lhidapi/lhidapi-hidraw/g' src/objects/hid/hid-hidapi.ads"] + +# On Windows, copy .DLL files to ./bin/ (for execution) and ./lib/ (for linking) + +[[actions."case(os)".windows]] +type = "post-fetch" +command = ["sh", "-c", "mkdir -p ./bin && cp src/win64/*.dll ./bin && mkdir -p ./lib && cp src/win64/*.dll ./lib"] + +[origin] +hashes = [ +"sha512:6f9f2f580b06ea18d2b462ee08408741d5fecbcd554114802e7303f2d05dd7025592f6a9f2a1205d5dcf782a4c0950c324aab9213be296c692ddfec838ed436f", +] +url = "http://repo.munts.com/alire/remoteio-1.19928.2.tbz2" + From 6b53b292572af346d8ceece8f0b898c4e00b93b7 Mon Sep 17 00:00:00 2001 From: Paul Jarrett Date: Thu, 2 Sep 2021 07:27:26 -0400 Subject: [PATCH 2/4] Add files via upload (#326) --- .../di/dir_iterators/dir_iterators-0.0.3.toml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 index/di/dir_iterators/dir_iterators-0.0.3.toml diff --git a/index/di/dir_iterators/dir_iterators-0.0.3.toml b/index/di/dir_iterators/dir_iterators-0.0.3.toml new file mode 100644 index 00000000..67f92677 --- /dev/null +++ b/index/di/dir_iterators/dir_iterators-0.0.3.toml @@ -0,0 +1,74 @@ +name = "dir_iterators" +description = "Ways of moving around directory trees" +version = "0.0.3" +website = "https://github.com/pyjarrett/dir_iterators" +authors = ["Paul Jarrett"] +licenses = "Apache-2.0" + +maintainers = ["Paul Jarrett "] +maintainers-logins = ["pyjarrett"] +tags = ["dir", "files", "walk"] + +long-description = ''' +[![Build Status](https://github.com/pyjarrett/dir_iterators/actions/workflows/build.yml/badge.svg)](https://github.com/pyjarrett/dir_iterators/actions) +[![Alire](https://img.shields.io/endpoint?url=https://alire.ada.dev/badges/dir_iterators.json)](https://alire.ada.dev/crates/dir_iterators.html) + +## Iterator-based directory walks + +Provides convenient ways to walk directories based on Ada 2012 user-defined +iterators. + +Inspired by [walkdir for Rust](https://github.com/BurntSushi/walkdir). + + +## Walking a directory tree recursively + +```ada +with Ada.Directories; +with Ada.Text_IO; +with Dir_Iterators.Recursive; + +-- ... + +Dir_Walk : constant Dir_Iterators.Recursive.Recursive_Dir_Walk + := Dir_Iterators.Recursive.Walk (Dir); + +for Dir_Entry of Dir_Walk loop + Ada.Text_IO.Put_Line(Ada.Directories.Full_Name(Dir_Entry)); +end loop; +``` + +## Walking a directory tree recursively with a filter + +Use a filter to prune directories and files from the walk. + +```ada +with Ada.Directories; +with Ada.Text_IO; +with Dir_Iterators.Recursive; + +package AD renames Ada.Directories; + +-- ... + + procedure Foo (Include_Dot_Files : Boolean; Dir_Root : String) is + function Filter (E : Ada.Directories.Directory_Entry_Type) return Boolean is + Name : constant String := Ada.Directories.Simple_Name(E); + begin + return Include_Dot_Files + or else (not (Name'Length > 1 and then Name(1) = '.')); + end Filter; + + Walk : constant Dir_Iterators.Recursive.Recursive_Dir_Walk := + Dir_Iterators.Recursive.Walk (Dir_Root, Filter'Access); + begin + for Dir_Entry of Walk loop + Ada.Text_IO.Put_Line(Ada.Directories.Full_Name(Dir_Entry)); + end loop; + end Foo; +``` +''' +[origin] +commit = "9a345982c4680cea101a4295da1ead5610526a3d" +url = "git+https://github.com/pyjarrett/dir_iterators.git" + From 75264a9fa508b9c2b6623dc59b0895d7e8334fb5 Mon Sep 17 00:00:00 2001 From: pmunts Date: Mon, 6 Sep 2021 00:55:48 -0700 Subject: [PATCH 3/4] mcp2221, remoteio 1.19937.1 (#333) * mcp2221 release 1.19937.1 Fixed website URL * remoteio release 1.19937.1 Fixed website URL --- index/mc/mcp2221/mcp2221-1.19937.1.toml | 47 +++++++++++++++++++++++ index/re/remoteio/remoteio-1.19937.1.toml | 47 +++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 index/mc/mcp2221/mcp2221-1.19937.1.toml create mode 100644 index/re/remoteio/remoteio-1.19937.1.toml diff --git a/index/mc/mcp2221/mcp2221-1.19937.1.toml b/index/mc/mcp2221/mcp2221-1.19937.1.toml new file mode 100644 index 00000000..b451f855 --- /dev/null +++ b/index/mc/mcp2221/mcp2221-1.19937.1.toml @@ -0,0 +1,47 @@ +name = "mcp2221" +description = "MCP2221 USB Raw HID I/O Expander Library for GNAT Ada" +version = "1.19937.1" +licenses = "BSD-1-Clause" +website = "https://github.com/pmunts/libsimpleio" + +authors = ["Philip Munts"] +maintainers = ["Philip Munts "] +maintainers-logins = ["pmunts"] + +project-files = ["mcp2221.gpr", "programs.gpr"] + +tags = ["embedded", "linux", "mcp2221", "adc", "dac", "gpio", "i2c", "motor", +"pwm", "sensor", "serial", "servo", "spi", "stepper"] + +[available."case(os)"] +'linux|windows' = true +"..." = false + +# Linux needs libhidapi-dev and/or libusb-1.0-0-dev installed + +[[depends-on]] +[depends-on."case(os)"."linux"] +libhidapi = "~0.8" + +[[depends-on]] +[depends-on."case(os)"."linux"] +libusb = "~1.0" + +# On Linux, patch hid-hidapi.ads to link with libhidapi-hidraw.so + +[[actions."case(os)".linux]] +type = "post-fetch" +command = ["sh", "-c", "sed -i 's/lhidapi/lhidapi-hidraw/g' src/objects/hid/hid-hidapi.ads"] + +# On Windows, copy .DLL files to ./bin/ (for execution) and ./lib/ (for linking) + +[[actions."case(os)".windows]] +type = "post-fetch" +command = ["sh", "-c", "mkdir -p ./bin && cp src/win64/*.dll ./bin && mkdir -p ./lib && cp src/win64/*.dll ./lib"] + +[origin] +hashes = [ +"sha512:5caf240f629b0d133121e5765dd2df591f45e2221373b010c74c9e870fea308d445d2e957cbe5806ad0ecff846a6a3ec15c8c8fcd84ae7b532998cd2a5eba2fe", +] +url = "http://repo.munts.com/alire/mcp2221-1.19937.1.tbz2" + diff --git a/index/re/remoteio/remoteio-1.19937.1.toml b/index/re/remoteio/remoteio-1.19937.1.toml new file mode 100644 index 00000000..84cd60e1 --- /dev/null +++ b/index/re/remoteio/remoteio-1.19937.1.toml @@ -0,0 +1,47 @@ +name = "remoteio" +description = "Remote I/O Protocol Client Library for GNAT Ada" +version = "1.19937.1" +licenses = "BSD-1-Clause" +website = "https://github.com/pmunts/libsimpleio" + +authors = ["Philip Munts"] +maintainers = ["Philip Munts "] +maintainers-logins = ["pmunts"] + +project-files = ["remoteio.gpr", "programs.gpr"] + +tags = ["embedded", "linux", "remoteio", "adc", "dac", "gpio", "i2c", "motor", +"pwm", "sensor", "serial", "servo", "spi", "stepper"] + +[available."case(os)"] +'linux|windows' = true +"..." = false + +# Linux needs libhidapi-dev and/or libusb-1.0-0-dev installed + +[[depends-on]] +[depends-on."case(os)"."linux"] +libhidapi = "~0.8" + +[[depends-on]] +[depends-on."case(os)"."linux"] +libusb = "~1.0" + +# On Linux, patch hid-hidapi.ads to link with libhidapi-hidraw.so + +[[actions."case(os)".linux]] +type = "post-fetch" +command = ["sh", "-c", "sed -i 's/lhidapi/lhidapi-hidraw/g' src/objects/hid/hid-hidapi.ads"] + +# On Windows, copy .DLL files to ./bin/ (for execution) and ./lib/ (for linking) + +[[actions."case(os)".windows]] +type = "post-fetch" +command = ["sh", "-c", "mkdir -p ./bin && cp src/win64/*.dll ./bin && mkdir -p ./lib && cp src/win64/*.dll ./lib"] + +[origin] +hashes = [ +"sha512:fc6c694fddf9a62f419ca3c189698c0761b3fbe5c6133d30c11ba2176471f88d019de47c058cadc6eaf253efefcf36bd5ce54637b17481a8fde85894d2d2e84f", +] +url = "http://repo.munts.com/alire/remoteio-1.19937.1.tbz2" + From c260660ae22fd0c3d3e2625ae080a850ee71dd64 Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Tue, 7 Sep 2021 17:45:38 +0200 Subject: [PATCH 4/4] Fix microbit_bsp (#338) * Update microbit_bsp-0.2.0.toml * Update microbit_bsp-0.1.0.toml --- index/mi/microbit_bsp/microbit_bsp-0.1.0.toml | 4 +--- index/mi/microbit_bsp/microbit_bsp-0.2.0.toml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/index/mi/microbit_bsp/microbit_bsp-0.1.0.toml b/index/mi/microbit_bsp/microbit_bsp-0.1.0.toml index a4846558..05781a20 100644 --- a/index/mi/microbit_bsp/microbit_bsp-0.1.0.toml +++ b/index/mi/microbit_bsp/microbit_bsp-0.1.0.toml @@ -1,4 +1,4 @@ -description = "Middleware layer of the Ada Drivers Library project" +description = "Board Support Package for the BBC micro:bit v1" long-description = '''# microbit BSP Board Support Package for the BBC micro:bit https://microbit.org/ @@ -8,7 +8,6 @@ Library](https://github.com/AdaCore/Ada_Drivers_Library/tree/master/middleware). Any bug report, issue, contribution must be adressed to the [Ada Drivers Library](https://github.com/AdaCore/Ada_Drivers_Library/) repo. - ''' name = "microbit_bsp" @@ -17,7 +16,6 @@ licenses = "BSD-3-Clause" website="https://github.com/AdaCore/Ada_Drivers_Library/" maintainers = ["chouteau@adacore.com"] maintainers-logins = ["Fabien-Chouteau"] -project-files = ["adl_middleware.gpr"] tags = ["embedded", "nostd", "microbit", "bbc", "nrf51", "bsp"] [[depends-on]] diff --git a/index/mi/microbit_bsp/microbit_bsp-0.2.0.toml b/index/mi/microbit_bsp/microbit_bsp-0.2.0.toml index b4f75aaa..918a1f5b 100644 --- a/index/mi/microbit_bsp/microbit_bsp-0.2.0.toml +++ b/index/mi/microbit_bsp/microbit_bsp-0.2.0.toml @@ -1,4 +1,4 @@ -description = "Middleware layer of the Ada Drivers Library project" +description = "Board Support Package for the BBC micro:bit v1" long-description = '''# microbit BSP Board Support Package for the BBC micro:bit https://microbit.org/ @@ -8,7 +8,6 @@ Library](https://github.com/AdaCore/Ada_Drivers_Library/tree/master/middleware). Any bug report, issue, contribution must be adressed to the [Ada Drivers Library](https://github.com/AdaCore/Ada_Drivers_Library/) repo. - ''' name = "microbit_bsp" @@ -17,7 +16,6 @@ licenses = "BSD-3-Clause" website="https://github.com/AdaCore/Ada_Drivers_Library/" maintainers = ["chouteau@adacore.com"] maintainers-logins = ["Fabien-Chouteau"] -project-files = ["adl_middleware.gpr"] tags = ["embedded", "nostd", "microbit", "bbc", "nrf51", "bsp"] [[depends-on]]