media-sound/audiotools: fix build with older libcdio-paranoia versions
authorTim Harder <radhermit@gentoo.org>
Wed, 10 Jul 2019 08:10:12 +0000 (02:10 -0600)
committerTim Harder <radhermit@gentoo.org>
Wed, 10 Jul 2019 08:13:51 +0000 (02:13 -0600)
Closes: https://bugs.gentoo.org/689580

Signed-off-by: Tim Harder <radhermit@gentoo.org>
media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch

index 1081149641a6a3d0f8f0c1b2ad2238f1dac6e839..f0ac41661d9d7bd7243fe922cefd0987037e0d65 100644 (file)
@@ -1,4 +1,4 @@
-Add support for Gentoo's newer dev-libs/libcdio-paranoia file layout and
+Add support for Gentoo's dev-libs/libcdio-paranoia file layout and
 versioning.
 
 --- audiotools-3.1.1/setup.py
@@ -20,14 +20,17 @@ versioning.
                  # 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
+@@ -1,11 +1,6 @@
+ #include <Python.h>
+-#ifdef OLD_PARANOIA
+-#include <cdio/cdda.h>
+-#include <cdio/paranoia.h>
+-#else
 -#include <cdio/cdparanoia/cdda.h>
 -#include <cdio/cdparanoia/paranoia.h>
+-#endif
 +#include <cdio/paranoia/cdda.h>
 +#include <cdio/paranoia/paranoia.h>
- #endif
  
  /********************************************************
+  Audio Tools, a module and set of tools for manipulating audio data