From f0cb39e2c040a24992ce9c2aae0d272b3c117324 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Sun, 13 Dec 2020 09:56:29 +0000 Subject: [PATCH] clients. --- multimedia/sound/ario/actions.py | 24 +++++ multimedia/sound/ario/comar/pakhandler.py | 21 +++++ ...fix_window_size_if_tags_are_too_long.patch | 31 +++++++ multimedia/sound/ario/pspec.xml | 92 +++++++++++++++++++ multimedia/sound/ncmpcpp/actions.py | 28 ++++++ multimedia/sound/ncmpcpp/files/gcc10.patch | 26 ++++++ multimedia/sound/ncmpcpp/pspec.xml | 65 +++++++++++++ multimedia/sound/ncmpcpp/translations.xml | 9 ++ 8 files changed, 296 insertions(+) create mode 100644 multimedia/sound/ario/actions.py create mode 100644 multimedia/sound/ario/comar/pakhandler.py create mode 100644 multimedia/sound/ario/files/fix_window_size_if_tags_are_too_long.patch create mode 100644 multimedia/sound/ario/pspec.xml create mode 100644 multimedia/sound/ncmpcpp/actions.py create mode 100644 multimedia/sound/ncmpcpp/files/gcc10.patch create mode 100644 multimedia/sound/ncmpcpp/pspec.xml create mode 100644 multimedia/sound/ncmpcpp/translations.xml diff --git a/multimedia/sound/ario/actions.py b/multimedia/sound/ario/actions.py new file mode 100644 index 0000000000..44add227df --- /dev/null +++ b/multimedia/sound/ario/actions.py @@ -0,0 +1,24 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + autotools.autoreconf("-vif") + autotools.configure("--disable-python --disable-static --disable-deprecations") + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS") + diff --git a/multimedia/sound/ario/comar/pakhandler.py b/multimedia/sound/ario/comar/pakhandler.py new file mode 100644 index 0000000000..e8cafe658b --- /dev/null +++ b/multimedia/sound/ario/comar/pakhandler.py @@ -0,0 +1,21 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +import piksemel +import os +import fnmatch + +def updateData(filepath): + parse = piksemel.parse(filepath) + + for icon in parse.tags("File"): + path = icon.getTagData("Path") + if path.startswith("usr/share/icons/hicolor"): + os.system("/usr/bin/gtk3-update-icon-cache -f /usr/share/icons/hicolor") + break + +def setupPackage(metapath, filepath): + updateData(filepath) + +def postCleanupPackage(metapath, filepath): + updateData(filepath) diff --git a/multimedia/sound/ario/files/fix_window_size_if_tags_are_too_long.patch b/multimedia/sound/ario/files/fix_window_size_if_tags_are_too_long.patch new file mode 100644 index 0000000000..1c7a55caa5 --- /dev/null +++ b/multimedia/sound/ario/files/fix_window_size_if_tags_are_too_long.patch @@ -0,0 +1,31 @@ +# Fix bug with window size when music tags are too long. +--- a/src/sources/ario-tree.c ++++ b/src/sources/ario-tree.c +@@ -130,7 +130,7 @@ + }; + + #define ARIO_TREE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ARIO_TREE, ArioTreePrivate)) +-G_DEFINE_TYPE (ArioTree, ario_tree, GTK_TYPE_SCROLLED_WINDOW) ++G_DEFINE_TYPE_WITH_PRIVATE (ArioTree, ario_tree, GTK_TYPE_SCROLLED_WINDOW) + + static void + ario_tree_class_init (ArioTreeClass *klass) +@@ -182,9 +182,6 @@ + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, + 0); +- +- /* Private attributes */ +- g_type_class_add_private (klass, sizeof (ArioTreePrivate)); + } + + static void +@@ -275,7 +272,7 @@ + construct_properties)); + + /* Scrolled window property */ +- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (tree), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); ++ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (tree), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (tree), GTK_SHADOW_IN); + + /* Get drag and drop targets */ diff --git a/multimedia/sound/ario/pspec.xml b/multimedia/sound/ario/pspec.xml new file mode 100644 index 0000000000..9d14d13503 --- /dev/null +++ b/multimedia/sound/ario/pspec.xml @@ -0,0 +1,92 @@ + + + + + ario + http://ario-player.sourceforge.net/ + + Pisilinux Community + admins@pisilinux.org + + GPLv2 + app:gui + multimedia.sound + Ario is a GTK+ client for MPD. + ario - A GTK client for MPD (Music player daemon) inspired by Rhythmbox but much lighter and faster. + + mirrors://sourceforge/ario-player/1.6/ario-1.6.tar.gz + + + avahi + python3 + intltool + atk-devel + curl-devel + gtk3-devel + avahi-libs + cairo-devel + pango-devel + taglib-devel + gnutls-devel + libxml2-devel + libsoup-devel + gettext-devel + dbus-glib-devel + libunique-devel + libnotify-devel + libgcrypt-devel + avahi-glib-devel + fontconfig-devel + gdk-pixbuf-devel + libmpdclient-devel + + + fix_window_size_if_tags_are_too_long.patch + + + + + ario + + atk + gtk3 + curl + avahi + cairo + pango + taglib + gnutls + libxml2 + libsoup + dbus-glib + libnotify + libunique + avahi-libs + fontconfig + gdk-pixbuf + avahi-glib + libmpdclient + + + /usr/bin + /usr/lib + /usr/share + /usr/share/locale + /usr/share/doc/ario + + + System.PackageHandler + + + + + + 2020-12-13 + 1.6 + First Beta build. + fury + wascheme@tuta.io + + + + diff --git a/multimedia/sound/ncmpcpp/actions.py b/multimedia/sound/ncmpcpp/actions.py new file mode 100644 index 0000000000..6c59344038 --- /dev/null +++ b/multimedia/sound/ncmpcpp/actions.py @@ -0,0 +1,28 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +j = "--enable-outputs \ + --disable-visualizer \ + --disable-clock \ + --disable-static \ + --with-taglib \ + " + +def setup(): + autotools.configure(j) + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS", "COPYING", "INSTALL", "NEWS") + diff --git a/multimedia/sound/ncmpcpp/files/gcc10.patch b/multimedia/sound/ncmpcpp/files/gcc10.patch new file mode 100644 index 0000000000..466abceecf --- /dev/null +++ b/multimedia/sound/ncmpcpp/files/gcc10.patch @@ -0,0 +1,26 @@ +From 399e0f47008b487df3505476c959b4f42d8bc1b1 Mon Sep 17 00:00:00 2001 +From: Louis Sautier +Date: Sat, 9 May 2020 14:31:52 +0200 +Subject: [PATCH] Fix build with GCC 10 by adding missing include +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes the following error: +./mpdpp.h:438:15: error: ‘runtime_error’ is not a member of ‘std’ +--- + src/mpdpp.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/mpdpp.h b/src/mpdpp.h +index a2bb79eb..abd3666c 100644 +--- a/src/mpdpp.h ++++ b/src/mpdpp.h +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + #include + + #include diff --git a/multimedia/sound/ncmpcpp/pspec.xml b/multimedia/sound/ncmpcpp/pspec.xml new file mode 100644 index 0000000000..12e7386eb5 --- /dev/null +++ b/multimedia/sound/ncmpcpp/pspec.xml @@ -0,0 +1,65 @@ + + + + + ncmpcpp + https://rybczak.net/ncmpcpp/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + app:console + multimedia.sound + NCurses Music Player Client (Plus Plus). + + ncmpcpp – featureful ncurses based MPD client inspired by ncmpc. + + + https://rybczak.net/ncmpcpp/stable/ncmpcpp-0.8.2.tar.bz2 + + + libmpdclient-devel + curl-devel + + boost-devel + taglib-devel + ncurses-devel + readline-devel + + + gcc10.patch + + + + + ncmpcpp + + libmpdclient + mpd + curl + boost + + libgcc + taglib + ncurses + readline + + + /usr/bin + /usr/share/man + /usr/share/doc + + + + + + 2020-12-13 + 0.8.2 + 0.9 release coming soon. + fury + wascheme@tuta.io + + + + diff --git a/multimedia/sound/ncmpcpp/translations.xml b/multimedia/sound/ncmpcpp/translations.xml new file mode 100644 index 0000000000..dc81a2a933 --- /dev/null +++ b/multimedia/sound/ncmpcpp/translations.xml @@ -0,0 +1,9 @@ + + + + ncmpcpp + Ncurses tabanlı MPD istemcisi + Ncmpcpp; etiket düzenleyici, çalma listesi düzenleyici, şarkı sözü desteği vb. özellikleri olan bir MPD istemcisidir. + + +