From b3bfe89aa7c0e9f6c5ed9744ff49849248dc27e9 Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Sat, 27 Aug 2011 23:01:31 +0200 Subject: [PATCH] add initial mp3splt-gtk exheres --- metadata/categories.conf | 1 + ...gtk-0.7-make_doc_generation_optional.patch | 39 +++++++++++++++++++ .../mp3splt-gtk/mp3splt-gtk-0.7.exheres-0 | 39 +++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 packages/media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7-make_doc_generation_optional.patch create mode 100644 packages/media-sound/mp3splt-gtk/mp3splt-gtk-0.7.exheres-0 diff --git a/metadata/categories.conf b/metadata/categories.conf index 0072fc5..09669b1 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -6,6 +6,7 @@ dev-libs dev-lua dev-util games-strategy +media-sound net net-dns sys-apps diff --git a/packages/media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7-make_doc_generation_optional.patch b/packages/media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7-make_doc_generation_optional.patch new file mode 100644 index 0000000..9de8846 --- /dev/null +++ b/packages/media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7-make_doc_generation_optional.patch @@ -0,0 +1,39 @@ +Reason: avoid unnecessary generation of documentation if not wanted +Source: Daniel Mierswa +Upstream: no + +diff -Naur mp3splt-gtk-0.7.orig/configure.ac mp3splt-gtk-0.7/configure.ac +--- mp3splt-gtk-0.7.orig/configure.ac 2011-07-14 12:45:21.000000000 +0200 ++++ mp3splt-gtk-0.7/configure.ac 2011-08-28 00:15:07.000000000 +0200 +@@ -221,16 +221,31 @@ + # (but only if doxygen is installed) + ################################################# + ++AC_ARG_ENABLE(doxygen, [AC_HELP_STRING([--disable-doxygen],[ Disable documentation generation. ]) ], ++ [enable_doxygen=$enableval],[enable_doxygen="yes"]) ++ + # Check for doxygen, so we can decide if we add it to the "doc" + # make target. ++ ++if test "x$enable_doxygen" = xyes;then ++ + AC_PATH_PROG([DOXYGEN],[doxygen]) ++ ++fi ++ + AC_ARG_VAR(DOXYGEN, + [Location of the 'doxygen' program; if found we can generate documentation for the C code]) + AM_CONDITIONAL(HAVE_DOXYGEN, [ test "x$DOXYGEN" != "x" ]) + + # Check for dot, the tool that makes the nice little caller graphs for the + # doxygen documentation. ++ ++if test "x$enable_doxygen" = xyes;then ++ + AC_PATH_PROG([GRAPHVIZ],[dot]) ++ ++fi ++ + AC_ARG_VAR(GRAPHVIZ, + [Location of the 'dot' program from the graphviz suite; if found we can generate caller graphs for the documentation of the C code]) + AM_CONDITIONAL(HAVE_GRAPHVIZ, [ test "x$GRAPHVIZ" != "x" ]) diff --git a/packages/media-sound/mp3splt-gtk/mp3splt-gtk-0.7.exheres-0 b/packages/media-sound/mp3splt-gtk/mp3splt-gtk-0.7.exheres-0 new file mode 100644 index 0000000..9ca42f0 --- /dev/null +++ b/packages/media-sound/mp3splt-gtk/mp3splt-gtk-0.7.exheres-0 @@ -0,0 +1,39 @@ +# Copyright 2011 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +AT_M4DIR=( m4 ) +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.11 ] ] +require sourceforge [ project=mp3splt suffix=tar.gz ] + +SUMMARY="A tactical role-playing game. Third game of the Jagged Alliance series." +DESCRIPTION="GTK+ based mp3 and ogg splitter" +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~x86" + +MYOPTIONS="doc" + +DEPENDENCIES=" + build: + doc? ( + app-doc/doxygen + app-doc/graphviz + ) + build+run: + media-libs/libmp3splt[>=0.7] + x11-libs/gtk+:2[>=2.12.0] +" + +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}"/mp3splt-gtk-0.7-make_doc_generation_optional.patch +) + +DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( 'doc doxygen' ) + +DEFAULT_SRC_CONFIGURE_PARAMS=( + '--disable-gnome' + '--disable-audacious' + '--disable-gstreamer' +) + +