summaryrefslogtreecommitdiff
path: root/audio/scrobbler/files/extra-encodings-patch
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2018-12-21 13:19:02 +0000
committerRene Ladan <rene@FreeBSD.org>2018-12-21 13:19:02 +0000
commite5aaf05932b27919e9237fe077f607ac0f0d8e91 (patch)
tree094c99154e533e4d74dec6f4cc4c2f945ffea1b1 /audio/scrobbler/files/extra-encodings-patch
parentwww/node8: fix build on powerpc64 (diff)
Remove expired ports:
2018-12-19 net/py-libstorj: Broken for more than 6 months 2018-12-20 net/xferstats: Uses obsolete glib12 2018-12-20 net/wmlj: Uses obsolete glib12 2018-12-20 net/ipsorc: Uses obsolete glib12 2018-12-20 net/bsdproxy: Uses obsolete glib12 2018-12-20 net/gini: Uses obsolete glib12 2018-12-21 net/netatalk: Outdated branch of netatalk; use net/netatalk3 instead 2018-12-20 net/nocatsplash: Uses obsolete glib12 2018-12-20 net/jags: Uses obsolete glib12 2018-12-19 net/scribe: Broken for more than 6 months 2018-12-20 net/libnetdude: Uses obsolete glib12 2018-12-20 net/nepim: Uses obsolete glib12 2018-12-20 emulators/generator: Uses obsolete glib12 2018-12-19 emulators/py-nova: Broken for more than 6 months 2018-12-20 emulators/generator-cbiere: Uses obsolete glib12 2018-12-20 x11-toolkits/p5-Gtk-Perl: Uses obsolete glib12 2018-12-20 deskutils/ithought: Uses obsolete glib12 2018-12-20 deskutils/gaddr: Uses obsolete glib12 2018-12-20 x11-fonts/gfe: Uses obsolete glib12 2018-12-20 graphics/graphopt: Uses obsolete glib12 2018-12-19 graphics/fotoxx: Broken for more than 6 months 2018-12-20 graphics/gcolor: Uses obsolete glib12 2018-12-20 graphics/danpei: Uses obsolete glib12 2018-12-20 graphics/chbg: Uses obsolete glib12 2018-12-20 mail/pop3lite: Uses obsolete glib12 2018-12-20 mail/gbuffy: Uses obsolete glib12 2018-12-20 security/gtk-knocker: Uses obsolete glib12 2018-12-20 security/gpasman: Uses obsolete glib12 2018-12-20 security/crank: Uses obsolete glib12 2018-12-20 security/stegdetect: Uses obsolete glib12 2018-12-20 devel/liboop: Uses obsolete glib12 2018-12-20 devel/gcvs: Uses obsolete glib12 2018-12-20 print/lpr-wrapper: Uses obsolete glib12 2018-12-20 print/libppd: Uses obsolete glib12 2018-12-20 net-p2p/napshare: Uses obsolete glib12 2018-12-20 net-p2p/gnewtellium: Uses obsolete glib12 2018-12-20 editors/gnotepad+: Uses obsolete glib12 2018-12-20 editors/manedit: Uses obsolete glib12 2018-12-20 misc/gtkfind: Uses obsolete glib12 2018-12-20 games/mindguard: Uses obsolete glib12 2018-12-20 games/xbattle: Uses obsolete glib12 2018-12-20 games/xbill: Uses obsolete glib12 2018-12-20 games/corewars: Uses obsolete glib12 2018-12-20 games/dopewars: Uses obsolete glib12 2018-12-20 games/garith: Uses obsolete glib12 2018-12-20 games/wmquake: Uses obsolete glib12 2018-12-20 games/znibbles: Uses obsolete glib12 2018-12-20 games/xpuyopuyo: Uses obsolete glib12 2018-12-19 games/kajongg: Broken for more than 6 months 2018-12-20 games/netspades: Uses obsolete glib12 2018-12-20 games/gtklife: Uses obsolete glib12 2018-12-20 biology/xmolwt: Uses obsolete glib12 2018-12-20 x11-clocks/wmclockmon: Uses obsolete glib12 2018-12-20 x11-clocks/asclock-gtk: Uses obsolete glib12 2018-12-20 net-im/gale: Uses obsolete glib12 2018-12-20 audio/xmms-ahx: Uses obsolete glib12 2018-12-20 audio/xmms-curses: Uses obsolete glib12 2018-12-20 audio/scrobbler: Uses obsolete glib12 2018-12-20 audio/xmms-nsf: Uses obsolete glib12 2018-12-20 audio/xmms-nas: Uses obsolete glib12 2018-12-20 audio/xmms-gbsplay: Uses obsolete glib12 2018-12-20 audio/xmms-wavpack: Uses obsolete glib12 2018-12-20 audio/xmms-shn: Uses obsolete glib12 2018-12-20 audio/xmms-volnorm: Uses obsolete glib12 2018-12-20 audio/xmms-faad: Uses obsolete glib12 2018-12-20 audio/xmms-scrobbler: Uses obsolete glib12 2018-12-20 audio/mcplay: Uses obsolete glib12 2018-12-20 audio/gmixer: Uses obsolete glib12 2018-12-20 audio/soundtracker: Uses obsolete glib12 2018-12-20 audio/xmms-sapplug: Uses obsolete glib12 2018-12-20 audio/rio500: Uses obsolete glib12 2018-12-20 audio/xmmsctrl: Uses obsolete glib12 2018-12-20 audio/xmms-xf86audio: Uses obsolete glib12 2018-12-20 audio/xmms-mailnotify: Uses obsolete glib12 2018-12-20 audio/xmms-sexypsf: Uses obsolete glib12 2018-12-20 audio/gqmpeg: Uses obsolete glib12 2018-12-20 audio/wmalbum: Uses obsolete glib12 2018-12-20 audio/xmms-xymms: Uses obsolete glib12 2018-12-20 audio/xmms-flac: Uses obsolete glib12 2018-12-20 audio/xmms-festalon: Uses obsolete glib12 2018-12-20 audio/gkrellmms2: Uses obsolete glib12 2018-12-20 audio/xmms-ladspa: Uses obsolete glib12 2018-12-19 math/octave-forge-engine: Broken for more than 6 months 2018-12-20 math/surf: Uses obsolete glib12 2018-12-19 math/msieve: Broken for more than 6 months 2018-12-19 math/octave-forge-fl-core: Broken for more than 6 months 2018-12-19 math/octave-forge-pdb: Broken for more than 6 months 2018-12-19 math/octave-forge-audio: Broken for more than 6 months 2018-12-20 math/geg: Uses obsolete glib12 2018-12-20 math/grpn: Uses obsolete glib12 2018-12-20 x11/gdkxft: Uses obsolete glib12 2018-12-20 x11/gtk-theme-switch: Uses obsolete glib12 2018-12-19 x11/xpyb: Broken for more than 6 months 2018-12-20 x11/gtk-launch: Uses obsolete glib12 2018-12-19 x11/xpra: Broken for more than 6 months 2018-12-20 palm/pilrc: Uses obsolete glib12 2018-12-20 x11-fm/mtoolsfm: Uses obsolete glib12 2018-12-20 german/steak: Uses obsolete glib12 2018-12-20 multimedia/xmms-skins-huge: Uses obsolete glib12 2018-12-20 multimedia/openquicktime: Uses obsolete glib12 2018-12-20 multimedia/xmms-skins: Uses obsolete glib12 2018-12-20 multimedia/oqtplayer: Uses obsolete glib12 2018-12-20 multimedia/oqtencoder: Uses obsolete glib12 2018-12-20 multimedia/p5-Video-OpenQuicktime: Uses obsolete glib12 2018-12-20 multimedia/xtheater: Uses obsolete glib12 2018-12-20 multimedia/dv2jpg: Uses obsolete glib12 2018-12-20 comms/hf: Uses obsolete glib12 2018-12-20 comms/gscmxx: Uses obsolete glib12 2018-12-20 sysutils/wmcube-gdk: Uses obsolete glib12 2018-12-20 sysutils/gcombust: Uses obsolete glib12 2018-12-20 sysutils/xlogmaster: Uses obsolete glib12 2018-12-20 sysutils/mount.app: Uses obsolete glib12 2018-12-20 sysutils/bbapm: Uses obsolete glib12
Diffstat (limited to 'audio/scrobbler/files/extra-encodings-patch')
-rw-r--r--audio/scrobbler/files/extra-encodings-patch245
1 files changed, 0 insertions, 245 deletions
diff --git a/audio/scrobbler/files/extra-encodings-patch b/audio/scrobbler/files/extra-encodings-patch
deleted file mode 100644
index 6a88ab913194..000000000000
--- a/audio/scrobbler/files/extra-encodings-patch
+++ /dev/null
@@ -1,245 +0,0 @@
-diff -urp xmms-scrobbler-0.3.8.1/gtkstuff.c xmms-scrobbler-0.3.8.1-enc/gtkstuff.c
---- xmms-scrobbler-0.3.8.1/gtkstuff.c 2005-02-20 05:26:08.000000000 +0100
-+++ xmms-scrobbler-0.3.8.1-enc/gtkstuff.c 2005-12-13 22:02:56.000000000 +0100
-@@ -13,11 +13,14 @@
- #endif
- #include <stdio.h>
- #include <string.h>
-+#include <wchar.h>
- #include "config.h"
- #include "md5.h"
-+#include "tags/include/unicode.h"
-
- static GtkWidget *eduname,
-- *edpwd;
-+ *edpwd,
-+ *edenc;
- static int errorbox_done;
- void about_show(void)
- {
-@@ -115,6 +118,10 @@
-
- const char *pwd = gtk_entry_get_text(GTK_ENTRY(edpwd));
- const char *uid = gtk_entry_get_text(GTK_ENTRY(eduname));
-+ const char *enc = gtk_entry_get_text(GTK_ENTRY(edenc));
-+
-+ g_free(tags_encoding);
-+ tags_encoding = g_strdup(enc);
-
- if ((cfgfile = xmms_cfg_open_default_file())) {
-
-@@ -130,6 +137,9 @@
- xmms_cfg_write_string(cfgfile, "audioscrobbler", "password",
- (char *)hexify(md5pword, sizeof(md5pword)));
- }
-+
-+ xmms_cfg_write_string(cfgfile, "audioscrobbler", "encoding", (char *)enc);
-+
- #ifdef MAKE_XMMS
- xmms_cfg_write_default_file(cfgfile);
- #endif
-@@ -147,8 +157,10 @@
- *hbox,
- *unhbox,
- *pwhbox,
-+ *enhbox,
- *lblun,
- *lblpw,
-+ *lblen,
- *frame;
-
- ConfigFile *cfgfile;
-@@ -184,9 +196,16 @@
- gtk_entry_set_visibility(GTK_ENTRY(edpwd), FALSE);
- gtk_box_pack_start(GTK_BOX(pwhbox), lblpw, FALSE, FALSE, 3);
- gtk_box_pack_start(GTK_BOX(pwhbox), edpwd, FALSE, FALSE, 3);
-+
-+ enhbox = gtk_hbox_new(FALSE, 0);
-+ edenc = gtk_entry_new();
-+ lblen = gtk_label_new("Tags encoding");
-+ gtk_box_pack_start(GTK_BOX(enhbox), lblen, FALSE, FALSE, 3);
-+ gtk_box_pack_start(GTK_BOX(enhbox), edenc, FALSE, FALSE, 3);
-
- gtk_box_pack_start(GTK_BOX(vbox), unhbox, FALSE, FALSE, 3);
- gtk_box_pack_start(GTK_BOX(vbox), pwhbox, FALSE, FALSE, 3);
-+ gtk_box_pack_start(GTK_BOX(vbox), enhbox, FALSE, FALSE, 3);
-
- hbox = gtk_hbox_new(FALSE, 0);
-
-@@ -202,17 +221,26 @@
-
- gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 3);
-
-- frame = gtk_frame_new(" The plugin will have to be restarted for changes to take effect! ");
-+ frame = gtk_frame_new(" The plugin will have to be restarted for username/password changes to take effect! ");
- gtk_container_add(GTK_CONTAINER(frame), vbox);
- gtk_container_add(GTK_CONTAINER(cnfdlg), frame);
- if ((cfgfile = xmms_cfg_open_default_file())) {
-- gchar *username = NULL;
-- xmms_cfg_read_string(cfgfile, "audioscrobbler", "username",
-- &username);
-- if (username) {
-- gtk_entry_set_text(GTK_ENTRY(eduname), username);
-- g_free(username);
-+ gchar *entry;
-+
-+ entry = NULL;
-+ xmms_cfg_read_string(cfgfile, "audioscrobbler", "username", &entry);
-+ if (entry) {
-+ gtk_entry_set_text(GTK_ENTRY(eduname), entry);
-+ g_free(entry);
-+ }
-+
-+ entry = NULL;
-+ xmms_cfg_read_string(cfgfile, "audioscrobbler", "encoding", &entry);
-+ if (entry) {
-+ gtk_entry_set_text(GTK_ENTRY(edenc), entry);
-+ g_free(entry);
- }
-+
- xmms_cfg_free(cfgfile);
- }
-
-diff -urp xmms-scrobbler-0.3.8.1/tags/include/unicode.h xmms-scrobbler-0.3.8.1-enc/tags/include/unicode.h
---- xmms-scrobbler-0.3.8.1/tags/include/unicode.h 2004-03-28 19:34:56.000000000 +0200
-+++ xmms-scrobbler-0.3.8.1-enc/tags/include/unicode.h 2005-12-13 22:00:35.000000000 +0100
-@@ -26,4 +26,6 @@ void iso88591_to_utf8(unsigned char *, s
- void utf16bom_to_utf8(unsigned char *, size_t, unsigned char **);
- void utf16be_to_utf8(unsigned char *, size_t, unsigned char **);
- void utf16le_to_utf8(unsigned char *, size_t, unsigned char **);
-+
-+extern char *tags_encoding;
- #endif
-diff -urp xmms-scrobbler-0.3.8.1/tags/unicode.c xmms-scrobbler-0.3.8.1-enc/tags/unicode.c
---- xmms-scrobbler-0.3.8.1/tags/unicode.c 2004-03-28 20:15:37.000000000 +0200
-+++ xmms-scrobbler-0.3.8.1-enc/tags/unicode.c 2005-12-13 22:31:34.000000000 +0100
-@@ -21,9 +21,84 @@
- #include <stdlib.h>
- #include <wchar.h>
- #include <string.h>
-+#include <iconv.h>
-+#include <glib.h>
-+#include <errno.h>
- #include "include/endian.h"
- #include "include/unicode.h"
-
-+char *tags_encoding = NULL;
-+
-+/*
-+ * generic iconv function
-+ * taken from gentoo libxmms - looks nice and works
-+ *
-+ * Tue Dec 13 22:15:06 CET 2005 - Kosma Moczek <kosmam@op.pl>
-+ */
-+static char* generic_iconv(const unsigned char *string, size_t insize, char *from, char *to)
-+{
-+ size_t outleft, outsize;
-+ iconv_t cd;
-+ char *out, *outptr;
-+ char *input = (char *) string;
-+
-+ if (!string) return NULL;
-+
-+// g_message("converting %s from %s to %s (%u)", string, from, to, insize);
-+
-+ /* check if the conversion is needed */
-+ if (!strcmp(from,to)) return g_strdup(string);
-+
-+ if ((cd = iconv_open(to, from)) == (iconv_t)-1)
-+ {
-+ g_warning("convert_string(): Conversion not supported. "
-+ "Charsets: %s -> %s", from, to);
-+ return g_strdup(string);
-+ }
-+
-+ /* Due to a GLIBC bug, round outbuf_size up to a multiple of 4 */
-+ /* + 1 for nul in case len == 1 */
-+ outsize = ((insize + 3) & ~3) + 1;
-+ out = g_malloc(outsize);
-+ outleft = outsize - 1;
-+ outptr = out;
-+
-+ retry:
-+ if (iconv(cd, &input, &insize, &outptr, &outleft) == -1)
-+ {
-+ int used;
-+ switch (errno)
-+ {
-+ case E2BIG:
-+ used = outptr - out;
-+ outsize = (outsize - 1) * 2 + 1;
-+ out = g_realloc(out, outsize);
-+ outptr = out + used;
-+ outleft = outsize - 1 - used;
-+ goto retry;
-+ case EINVAL:
-+ /* incomplete multibyte sequence (at the end of string)
-+ * - just quit, nothing to do here */
-+ break;
-+ case EILSEQ:
-+ /* Invalid sequence, try to get the
-+ rest of the string */
-+ input++;
-+ insize--;
-+ goto retry;
-+ default:
-+ g_warning("convert_string(): Conversion failed. "
-+ "Inputstring: %s; Error: %s",
-+ string, strerror(errno));
-+ break;
-+ }
-+ }
-+ *outptr = '\0';
-+
-+ iconv_close(cd);
-+ return out;
-+}
-+
- wchar_t *utf8_to_wchar(unsigned char *utf, size_t memsize)
- {
- int i, j = 0;
-@@ -141,6 +216,12 @@ unsigned char *wchar_to_utf8(wchar_t *wc
- void iso88591_to_utf8(unsigned char *iso, size_t memsize,
- unsigned char **utf)
- {
-+ /* don't run recoder of setting is incomplete */
-+ if (tags_encoding && *tags_encoding) {
-+ *utf = generic_iconv(iso, memsize, tags_encoding, "UTF-8");
-+ return;
-+ }
-+
- int i;
- wchar_t *wchar;
-
-diff -urp xmms-scrobbler-0.3.8.1/xmms_scrobbler.c xmms-scrobbler-0.3.8.1-enc/xmms_scrobbler.c
---- xmms-scrobbler-0.3.8.1/xmms_scrobbler.c 2005-02-21 02:25:47.000000000 +0100
-+++ xmms-scrobbler-0.3.8.1-enc/xmms_scrobbler.c 2005-12-13 22:53:29.000000000 +0100
-@@ -59,7 +59,7 @@ static GeneralPlugin xmms_scrobbler =
-
- static void init(void)
- {
-- char *username = NULL, *password = NULL;
-+ char *username = NULL, *password = NULL, *encoding = NULL;
- ConfigFile *cfgfile;
- going = 1;
-
-@@ -68,6 +68,8 @@ static void init(void)
- &username);
- xmms_cfg_read_string(cfgfile, "audioscrobbler", "password",
- &password);
-+ xmms_cfg_read_string(cfgfile, "audioscrobbler", "encoding",
-+ &encoding);
- xmms_cfg_free(cfgfile);
- }
- if ((!username || !password) || (!*username || !*password)) {
-@@ -76,6 +78,10 @@ static void init(void)
- going = 0;
- return;
- }
-+ if (encoding) {
-+ tags_encoding = g_strdup(encoding);
-+ g_free(encoding);
-+ }
- sc_init(username, password);
- g_free(username);
- g_free(password);