summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch')
-rw-r--r--media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch b/media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch
new file mode 100644
index 000000000000..1081149641a6
--- /dev/null
+++ b/media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch
@@ -0,0 +1,33 @@
+Add support for Gentoo's newer dev-libs/libcdio-paranoia file layout and
+versioning.
+
+--- audiotools-3.1.1/setup.py
++++ audiotools-3.1.1/setup.py
+@@ -190,6 +190,14 @@
+ return tuple(int(s) for s in pkg_config_stdout.split("."))
+ except ValueError:
+ # version isn't all integers
++ # try to split off libcdio_paranoia extended versioning
++ if library == 'libcdio_paranoia':
++ version = pkg_config_stdout.partition('+')[2]
++ if version:
++ try:
++ return tuple(int(s) for s in version.split("."))
++ except ValueError:
++ pass
+ return tuple()
+ else:
+ # library not found
+--- audiotools-3.1.1/src/cdiomodule.h
++++ audiotools-3.1.1/src/cdiomodule.h
+@@ -3,8 +3,8 @@
+ #include <cdio/cdda.h>
+ #include <cdio/paranoia.h>
+ #else
+-#include <cdio/cdparanoia/cdda.h>
+-#include <cdio/cdparanoia/paranoia.h>
++#include <cdio/paranoia/cdda.h>
++#include <cdio/paranoia/paranoia.h>
+ #endif
+
+ /********************************************************