git: b1598a98ce0b - main - multimedia/libbluray: Update to 1.3.1

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Mon, 23 May 2022 14:53:28 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b1598a98ce0b8e12038e24a6f34fb08a79949506

commit b1598a98ce0b8e12038e24a6f34fb08a79949506
Author:     Martin Neubauer <m.ne@gmx.net>
AuthorDate: 2022-05-23 14:51:06 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-05-23 14:51:06 +0000

    multimedia/libbluray: Update to 1.3.1
    
    ChangeLog: https://code.videolan.org/videolan/libbluray/-/blob/1.3.1/ChangeLog
    
    PR:             264135
---
 multimedia/libbluray/Makefile                        |  3 +--
 multimedia/libbluray/distinfo                        |  6 +++---
 ...-src_libbluray_bdj_java_java_io_BDFileSystem.java | 20 ++++++++++++++++++++
 multimedia/libbluray/pkg-plist                       |  6 +++---
 4 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/multimedia/libbluray/Makefile b/multimedia/libbluray/Makefile
index 7dbe3421dc05..aa1676bd9c18 100644
--- a/multimedia/libbluray/Makefile
+++ b/multimedia/libbluray/Makefile
@@ -1,8 +1,7 @@
 # Created by: kamikaze@bsdforen.de
 
 PORTNAME=	libbluray
-DISTVERSION=	1.3.0
-PORTREVISION=	2
+DISTVERSION=	1.3.1
 PORTEPOCH=	1
 CATEGORIES=	multimedia
 MASTER_SITES=	https://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION}/
diff --git a/multimedia/libbluray/distinfo b/multimedia/libbluray/distinfo
index 244c7844cadd..00500b73de3b 100644
--- a/multimedia/libbluray/distinfo
+++ b/multimedia/libbluray/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1618130604
-SHA256 (libbluray-1.3.0.tar.bz2) = e2dbaf99e84e0a9725f4985bcb85d41e52c2261cc651d8884b1b790b5ef016f9
-SIZE (libbluray-1.3.0.tar.bz2) = 754069
+TIMESTAMP = 1653163455
+SHA256 (libbluray-1.3.1.tar.bz2) = c24b0f41c5b737bbb65c544fe63495637a771c10a519dfc802e769f112b43b75
+SIZE (libbluray-1.3.1.tar.bz2) = 754867
diff --git a/multimedia/libbluray/files/patch-src_libbluray_bdj_java_java_io_BDFileSystem.java b/multimedia/libbluray/files/patch-src_libbluray_bdj_java_java_io_BDFileSystem.java
new file mode 100644
index 000000000000..114dbf7fdfe5
--- /dev/null
+++ b/multimedia/libbluray/files/patch-src_libbluray_bdj_java_java_io_BDFileSystem.java
@@ -0,0 +1,20 @@
+--- src/libbluray/bdj/java/java/io/BDFileSystem.java.orig	2022-03-03 17:05:27 UTC
++++ src/libbluray/bdj/java/java/io/BDFileSystem.java
+@@ -227,6 +227,17 @@ public abstract class BDFileSystem extends FileSystem 
+         return fs.isAbsolute(f);
+     }
+ 
++    public boolean isInvalid(File f) {
++        try {
++            Method m = fs.getClass().getDeclaredMethod("isInvalid", new Class[] { File.class });
++            Object[] args = new Object[] {(Object)f};
++            Boolean result = (Boolean)m.invoke(fs, args);
++            return result.booleanValue();
++        } finally {
++            return false;
++        }
++    }
++
+     public String resolve(File f) {
+         if (!booted)
+             return fs.resolve(f);
diff --git a/multimedia/libbluray/pkg-plist b/multimedia/libbluray/pkg-plist
index 060db3881236..be2429ea31cf 100644
--- a/multimedia/libbluray/pkg-plist
+++ b/multimedia/libbluray/pkg-plist
@@ -12,7 +12,7 @@ include/libbluray/overlay.h
 include/libbluray/player_settings.h
 lib/libbluray.so
 lib/libbluray.so.2
-lib/libbluray.so.2.4.0
+lib/libbluray.so.2.4.1
 libdata/pkgconfig/libbluray.pc
-%%JAVA%%%%JAVASHAREDIR%%/libbluray-j2se-1.3.0.jar
-%%JAVA%%%%JAVASHAREDIR%%/libbluray-awt-j2se-1.3.0.jar
+%%JAVA%%%%JAVASHAREDIR%%/libbluray-j2se-1.3.1.jar
+%%JAVA%%%%JAVASHAREDIR%%/libbluray-awt-j2se-1.3.1.jar