mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-03-01 23:35:48 +01:00
initial import
This commit is contained in:
@@ -0,0 +1 @@
|
||||
MD5 a1685669f12770fbce0ea412e4e8e7da xmms-shell-0.99.0.tar.gz 51914
|
||||
@@ -0,0 +1 @@
|
||||
MD5 7c59ff584ae146282259fd6cdc8fe669 xmms-shell-0.99.3.tar.gz 59940
|
||||
68
media-plugins/xmms-shell/files/xmms-shell-gcc3.patch
Normal file
68
media-plugins/xmms-shell/files/xmms-shell-gcc3.patch
Normal file
@@ -0,0 +1,68 @@
|
||||
diff -ur xmms-shell-0.99.0.original/include/command.h xmms-shell-0.99.0/include/command.h
|
||||
--- xmms-shell-0.99.0.original/include/command.h 2002-02-11 01:07:27.000000000 -0600
|
||||
+++ xmms-shell-0.99.0/include/command.h 2002-05-09 08:02:00.000000000 -0500
|
||||
@@ -5,6 +5,8 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
+using namespace std;
|
||||
+
|
||||
#define COMFLAG_INTERACTIVE 0x1
|
||||
|
||||
#define COMERR_NOEFFECT 123
|
||||
diff -ur xmms-shell-0.99.0.original/src/eval.cc xmms-shell-0.99.0/src/eval.cc
|
||||
--- xmms-shell-0.99.0.original/src/eval.cc 2002-02-10 22:59:34.000000000 -0600
|
||||
+++ xmms-shell-0.99.0/src/eval.cc 2002-05-09 08:02:24.000000000 -0500
|
||||
@@ -3,6 +3,8 @@
|
||||
#include "command.h"
|
||||
#include <stdio.h>
|
||||
|
||||
+#include <cctype>
|
||||
+
|
||||
static string dequote(const string &line, string::const_iterator &p, bool &completed)
|
||||
{
|
||||
string arg;
|
||||
diff -ur xmms-shell-0.99.0.original/src/general.cc xmms-shell-0.99.0/src/general.cc
|
||||
--- xmms-shell-0.99.0.original/src/general.cc 2002-02-11 01:05:04.000000000 -0600
|
||||
+++ xmms-shell-0.99.0/src/general.cc 2002-05-09 08:02:37.000000000 -0500
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "config.h"
|
||||
#include "command.h"
|
||||
#include "output.h"
|
||||
+#include <cctype>
|
||||
|
||||
class QuitCommand : public Command
|
||||
{
|
||||
diff -ur xmms-shell-0.99.0.original/src/misc.cc xmms-shell-0.99.0/src/misc.cc
|
||||
--- xmms-shell-0.99.0.original/src/misc.cc 2002-02-10 21:05:31.000000000 -0600
|
||||
+++ xmms-shell-0.99.0/src/misc.cc 2002-05-09 08:02:54.000000000 -0500
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <errno.h>
|
||||
#include <xmmsctrl.h>
|
||||
#include "command.h"
|
||||
+#include <cctype>
|
||||
|
||||
#define SECTION virtual const string get_section(void) const { return "Playlist"; }
|
||||
|
||||
diff -ur xmms-shell-0.99.0.original/src/playlist.cc xmms-shell-0.99.0/src/playlist.cc
|
||||
--- xmms-shell-0.99.0.original/src/playlist.cc 2002-02-10 20:01:44.000000000 -0600
|
||||
+++ xmms-shell-0.99.0/src/playlist.cc 2002-05-09 08:03:07.000000000 -0500
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <errno.h>
|
||||
#include <xmmsctrl.h>
|
||||
#include "command.h"
|
||||
+#include <cctype>
|
||||
|
||||
#define SECTION virtual const string get_section(void) const { return "Playlist"; }
|
||||
|
||||
diff -ur xmms-shell-0.99.0.original/src/volume.cc xmms-shell-0.99.0/src/volume.cc
|
||||
--- xmms-shell-0.99.0.original/src/volume.cc 2002-02-10 22:50:01.000000000 -0600
|
||||
+++ xmms-shell-0.99.0/src/volume.cc 2002-05-09 08:03:20.000000000 -0500
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <xmmsctrl.h>
|
||||
#include "config.h"
|
||||
#include "command.h"
|
||||
+#include <cctype>
|
||||
|
||||
#define SECTION virtual const string get_section(void) const { return "Volume Control"; }
|
||||
|
||||
16
media-plugins/xmms-shell/files/xmms-shell-null-skin.patch
Normal file
16
media-plugins/xmms-shell/files/xmms-shell-null-skin.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff -ur xmms-shell-0.99.3.original/src/session.cc xmms-shell-0.99.3/src/session.cc
|
||||
--- xmms-shell-0.99.3.original/src/session.cc 2002-10-22 19:45:55.000000000 -0400
|
||||
+++ xmms-shell-0.99.3/src/session.cc 2004-01-25 20:46:38.000000000 -0500
|
||||
@@ -219,7 +219,11 @@
|
||||
{
|
||||
ensure_running();
|
||||
|
||||
- return xmms_remote_get_skin(sid);
|
||||
+ if (xmms_remote_get_skin(sid)) {
|
||||
+ return xmms_remote_get_skin(sid);
|
||||
+ } else {
|
||||
+ return "";
|
||||
+ }
|
||||
}
|
||||
|
||||
#if HAVE_XMMS_REMOTE_GET_EQ
|
||||
84
media-plugins/xmms-shell/files/xmms-shell-playlist.patch
Normal file
84
media-plugins/xmms-shell/files/xmms-shell-playlist.patch
Normal file
@@ -0,0 +1,84 @@
|
||||
diff -urP xmms-shell-0.99.3.orig/include/playlist.h xmms-shell-0.99.3/include/playlist.h
|
||||
--- xmms-shell-0.99.3.orig/include/playlist.h 2002-10-22 19:46:17.000000000 -0400
|
||||
+++ xmms-shell-0.99.3/include/playlist.h 2004-03-16 14:20:34.000000000 -0500
|
||||
@@ -19,7 +19,7 @@
|
||||
int length(void) const;
|
||||
int position(void) const;
|
||||
void set_position(int pos) const;
|
||||
- void check_position(int pos, int min_value = 1) const;
|
||||
+ bool check_position(int pos, int min_value = 1) const;
|
||||
string current_title(void) const;
|
||||
string title(int pos) const;
|
||||
string current_filename(void) const;
|
||||
diff -urP xmms-shell-0.99.3.orig/src/playlist.cc xmms-shell-0.99.3/src/playlist.cc
|
||||
--- xmms-shell-0.99.3.orig/src/playlist.cc 2002-10-22 19:49:10.000000000 -0400
|
||||
+++ xmms-shell-0.99.3/src/playlist.cc 2004-03-16 14:18:19.000000000 -0500
|
||||
@@ -490,8 +490,9 @@
|
||||
|
||||
void Playlist::set_position(int pos) const
|
||||
{
|
||||
- check_position(pos);
|
||||
- xmms_remote_set_playlist_pos(session.id(), pos - 1);
|
||||
+ if (check_position(pos)) {
|
||||
+ xmms_remote_set_playlist_pos(session.id(), pos - 1);
|
||||
+ }
|
||||
}
|
||||
|
||||
int Playlist::length(void) const
|
||||
@@ -502,11 +503,12 @@
|
||||
|
||||
string Playlist::title(int pos) const
|
||||
{
|
||||
- check_position(pos);
|
||||
+ if (! check_position(pos)) {
|
||||
+ return "";
|
||||
+ }
|
||||
|
||||
char *c_str = xmms_remote_get_playlist_title(session.id(), pos - 1);
|
||||
string str(c_str);
|
||||
-
|
||||
g_free(c_str);
|
||||
return str;
|
||||
}
|
||||
@@ -518,11 +520,12 @@
|
||||
|
||||
string Playlist::filename(int pos) const
|
||||
{
|
||||
- check_position(pos);
|
||||
+ if (! check_position(pos)) {
|
||||
+ return "";
|
||||
+ }
|
||||
|
||||
char *c_str = xmms_remote_get_playlist_file(session.id(), pos - 1);
|
||||
string str(c_str);
|
||||
-
|
||||
g_free(c_str);
|
||||
return str;
|
||||
}
|
||||
@@ -546,11 +549,13 @@
|
||||
return position();
|
||||
}
|
||||
|
||||
-void Playlist::check_position(int pos, int min_value) const
|
||||
+bool Playlist::check_position(int pos, int min_value) const
|
||||
{
|
||||
if(pos < min_value || pos > length()) {
|
||||
- throw PlaylistPositionOutOfBoundsException(*this, pos, min_value);
|
||||
+ //throw PlaylistPositionOutOfBoundsException(*this, pos, min_value);
|
||||
+ return FALSE;
|
||||
}
|
||||
+ return TRUE;
|
||||
}
|
||||
|
||||
PlaylistPositionOutOfBoundsException::PlaylistPositionOutOfBoundsException(const Playlist& playlist, int _position, int min_value)
|
||||
@@ -611,6 +616,10 @@
|
||||
int n = 0;
|
||||
|
||||
session.ensure_running();
|
||||
+ if ((! check_position(pos1)) ||
|
||||
+ (! check_position(pos2, pos1))) {
|
||||
+ return 0;
|
||||
+ }
|
||||
check_position(pos1);
|
||||
check_position(pos2, pos1);
|
||||
while(pos2 >= pos1) {
|
||||
10
media-plugins/xmms-shell/files/xmms-shell-readline.patch
Normal file
10
media-plugins/xmms-shell/files/xmms-shell-readline.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- xmms-shell-0.99.3/configure.in.orig 2004-02-04 00:19:03.000000000 -0800
|
||||
+++ xmms-shell-0.99.3/configure.in 2004-02-04 00:19:44.000000000 -0800
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
if test x$with_readline = xyes
|
||||
then
|
||||
+ AC_CHECK_LIB(ncurses, main)
|
||||
AC_CHECK_LIB(readline, readline)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user