Skip to content

Commit

Permalink
comms/java-simple-serial-connector, devel/arduino18, devel/arduino-co…
Browse files Browse the repository at this point in the history
…re: fix serial communication for leonardo

   and re-rolled distribution for arduino-core.

PR:		232991
Submitted by:	kevans
  • Loading branch information
lrosenman committed Mar 13, 2019
1 parent e99cda4 commit 8adc50b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
1 change: 1 addition & 0 deletions comms/java-simple-serial-connector/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

PORTNAME= java-simple-serial-connector
PORTVERSION= 2.8.0
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= comms java

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
PORTNAMES_PATH = "/dev/";
break;
}
+ case SerialNativeInterface.OS_FREEBSD: {
+ PORTNAMES_REGEXP = Pattern.compile("cuaU[0-9]{1,3}");
+ PORTNAMES_PATH = "/dev/";
+ break;
+ }
+ case SerialNativeInterface.OS_FREEBSD: {
+ PORTNAMES_REGEXP = Pattern.compile("cuaU[0-9]{1,3}$");
+ PORTNAMES_PATH = "/dev/";
+ break;
+ }
case SerialNativeInterface.OS_WINDOWS: {
PORTNAMES_REGEXP = Pattern.compile("");
PORTNAMES_PATH = "";
10 changes: 5 additions & 5 deletions devel/arduino-core/distinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TIMESTAMP = 1490895941
SHA256 (arduino/arduino-Arduino-1.6.18-b439a77_GH0.tar.gz) = ded6eebe1b58834df432e8d49f01a8c1aeb1328479f244075db7f76c12019f37
SIZE (arduino/arduino-Arduino-1.6.18-b439a77_GH0.tar.gz) = 48187661
TIMESTAMP = 1552437121
SHA256 (arduino/arduino-Arduino-1.6.18-b439a77_GH0.tar.gz) = 70191e9badd0986b697326d4640da1d24090f0c72a7e8c8f783bcb1ca63121a4
SIZE (arduino/arduino-Arduino-1.6.18-b439a77_GH0.tar.gz) = 48187647
SHA256 (arduino/arduino-ArduinoCore-sam-fc57f2e_GH0.tar.gz) = 3d374e7c7037d317f5da73c95361033b81e6cc12330a7623b20ad2f084bff247
SIZE (arduino/arduino-ArduinoCore-sam-fc57f2e_GH0.tar.gz) = 38839710
SHA256 (arduino/arduino-ArduinoCore-samd-1.6.12_GH0.tar.gz) = fefa0cb0871033451aa0ea08b6a9b4587acdd800b6064a9d47233be7b6368ce8
SIZE (arduino/arduino-ArduinoCore-samd-1.6.12_GH0.tar.gz) = 3321356
SHA256 (arduino/arduino-ArduinoCore-samd-1.6.12_GH0.tar.gz) = 24527ad183696357be6c97ce8da1c777f9664266452d6ad717b2ec582f08def3
SIZE (arduino/arduino-ArduinoCore-samd-1.6.12_GH0.tar.gz) = 3323979
1 change: 1 addition & 0 deletions devel/arduino18/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

PORTNAME= arduino
PORTVERSION= 1.8.5
PORTREVISION= 1
CATEGORIES= devel java
PKGNAMESUFFIX= 18
DIST_SUBDIR= ${PORTNAME}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- arduino-core/src/processing/app/SerialPortList.java.orig 2019-03-12 21:32:52 UTC
+++ arduino-core/src/processing/app/SerialPortList.java
@@ -66,6 +66,11 @@ public class SerialPortList {
PORTNAMES_PATH = "";
break;
}
+ case SerialNativeInterface.OS_FREEBSD: {
+ PORTNAMES_REGEXP = Pattern.compile("cuaU[0-9]{1,3}$");
+ PORTNAMES_PATH = "/dev/";
+ break;
+ }
default: {
PORTNAMES_REGEXP = null;
PORTNAMES_PATH = null;

0 comments on commit 8adc50b

Please sign in to comment.