Skip to content

Commit

Permalink
Merge pull request #104 from g-maxime/mediainfo-24.10
Browse files Browse the repository at this point in the history
mediainfo-gui, dvrescue: replace include in ZenLib
  • Loading branch information
JeromeMartinez authored Nov 10, 2024
2 parents 9c1be0f + 8022fb1 commit 8ad51c8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
19 changes: 18 additions & 1 deletion dvrescue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class Dvrescue < Formula

depends_on "xmlstarlet"

patch :DATA

def install
cd "ZenLib/Project/GNU/Library" do
args = ["--disable-debug",
Expand Down Expand Up @@ -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 <new> //for size_t
+ #include <cstddef> //for size_t
#else /* __cplusplus */
#include <stddef.h> //for size_t
#endif /* __cplusplus */
17 changes: 17 additions & 0 deletions mediainfo-gui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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 <new> //for size_t
+ #include <cstddef> //for size_t
#else /* __cplusplus */
#include <stddef.h> //for size_t
#endif /* __cplusplus */

0 comments on commit 8ad51c8

Please sign in to comment.