From 8022fb175482e1e52b9c8a7bf8f8e76188a717f0 Mon Sep 17 00:00:00 2001 From: Maxime Gervais Date: Fri, 8 Nov 2024 14:11:24 +0100 Subject: [PATCH] mediainfo-gui, dvrescue: replace include in ZenLib Signed-off-by: Maxime Gervais --- dvrescue.rb | 19 ++++++++++++++++++- mediainfo-gui.rb | 17 +++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/dvrescue.rb b/dvrescue.rb index 2208dd4..583d478 100644 --- a/dvrescue.rb +++ b/dvrescue.rb @@ -6,6 +6,8 @@ class Dvrescue < Formula depends_on "xmlstarlet" + patch :DATA + def install cd "ZenLib/Project/GNU/Library" do args = ["--disable-debug", @@ -34,6 +36,21 @@ def install end test do - system "#{bin}/dvrescue", "--help" + system "bin/dvrescue", "--help" end end + +__END__ +diff --git a/ZenLib/Source/ZenLib/Conf.h b/ZenLib/Source/ZenLib/Conf.h +index 792f313..735aa33 100644 +--- a/ZenLib/Source/ZenLib/Conf.h ++++ b/ZenLib/Source/ZenLib/Conf.h +@@ -208,7 +208,7 @@ + //--------------------------------------------------------------------------- + //(-1) is known to be the MAX of an unsigned int but GCC complains about it + #ifdef __cplusplus +- #include //for size_t ++ #include //for size_t + #else /* __cplusplus */ + #include //for size_t + #endif /* __cplusplus */ diff --git a/mediainfo-gui.rb b/mediainfo-gui.rb index e8d3960..57171d6 100644 --- a/mediainfo-gui.rb +++ b/mediainfo-gui.rb @@ -9,6 +9,8 @@ class MediainfoGui < Formula depends_on "curl" depends_on "wxwidgets" + patch :DATA + def install cd "ZenLib/Project/GNU/Library" do args = ["--disable-debug", @@ -37,3 +39,18 @@ def install assert_predicate `bin/mediainfo-gui`, :exist? end end + +__END__ +diff --git a/ZenLib/Source/ZenLib/Conf.h b/ZenLib/Source/ZenLib/Conf.h +index 792f313..735aa33 100644 +--- a/ZenLib/Source/ZenLib/Conf.h ++++ b/ZenLib/Source/ZenLib/Conf.h +@@ -208,7 +208,7 @@ + //--------------------------------------------------------------------------- + //(-1) is known to be the MAX of an unsigned int but GCC complains about it + #ifdef __cplusplus +- #include //for size_t ++ #include //for size_t + #else /* __cplusplus */ + #include //for size_t + #endif /* __cplusplus */