[SCM] audacity/master: Register FLAC file type in .desktop file.

bdrung at users.alioth.debian.org bdrung at users.alioth.debian.org
Thu Mar 8 16:51:01 UTC 2012


The following commit has been merged in the master branch:
commit dbaced878a909555bae2471ba4e6caf579c01373
Author: Benjamin Drung <bdrung at debian.org>
Date:   Thu Mar 8 16:39:38 2012 +0100

    Register FLAC file type in .desktop file.
    
    Closes: #661921

diff --git a/debian/patches/additional-mime-types.patch b/debian/patches/additional-mime-types.patch
new file mode 100644
index 0000000..eb13900
--- /dev/null
+++ b/debian/patches/additional-mime-types.patch
@@ -0,0 +1,44 @@
+Description: Register FLAC file type in .desktop file.
+Author: Benjamin Drung <bdrung at debian.org>
+Bug-Debian: http://bugs.debian.org/661921
+Bug: http://bugzilla.audacityteam.org/show_bug.cgi?id=483
+
+--- a/src/audacity.desktop.in
++++ b/src/audacity.desktop.in
+@@ -17,4 +17,4 @@
+ Exec=@AUDACITY_NAME@
+ StartupNotify=false
+ Terminal=false
+-MimeType=application/ogg;audio/basic;audio/mpeg;audio/x-aiff;audio/x-mp3;audio/x-wav;application/x-audacity-project;
++MimeType=application/ogg;audio/basic;audio/mpeg;audio/x-aiff;audio/x-mp3;audio/x-wav;application/x-audacity-project;@MIMETYPES@
+--- a/configure.in
++++ b/configure.in
+@@ -88,6 +88,8 @@
+ dnl audacity. Each name in the list should be a _target_ in lib-src/Makefile
+ AC_SUBST(LIBSRC_BUILD)
+ 
++AC_SUBST(MIMETYPES)
++
+ dnl allow the user to specify options to configure that change the
+ dnl name "audacity" anywhere it appears in a pathname.   This allows
+ dnl multiple versions of Audacity to be installed concurrently
+@@ -454,6 +456,9 @@
+ for lib in $LIBRARIES ; do
+    eval LIB_USE_LOCAL=\$${lib}_USE_LOCAL
+    eval LIB_USE_SYSTEM=\$${lib}_USE_SYSTEM
++   if test "$LIB_USE_LOCAL" = yes -o "$LIB_USE_SYSTEM" = yes; then
++      eval MIMETYPES=\"${MIMETYPES}\$${lib}_MIMETYPES\"
++   fi
+    if test "x$LIB_USE_LOCAL" = "xyes" ; then
+       eval LIBSRC_BUILD=\"$LIBSRC_BUILD \$${lib}_LOCAL_BUILD\"
+       eval LOCAL_LIBS=\"$LOCAL_LIBS \$${lib}_LOCAL_LIBS\"
+--- a/m4/audacity_checklib_libflac.m4
++++ b/m4/audacity_checklib_libflac.m4
+@@ -68,5 +68,7 @@
+    else
+       AC_MSG_NOTICE([FLAC libraries are NOT available in this source tree])
+    fi
++
++   LIBFLAC_MIMETYPES="audio/flac;audio/x-flac;"
+ ])
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 9245a4c..10f170a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 disable-dynamic-ffmpeg.patch
 disable-dynamic-lame.patch
 label-region-relation.patch
+additional-mime-types.patch

-- 
Audacity debian packaging



More information about the pkg-multimedia-commits mailing list