Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100604 - media-sound/gnusound-0.7.4 bump request
Summary: media-sound/gnusound-0.7.4 bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Sound Team
URL: http://www.gnu.org/software/gnusound/
Whiteboard:
Keywords: EBUILD
Depends on: 114021
Blocks:
  Show dependency tree
 
Reported: 2005-07-28 09:13 UTC by Nickolay Kolchin-Semyonov
Modified: 2006-11-29 12:02 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnusound-0.7.4.ebuild (gnusound-0.7.4.ebuild,1.38 KB, text/plain)
2005-07-28 09:13 UTC, Nickolay Kolchin-Semyonov
Details
gnusound-0.7.4-destdir.patch (gnusound-0.7.4-destdir.patch,2.65 KB, patch)
2005-07-28 09:14 UTC, Nickolay Kolchin-Semyonov
Details | Diff
gnusound-0.7.4-invert_mute_switches.patch (gnusound-0.7.4-invert_mute_switches.patch,536 bytes, patch)
2005-07-28 09:14 UTC, Nickolay Kolchin-Semyonov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nickolay Kolchin-Semyonov 2005-07-28 09:13:07 UTC
updated ebuild for gnusound-0.7.4
Comment 1 Nickolay Kolchin-Semyonov 2005-07-28 09:13:42 UTC
Created attachment 64546 [details]
gnusound-0.7.4.ebuild
Comment 2 Nickolay Kolchin-Semyonov 2005-07-28 09:14:06 UTC
Created attachment 64547 [details, diff]
gnusound-0.7.4-destdir.patch
Comment 3 Nickolay Kolchin-Semyonov 2005-07-28 09:14:26 UTC
Created attachment 64548 [details, diff]
gnusound-0.7.4-invert_mute_switches.patch
Comment 4 Nickolay Kolchin-Semyonov 2005-07-28 09:19:04 UTC
I've added additional IUSE flags to ebuild: flac, ffmpeg, sndfile, lame. 
gnusound uses this libs if they are available. But there is no way to disable 
usage of this libs. So gnusound will build with "ffmpeg" support, even if 
"-ffmpeg" is passed in command line.  
 
I don't know the correct way of handling this issue in Gentoo ebuilds. 
Comment 5 Stian Skjelstad 2005-07-28 09:26:23 UTC
(In reply to comment #4)
> I've added additional IUSE flags to ebuild: flac, ffmpeg, sndfile, lame. 
> gnusound uses this libs if they are available. But there is no way to disable 
> usage of this libs. So gnusound will build with "ffmpeg" support, even if 
> "-ffmpeg" is passed in command line.  
>  
> I don't know the correct way of handling this issue in Gentoo ebuilds. 

You need to patch configure.in/configure.ac/configure to respect the value of a
withFEATURE=no. I can make some samples if you need
Comment 6 Nickolay Kolchin-Semyonov 2005-07-28 09:37:57 UTC
(In reply to comment #5) 
>  
> You need to patch configure.in/configure.ac/configure to respect the value of 
a 
> withFEATURE=no. I can make some samples if you need 
 
Thanks, I'm familiar with autoconf system. I simply don't like the idea of 
patching some application build system for each new release. 
 
Comment 7 Stian Skjelstad 2005-07-28 11:23:09 UTC
This is a sample from a live configure.ac I have:

dnl First of, you need to define the --with params

AC_ARG_WITH(x11, [  --with-x11              force/disable x11 support],,
with_x11=auto)
AC_ARG_WITH(adplug, [  --with-adplug           force/disable adplug support],,
with_adplug=auto)

dnl Then when testing for features, we check if the feature is actually wanted.
Bit stupid perphaps, but I don't know any better way to implement both yes, auto
and no for a feature, that also exit if user wants the feature, and it isn't found

if test "x$with_x11" != "xno"; then
        AC_CHECK_HEADER(X11/extensions/xf86dga.h, , if test "x$with_x11" =
"xyes"; then AC_MSG_ERROR("DGA (version 2) header files was not found", -1);
else with_x11="no"; fi ,
[#include <X11/Xlib.h>
])
fi
if test "x$with_x11" != "xno"; then
        AC_CHECK_HEADER(X11/extensions/xf86vmode.h, , if test "x$with_x11" =
"xyes"; then AC_MSG_ERROR("xvidmode header files was not found", -1); else
with_x11="no"; fi,
[#include <X11/Xlib.h>
])  
fi  
AC_LANG_PUSH(C++)
if test "x$with_adplug" != "xno"; then
        AC_CHECK_HEADER(adplug/adplug.h, , if test "x$with_adplug" = "xyes";
then AC_MSG_ERROR("Adplug header files was not found"); else with_adplug="no"; fi)
fi
if test "x$with_adplug" != "xno"; then
        AC_CHECK_LIB(adplug, docell0, , if test "x$with_adplug" = "xyes"; then
AC_MSG_ERROR("Adplug was not found"); else with_adplug="no"; fi)
fi
if test "x$with_adplug" != "xno"; then
        AC_TRY_LINK([#include <adplug/emuopl.h>], [CEmuopl opl = CEmuopl(48000,
1, 1)], , AC_MSG_ERROR("Adplug was compiled with a different c++ compiler"))
fi

dnl Then we can check the results, before generating the result files

AC_SUBST(HAVE_X11)
if test "x$with_x11" = "xno"; then
        DGA_LIBS=
        HAVE_X11=       
else
        HAVE_X11=1      
        AC_DEFINE(HAVE_X11)
fi                              

AC_SUBST(HAVE_ADPLUG)
AC_SUBST(ADPLUG_INI)
if test "x$with_adplug" = "xno"; then
        HAVE_ADPLUG=
        ADPLUG_INI=
else
        HAVE_ADPLUG=1
        ADPLUG_INI=opltype
fi
Comment 8 Alexis Ballier gentoo-dev 2006-11-29 12:02:26 UTC
Bumped, force the use of gnome2, added mandriva's patches plus one to remove those damn automagic deps.