summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2008-12-22 22:51:03 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2008-12-22 22:51:03 +0000
commitf5580bdf2aac847e5f462077214bfac01e6d8589 (patch)
tree9a4c0a5b2dcab56166ac984207c93dce58c0436e /x11-plugins/wmmixer
parentfixup ulgy white space (diff)
downloadhistorical-f5580bdf2aac847e5f462077214bfac01e6d8589.tar.gz
historical-f5580bdf2aac847e5f462077214bfac01e6d8589.tar.bz2
historical-f5580bdf2aac847e5f462077214bfac01e6d8589.zip
Add version that builds and works wrt #227569 and #251813.
Package-Manager: portage-2.1.6.2/cvs/Linux 2.6.27.7 i686
Diffstat (limited to 'x11-plugins/wmmixer')
-rw-r--r--x11-plugins/wmmixer/ChangeLog11
-rw-r--r--x11-plugins/wmmixer/Manifest10
-rw-r--r--x11-plugins/wmmixer/files/wmmixer-1.5-respect_flags.patch35
-rw-r--r--x11-plugins/wmmixer/files/wmmixer-1.5-restore_pristine_code.patch74
-rw-r--r--x11-plugins/wmmixer/files/wmmixer-2.0_beta4.gcc.patch24
-rw-r--r--x11-plugins/wmmixer/files/wmmixer-cflags.patch10
-rw-r--r--x11-plugins/wmmixer/wmmixer-1.5.ebuild38
-rw-r--r--x11-plugins/wmmixer/wmmixer-2.0_beta4-r1.ebuild62
8 files changed, 161 insertions, 103 deletions
diff --git a/x11-plugins/wmmixer/ChangeLog b/x11-plugins/wmmixer/ChangeLog
index 3225dbe98d47..566b434d63f3 100644
--- a/x11-plugins/wmmixer/ChangeLog
+++ b/x11-plugins/wmmixer/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for x11-plugins/wmmixer
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmmixer/ChangeLog,v 1.13 2007/07/22 04:51:32 dberkholz Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmmixer/ChangeLog,v 1.14 2008/12/22 22:51:03 ssuominen Exp $
+
+*wmmixer-1.5 (22 Dec 2008)
+
+ 22 Dec 2008; <ssuominen@gentoo.org>
+ +files/wmmixer-1.5-respect_flags.patch,
+ +files/wmmixer-1.5-restore_pristine_code.patch, +wmmixer-1.5.ebuild:
+ Add version that builds and works wrt #227569 and #251813.
22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>;
wmmixer-2.0_beta4-r1.ebuild:
diff --git a/x11-plugins/wmmixer/Manifest b/x11-plugins/wmmixer/Manifest
index 18034aebfa6b..5af78cd862cb 100644
--- a/x11-plugins/wmmixer/Manifest
+++ b/x11-plugins/wmmixer/Manifest
@@ -1,6 +1,6 @@
-AUX wmmixer-2.0_beta4.gcc.patch 737 RMD160 c914556f65702b8cd4be9a228cb9ce1372d6ab8d SHA1 c9a81c72670fac43c0b749fa7ac1b5e218e6d508 SHA256 4ab78a11fb7ba7ae37575be1586a47b61ffa0ff69e10d0c9cddb6d37c27e1246
-AUX wmmixer-cflags.patch 189 RMD160 e78d2920d44b5ebb14fc11f862fb7d5e8ecdb26c SHA1 08aaff016618b0c334937f9f93f1e22fbf3859c5 SHA256 ed906a5e991b52da0d1e85395f9a5e1fbbf40f768a9c9771209d6eb10028ae1e
-DIST wmmixer-2.0b4.tar.gz 105985 RMD160 cc9c5c9d1c9c1d4153a6cf390b9079db0938e809 SHA1 a7b32977135406d7b29717eb3741e654ed96407c SHA256 0bb350bb6fc0da5cade3426df7ff821b5ec40b0d3aba67ddfcb981c1141c6ecc
-EBUILD wmmixer-2.0_beta4-r1.ebuild 1397 RMD160 bf53d9c8605dbc03d6142b37a68e7ae5b3e319d2 SHA1 44f225ace427e3d7ae3f2fee2bd51bf6546ac6c6 SHA256 471920bd83c275e58f51e4bd85f81b701a2ee91b40ef514a4b9cd39fbea7ae87
-MISC ChangeLog 1780 RMD160 0f0968ca3683203833741a12bc3352f237dce370 SHA1 1bff9781bbfa08a542e6b861cc46b66f400805c8 SHA256 f3aea084a55302714866a2415bfcb4948d1170ff73cbe101396c0b8808627f68
+AUX wmmixer-1.5-respect_flags.patch 935 RMD160 1b7ac764fd75e80a8cc4dee5e80f637f48564aed SHA1 9f4c35c6718f5082db22c88122e517bbf3a42e13 SHA256 b0d17470e0c781a3acf3634220c033d945d808da6ed77f08f15cf2d94b97cdb1
+AUX wmmixer-1.5-restore_pristine_code.patch 2719 RMD160 8af319abb677ab4c3b6a213e5f03f45da6ca707a SHA1 01edd267e54de7b4ca4953064d15375a32db3e07 SHA256 f89048d7184ca35cc30a2f6dcc1bd3f8dd5f86adf70f4551a9db697d23194882
+DIST wmmixer_1.5.orig.tar.gz 27483 RMD160 f310c009f81d90c9d9ef4756f0815129f520bb81 SHA1 6477d3370173630e1c7f498872f93bc66337a6ee SHA256 cf9862468670142ec68985511fbb0ec14df6245609dbee47a411af08f30874f3
+EBUILD wmmixer-1.5.ebuild 930 RMD160 7171fac4a2eabed1fa83d315d8875dad743d4c83 SHA1 89c0ca37e01614285aca89df488e1a6012c81e1e SHA256 bcc71fc3ecd56bab5ccf892248471204863a9362fdfe235c1103d4c1fbaa4cfa
+MISC ChangeLog 2021 RMD160 e9962dc3251315a8174c303bc5327e4b93332097 SHA1 6a486c3c186d6206c12663d0796d00d7de48bc87 SHA256 e796e5f1bc453a561f77562a49e083281a8e934b107fba395badb1510b32ceb0
MISC metadata.xml 310 RMD160 8546219521cf9994a7259aaede5d57d62ed980c9 SHA1 89ac21868177ce142226012086b768b52f325f61 SHA256 630886836a1fea1a30357088ab42a2850734bd43b9a69e29fb5ddf790e72d994
diff --git a/x11-plugins/wmmixer/files/wmmixer-1.5-respect_flags.patch b/x11-plugins/wmmixer/files/wmmixer-1.5-respect_flags.patch
new file mode 100644
index 000000000000..df6d5b33aa21
--- /dev/null
+++ b/x11-plugins/wmmixer/files/wmmixer-1.5-respect_flags.patch
@@ -0,0 +1,35 @@
+diff -ur wmmixer-1.5.orig/Makefile wmmixer-1.5/Makefile
+--- wmmixer-1.5.orig/Makefile 2002-06-25 23:13:11.000000000 +0300
++++ wmmixer-1.5/Makefile 2008-12-23 00:34:28.000000000 +0200
+@@ -1,19 +1,12 @@
+ # $Id: wmmixer-1.5-respect_flags.patch,v 1.1 2008/12/22 22:51:03 ssuominen Exp $
+
+-prefix = /usr/local
++prefix = /usr
+ exec_prefix = ${prefix}
+ bindir = ${exec_prefix}/bin
+ mandir = ${prefix}/share/man
+
+-DESTDIR =
+-
+-CXX = g++
+-CXXFLAGS = -O -Wall
+-EXTRA_LIBS = -L/usr/X11R6/lib -lX11 -lXpm -lXext
+-
+-
+-LD = g++
+-LDFLAGS = -o $(EXECUTABLE) $(EXTRA_LIBDIRS) $(EXTRA_LIBS) $(CXXFLAGS)
++CXX ?= g++
++LIBS = -lX11 -lXpm -lXext
+
+ EXECUTABLE = wmmixer
+ OBJS = xhandler.o mixctl.o wmmixer.o exception.o
+@@ -26,7 +19,7 @@
+ $(CXX) $(CXXFLAGS) -c -o $@ $<
+
+ $(EXECUTABLE): $(OBJS)
+- $(LD) $(LDFLAGS) $(OBJS)
++ $(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o $(EXECUTABLE)
+
+ all: $(EXECUTABLE)
+
diff --git a/x11-plugins/wmmixer/files/wmmixer-1.5-restore_pristine_code.patch b/x11-plugins/wmmixer/files/wmmixer-1.5-restore_pristine_code.patch
new file mode 100644
index 000000000000..d34a300b7ad3
--- /dev/null
+++ b/x11-plugins/wmmixer/files/wmmixer-1.5-restore_pristine_code.patch
@@ -0,0 +1,74 @@
+diff -ur wmmixer-1.5.orig/exception.h wmmixer-1.5/exception.h
+--- wmmixer-1.5.orig/exception.h 2002-06-25 22:22:20.000000000 +0300
++++ wmmixer-1.5/exception.h 2008-12-23 00:24:36.000000000 +0200
+@@ -37,4 +37,4 @@
+ // virtual ~MixerDeviceException();
+ };
+
+-#endif _exception_h__
++#endif //_exception_h__
+diff -ur wmmixer-1.5.orig/mixctl.cc wmmixer-1.5/mixctl.cc
+--- wmmixer-1.5.orig/mixctl.cc 2002-06-25 22:44:55.000000000 +0300
++++ wmmixer-1.5/mixctl.cc 2008-12-23 00:24:36.000000000 +0200
+@@ -243,16 +243,16 @@
+ //----------------------------------------------------------------------
+ bool MixCtl::hasChanged()
+ {
+- struct mixer_info mixer_info;
+- ioctl(mixfd, SOUND_MIXER_INFO, &mixer_info);
++ struct mixer_info mixer_info1;
++ ioctl(mixfd, SOUND_MIXER_INFO, &mixer_info1);
+
+- if (mixer_info.modify_counter == modify_counter)
++ if (mixer_info1.modify_counter == modify_counter)
+ {
+ return false;
+ }
+ else
+ {
+- modify_counter = mixer_info.modify_counter;
++ modify_counter = mixer_info1.modify_counter;
+ return true;
+ }
+ }
+diff -ur wmmixer-1.5.orig/mixctl.h wmmixer-1.5/mixctl.h
+--- wmmixer-1.5.orig/mixctl.h 2002-06-25 23:13:30.000000000 +0300
++++ wmmixer-1.5/mixctl.h 2008-12-23 00:24:36.000000000 +0200
+@@ -23,8 +23,8 @@
+ #ifdef __NetBSD__
+ #include <soundcard.h>
+ #endif
+-#ifdef __FreeBSD__
+-#include <machine/soundcard.h>
++#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
++#include <sys/soundcard.h>
+ #endif
+ #ifdef __linux__
+ #include <linux/soundcard.h>
+diff -ur wmmixer-1.5.orig/README wmmixer-1.5/README
+--- wmmixer-1.5.orig/README 2002-06-25 23:20:09.000000000 +0300
++++ wmmixer-1.5/README 2008-12-23 00:24:36.000000000 +0200
+@@ -82,10 +82,10 @@
+ to reduce the size of the window to 56x56 pixels.
+ The "-position position" option has also been added, so you can push
+ wmcdplay off the edge of the screen while it gets swallowed.
+-To put wmmount in your Wharf, add the following line in the appropriate
++To put wmmixer in your Wharf, add the following line in the appropriate
+ part of your .steprc
+
+-*Wharf wmmixer nil MaxSwallow "wmmount" wmmixer -a -g -0-0 &
++*Wharf wmmixer nil MaxSwallow "wmmixer" wmmixer -a -g -0-0 &
+
+ It is also possible (by editing and recompiling the afterstep sources),
+ to make Wharf handle the new 56x56 pixel window properly - yes, I add
+diff -ur wmmixer-1.5.orig/xhandler.cc wmmixer-1.5/xhandler.cc
+--- wmmixer-1.5.orig/xhandler.cc 2002-06-25 23:13:40.000000000 +0300
++++ wmmixer-1.5/xhandler.cc 2008-12-23 00:24:36.000000000 +0200
+@@ -24,6 +24,7 @@
+ strcpy(backcolor_name_, BACKCOLOR);
+
+ button_state_ = 0;
++ icon_list_ = NULL;
+ }
+
+ //--------------------------------------------------------------------
diff --git a/x11-plugins/wmmixer/files/wmmixer-2.0_beta4.gcc.patch b/x11-plugins/wmmixer/files/wmmixer-2.0_beta4.gcc.patch
deleted file mode 100644
index 590c2d1698e2..000000000000
--- a/x11-plugins/wmmixer/files/wmmixer-2.0_beta4.gcc.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -Naur wmmixer-2.0b4/src/dockapp.cc wmmixer-2.0b4.new/src/dockapp.cc
---- wmmixer-2.0b4/src/dockapp.cc 2003-03-12 21:54:16.000000000 +0100
-+++ wmmixer-2.0b4.new/src/dockapp.cc 2006-09-12 14:36:27.000000000 +0200
-@@ -24,7 +24,7 @@
- {
- theme_ = new Theme(theme_file);
- theme_->initImages(getXHandler());
-- icons_ = new unsigned[theme_->icon_num_];
-+ icons_ = new unsigned[mixer->getNumChannels()];
- }
- catch(InvalidThemeException& e)
- {
-diff -Naur wmmixer-2.0b4/src/theme.cc wmmixer-2.0b4.new/src/theme.cc
---- wmmixer-2.0b4/src/theme.cc 2003-03-12 21:48:20.000000000 +0100
-+++ wmmixer-2.0b4.new/src/theme.cc 2006-09-12 14:33:35.000000000 +0200
-@@ -33,8 +33,6 @@
- }
-
-
-- delete config;
-- config = NULL;
-
- }
-
diff --git a/x11-plugins/wmmixer/files/wmmixer-cflags.patch b/x11-plugins/wmmixer/files/wmmixer-cflags.patch
deleted file mode 100644
index 516b4200e0d1..000000000000
--- a/x11-plugins/wmmixer/files/wmmixer-cflags.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- configure 2004-08-02 12:16:27.093499344 +0200
-+++ configure 2004-08-02 12:24:14.391459256 +0200
-@@ -822,7 +822,6 @@
-
- have_alsa=no
- have_oss=no
--CXXFLAGS='-pedantic -W -Wall -g'
-
-
-
diff --git a/x11-plugins/wmmixer/wmmixer-1.5.ebuild b/x11-plugins/wmmixer/wmmixer-1.5.ebuild
new file mode 100644
index 000000000000..ba8560af6b93
--- /dev/null
+++ b/x11-plugins/wmmixer/wmmixer-1.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmmixer/wmmixer-1.5.ebuild,v 1.1 2008/12/22 22:51:03 ssuominen Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A mixer designed for WindowMaker"
+HOMEPAGE="http://packages.qa.debian.org/w/wmmixer.html"
+SRC_URI="mirror://debian/pool/main/w/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~mips ~sparc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+ x11-proto/xextproto"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-restore_pristine_code.patch \
+ "${FILESDIR}"/${P}-respect_flags.patch
+}
+
+src_compile() {
+ tc-export CXX
+ emake || die "emake failed."
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc CHANGES home.wmmixer README
+}
diff --git a/x11-plugins/wmmixer/wmmixer-2.0_beta4-r1.ebuild b/x11-plugins/wmmixer/wmmixer-2.0_beta4-r1.ebuild
deleted file mode 100644
index adc779a716d1..000000000000
--- a/x11-plugins/wmmixer/wmmixer-2.0_beta4-r1.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmmixer/wmmixer-2.0_beta4-r1.ebuild,v 1.5 2007/07/22 04:51:32 dberkholz Exp $
-
-inherit eutils
-
-IUSE="alsa"
-
-DESCRIPTION="The next generation of WMMixer with native ALSA and OSS support."
-SRC_URI="http://freakzone.net/gordon/src/${PN}-2.0b4.tar.gz"
-HOMEPAGE="http://freakzone.net/gordon/#wmmixer"
-
-RDEPEND="x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXpm
- x11-proto/xproto
- x11-proto/xextproto
- alsa? ( media-libs/alsa-lib )"
-DEPEND="${RDEPEND}
- >=sys-apps/sed-4"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~mips sparc x86"
-
-S="${WORKDIR}/${PN}-2.0b4"
-
-src_unpack() {
-
- unpack ${A}
- cd ${S}
- sed -i 's#/usr/local/share#/usr/share#g' src/wmmixer.h example/*
-
- # Allow use of Gentoo CXXFLAGS
- epatch ${FILESDIR}/${PN}-cflags.patch
-
- # Fix compilation issues with recent gcc versions
- epatch ${FILESDIR}/${P}.gcc.patch
-}
-
-src_compile() {
-
- local myconf=""
-
- if use alsa ; then
- myconf="${myconf} --enable-alsa"
- fi
-
- econf "${myconf}" || die
- emake || die
-}
-
-src_install() {
-
- einstall || die
- dodoc README AUTHORS example/home.wmmixerrc example/home.wmmixer
-
- einfo
- einfo "Two sample configuration files have been installed in /usr/share/doc/${PF}/."
- einfo "You can copy one of them to ~/.wmmixerrc and adjust any settings you may need."
- einfo
-}