[proaudio] [2620] media-sound/raton: patch away warnings, patch to add -lm to linker options, move to autotools-utils |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Revision: 2620
Author: lilrc
Date: 2013-03-30 21:37:27 +0100 (Sat, 30 Mar 2013)
Log Message:
-----------
media-sound/raton: patch away warnings, patch to add -lm to linker options, move to autotools-utils
Modified Paths:
--------------
trunk/overlays/proaudio/media-sound/raton/ChangeLog
trunk/overlays/proaudio/media-sound/raton/Manifest
trunk/overlays/proaudio/media-sound/raton/raton-0.22.ebuild
Added Paths:
-----------
trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-arguments.patch
trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-include-math.patch
trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-libm.patch
Modified: trunk/overlays/proaudio/media-sound/raton/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-sound/raton/ChangeLog 2013-03-30 19:17:47 UTC (rev 2619)
+++ trunk/overlays/proaudio/media-sound/raton/ChangeLog 2013-03-30 20:37:27 UTC (rev 2620)
@@ -2,6 +2,13 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 30 Mar 2013; Karl Linden (lilrc) <lilrc@xxxxxxxxxxxxxxxxxxxxx>
+ raton-0.22.ebuild, +files/raton-0.22-arguments.patch,
+ +files/raton-0.22-include-math.patch, +files/raton-0.22-libm.patch:
+ Patch to get rid of all warnings.
+ Patch to get -lm to linker options.
+ Move to autotools-utils.
+
30 Mar 2013; Dominique Michel <dominique_libre@xxxxxxxxxxxxxxxxxxxxx> raton-0.22.ebuild:
Updated to EAPI=5; added autotools eclass to fix the build system; fixed Midi
category into the desktop file
Modified: trunk/overlays/proaudio/media-sound/raton/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/raton/Manifest 2013-03-30 19:17:47 UTC (rev 2619)
+++ trunk/overlays/proaudio/media-sound/raton/Manifest 2013-03-30 20:37:27 UTC (rev 2620)
@@ -1,4 +1,7 @@
+AUX raton-0.22-arguments.patch 1137 SHA256 8c5534f78628594f16a38a044b99d02f1796b83613d1e363b2dec39546f5a885 SHA512 df4ec48803f2a06ea8e80af89355ea52fac177dda99550a3493295c83cea0d094f4c49f23221e5ba7abf88cb652f6a4a3f55ab228b10aa18323f29122f959656 WHIRLPOOL 9c1e7ba7758fb9b5727432a13973a20dab3d3a6b78bb032de9178b54189fc62cd41857d775113cb5937d5a59d68d413871bb3572b755b8123d704c1a069aec64
+AUX raton-0.22-include-math.patch 863 SHA256 800a870ef343ed2d20c3969c73b7e00a631d683ab2328fce3089619e800dc0dc SHA512 23821dea3f01554a05acabc3714ee68d4b509db430cc17b026c902d160c233af1bed0ad1e5087aab337e6236f7fbec68e3367747d5262657a9d72afb16e8ab91 WHIRLPOOL 92ec80dd86e354558fb59e14ccf0d07aa639037eb5d02daab02fe3b6b117c85d988f5d6803e33f3494678ad471ca7eabf3b85fe4eaab580e86b694344dba1eb4
+AUX raton-0.22-libm.patch 487 SHA256 382520168c00262ddd140e733b909328f6ec9c7af3604c7e90b2f8d880c033f6 SHA512 64cd9303645de481d88d59f5a0ec42eb1c3891cad2ea1a8a1300a6ad066dfbebe0ab2d1c23d80a75824d434d51777ed28e2f6c754f9cd0d800adb2b3087f9d84 WHIRLPOOL bf7ff7e5f6551761053f421d5694bc5cdd734057db89432ea92c2e3b81b1b5372b0ea348fd35f1a92d855bfac717322f1bf12c58acf1bd86053840a02efa8f36
DIST raton_v0.22.tar.gz 31703 SHA256 ac631c2f09047693e00ad827bdcfe82ec1b43dcce15f0bda10f5c9d1ea924ca7 SHA512 3cb2dbff32e5b8b3bdd6044ebbde0eafaa2d5c1c6792aabace661209146a30f9bd5ad79b8773f60913a42749fa56950b45e5a3f88c073765b8921d4bef4e334b WHIRLPOOL c2ad9f285a2f1b93c11f55e8e75366f5c166e688944375232255e79e9d54782637830d6fe4110d8641fa4e69c3aec91d9880e857da1af5bf2433345bff8571a4
-EBUILD raton-0.22.ebuild 715 SHA256 d7f0afd71c05567e466b6997fd0d6ece28d4e619cabf6229e58baab3d3494b33 SHA512 fb8fc73de4d335e083eaf09f68d436315a5cdf603b017ff39ea1dead036247b927848801e49f5eb8d30a4bdc6210a038d5f901070b5e3c6a944dc1b115e1e7f1 WHIRLPOOL 631f7c3adda23cf23b21936be8c513cb9697daa0251db4655834301d6b710e48098d12692422a4f9d89c3ab1a5e5bfe4197eba326d9cb98db72faf20eb43f2cd
-MISC ChangeLog 563 SHA256 87bf8d6bf199d05a94f1fb1823d9580796cd66ce6966943829821a93167c88ac SHA512 222ec60845a5cc35a879cc1c0d03f0960dbc4c90b84653bbe855a9e6e35e8aa5532869ce8b992497cd30e8204335d9a70818bfa17a0f5ee59ac8ed7d01efb222 WHIRLPOOL fc3c0e150d07e8a13223d6108ed915561e823076147d7c986c59d099a87c976815325ba8270c321003bd15095355a4ef06b6b453962f9c49a8dfb6c73d20d79b
+EBUILD raton-0.22.ebuild 791 SHA256 c8a332e7312d0ea3aa600474701da64d7af42b5ae60f867bc1d19b72213457fa SHA512 d59a3bcbe401083323f9f91d2eef161af73b09a731970c8af1161f3e1a21c05f78b30e856b0737e7eebcab9791f823c54ae11241ae84b4a9519bb90f7e5a1da6 WHIRLPOOL 93a81345d764cfcc084c6a27b2d129654269f27e46d99482f34052293a7758c01f422b6ec20049e0df7654908d03b225faf0d52e3e563ac865fe922a932eaee7
+MISC ChangeLog 856 SHA256 5c8abf68a871f219aff30f91b0761e359e9a89cece1218169b8d10523eb21d52 SHA512 bbdd0931576b661343af84964a2d6a763c6e120812b6aeddb9525d53b22b2ced0b18982593e157979edd11494206edea9a8a2f1eb0f2828cdce42f6dcf95337c WHIRLPOOL 62e16ecc169e59926e77f4fae1917706e1b891346a4b37d1f4fe166de30293689feba29dfb013c17044be7d073c8ad34df35cae2c1a66b11c2234c4f4d965301
MISC metadata.xml 246 SHA256 f32f31abe9dcc1f9a5dc9b6a36996d773abd006d92c13c4df48f8d7d1061060f SHA512 327022589c637a14219eb603a62050fbb93b980f4693960c0ac4117b6b483d9f0d9fe1366d8e18227b34373a399aef339f49c16df8ca57b9ec870568a4d394f4 WHIRLPOOL e55381a9a9fd1d0efbe87da1c3aa302efdcf4734827f56273faeb55b17361c529518fcf16ac0946102e26165e8eedba81ab0cd07c7b08ce6bad001e944e43a0f
Added: trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-arguments.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-arguments.patch (rev 0)
+++ trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-arguments.patch 2013-03-30 20:37:27 UTC (rev 2620)
@@ -0,0 +1,24 @@
+# Get rid of the -Wformat warning telling us there are not enough
+# arguments passed to the function
+
+diff -ur raton_v0.22.b/src/interface.c raton_v0.22.c/src/interface.c
+--- raton_v0.22.b/src/interface.c 2013-03-30 21:18:34.668595593 +0100
++++ raton_v0.22.c/src/interface.c 2013-03-30 21:27:31.551607265 +0100
+@@ -901,7 +901,7 @@
+ GtkWidget *button2;
+ GtkWidget *button3;
+
+- opendialog1 = gtk_file_chooser_dialog_new ("Open", NULL, GTK_FILE_CHOOSER_ACTION_OPEN, NULL);
++ opendialog1 = gtk_file_chooser_dialog_new ("Open", NULL, GTK_FILE_CHOOSER_ACTION_OPEN, NULL, NULL);
+ gtk_window_set_modal (GTK_WINDOW (opendialog1), TRUE);
+ gtk_window_set_type_hint (GTK_WINDOW (opendialog1), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+@@ -949,7 +949,7 @@
+ GtkWidget *button4;
+ GtkWidget *button5;
+
+- savedialog1 = gtk_file_chooser_dialog_new ("Save", NULL, GTK_FILE_CHOOSER_ACTION_SAVE, NULL);
++ savedialog1 = gtk_file_chooser_dialog_new ("Save", NULL, GTK_FILE_CHOOSER_ACTION_SAVE, NULL, NULL);
+ gtk_window_set_modal (GTK_WINDOW (savedialog1), TRUE);
+ gtk_window_set_type_hint (GTK_WINDOW (savedialog1), GDK_WINDOW_TYPE_HINT_DIALOG);
+
Added: trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-include-math.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-include-math.patch (rev 0)
+++ trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-include-math.patch 2013-03-30 20:37:27 UTC (rev 2620)
@@ -0,0 +1,27 @@
+# Get rid of the implicit function declaration warning
+
+diff -ur raton_v0.22.a/configure.in raton_v0.22.b/configure.in
+--- raton_v0.22.a/configure.in 2013-03-30 21:19:41.959597056 +0100
++++ raton_v0.22.b/configure.in 2013-03-30 21:20:34.406598196 +0100
+@@ -16,6 +16,7 @@
+ AC_SUBST(PACKAGE_LIBS)
+
+ AC_CHECK_LIB([m], [sin])
++AC_CHECK_HEADERS([math.h])
+
+ AC_CHECK_LIB(asound, snd_seq_event_output_direct,alsalib=yes,alsalib=no)
+ AC_CHECK_HEADERS(alsa/asoundlib.h,alsaheader=yes,alsaheader=no)
+diff -ur raton_v0.22.a/src/callbacks.c raton_v0.22.b/src/callbacks.c
+--- raton_v0.22.a/src/callbacks.c 2005-01-17 20:47:27.000000000 +0100
++++ raton_v0.22.b/src/callbacks.c 2013-03-30 21:21:20.710599203 +0100
+@@ -2,6 +2,10 @@
+ # include <config.h>
+ #endif
+
++#ifdef HAVE_MATH_H
++#include <math.h>
++#endif
++
+ #include <gtk/gtk.h>
+ #include <stdlib.h>
+ #include <stdio.h>
Added: trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-libm.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-libm.patch (rev 0)
+++ trunk/overlays/proaudio/media-sound/raton/files/raton-0.22-libm.patch 2013-03-30 20:37:27 UTC (rev 2620)
@@ -0,0 +1,14 @@
+# Make sure the -lm is passed to the linker
+
+diff -ur raton_v0.22.orig/configure.in raton_v0.22.a/configure.in
+--- raton_v0.22.orig/configure.in 2005-01-16 14:50:36.000000000 +0100
++++ raton_v0.22.a/configure.in 2013-03-30 21:19:41.959597056 +0100
+@@ -15,6 +15,8 @@
+ AC_SUBST(PACKAGE_CFLAGS)
+ AC_SUBST(PACKAGE_LIBS)
+
++AC_CHECK_LIB([m], [sin])
++
+ AC_CHECK_LIB(asound, snd_seq_event_output_direct,alsalib=yes,alsalib=no)
+ AC_CHECK_HEADERS(alsa/asoundlib.h,alsaheader=yes,alsaheader=no)
+
Modified: trunk/overlays/proaudio/media-sound/raton/raton-0.22.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/raton/raton-0.22.ebuild 2013-03-30 19:17:47 UTC (rev 2619)
+++ trunk/overlays/proaudio/media-sound/raton/raton-0.22.ebuild 2013-03-30 20:37:27 UTC (rev 2620)
@@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI=5
+EAPI="5"
-inherit autotools eutils
+inherit autotools-utils eutils
IUSE=""
RESTRICT="mirror"
@@ -22,12 +22,15 @@
DEPEND=">=media-libs/alsa-lib-0.9
>=x11-libs/gtk+-2.4"
-src_prepare() {
- eautoreconf
-}
+AUTOTOOLS_AUTORECONF="1"
+PATCHES=(
+ "${FILESDIR}/${P}-libm.patch"
+ "${FILESDIR}/${P}-include-math.patch"
+ "${FILESDIR}/${P}-arguments.patch"
+)
+
src_install() {
- emake DESTDIR="${D}" install || die
- dodoc AUTHORS ChangeLog NEWS README
+ autotools-utils_src_install
make_desktop_entry "${PN}" "${PN} mouse to MIDI" "${PN}" "AudioVideo;Audio;Midi"
}