summaryrefslogtreecommitdiff
path: root/media-sound/aylet
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/aylet
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/aylet')
-rw-r--r--media-sound/aylet/Manifest6
-rw-r--r--media-sound/aylet/aylet-0.5.ebuild40
-rw-r--r--media-sound/aylet/files/aylet-0.5-gtk.patch250
-rw-r--r--media-sound/aylet/metadata.xml8
4 files changed, 304 insertions, 0 deletions
diff --git a/media-sound/aylet/Manifest b/media-sound/aylet/Manifest
new file mode 100644
index 000000000000..997765b145b0
--- /dev/null
+++ b/media-sound/aylet/Manifest
@@ -0,0 +1,6 @@
+AUX aylet-0.5-gtk.patch 7850 SHA256 a7fbada3868c038c55969773e19f7b386192a3ec2efc682a478a34251619bffb SHA512 e35bcdf111e5b819cd286e22d30bd45522fb3672de1fd841aa3dee7b0556927a912f17ab84bcad21a765bcda452ca20621a60e165db7ac38a9dff209953acf88 WHIRLPOOL 30cca5ecb1373bc13fa598b53cfeb7249bf2e2f08826dfb046d2bda346d0b32296588bb1a26e39ab5f91608f607634322a63604fc13d86e7e7f63ce9a3a20dcf
+DIST aylet-0.5.tar.gz 43577 SHA256 c8c428a63abe5087b0345709a9a8034c2e6873b6071d9f7b05578aae0f3a4f72 SHA512 9f45982bdd18f4b9d001cd8681132b89a8fa379fd4f64131d00c749975308e9d9f7fb29c196448c60d07273f36295d9b85093a542a0993c184dec411c7fbb7f7 WHIRLPOOL 16897b4b4645d935c88b20db30c29b47a36f21d6afe3941b0ddc6ac59b2f08b18a558c9f3f291ba14bb1e0fa4dfbf3fe8d5820ddd8e8f19dee2a455f19ecee97
+EBUILD aylet-0.5.ebuild 848 SHA256 4708f1d09f9afdb6bc6c95d4cd49083ebfa45b38cf951fb3f2603c7c02b2068d SHA512 f9d914e92ce725f8615b039e2827838dd5d6f8a4a1de3e3316b863dd541ba013dabe025f9c36c90eee018beafec470d0facbe668790f5346cce87b93423bd467 WHIRLPOOL a80efb9d2b92d8412805cf40dee1a7815f2fa7c622fdac8ba23270a2c0947e99e9753755115e58393f5accb84409f434c4ac9c786d9b2f6b08b6511a84917c19
+MISC ChangeLog 2448 SHA256 ba2d63dae7af982f9c3653b61ef57aa8b44e0e3641d282cdc3d6b4adacedff9c SHA512 f934ca47c2fbb460d37e5f6eff8957b2551c3fe72bb913e2fd2e69afa3f55b412b12416697bddf1964031ae819d707dec298a54c82f62059652ba14ea8e6b841 WHIRLPOOL 016066aa3a0ce9beb5ec46dc5ca6ccde27609c59dd1cd62864bd3a65f85194c1117a6cef5a766d910422fa319c98e49140073082bfd8869df0832e4e67d077c9
+MISC ChangeLog-2015 2453 SHA256 80f9cec75e8346e4a610e7aaefdc8435495ca05ba4b4fbe0a7541b9fb3513d3e SHA512 04a452f92c638e9226dad349b02b17a6486bc566c4f7803ef74c0cd1bfeacaf0278736baa440c58f70ff1d4711ca46daa6cf13c053696c2d8fb67bfd005b36af WHIRLPOOL c0cf671459c8511e50b61ac1618d91f4c17e43579ac18bbf8fa19d3b88e18b40c109f911dbb78bef517219b3c87831c9c6ab147f2f14535f8f7ac39994bed3ff
+MISC metadata.xml 249 SHA256 a591aa91a9c413e7f7e24fd25b924ce2dfef686da8b4ce38bebb088ebfdba9db SHA512 9a100fb26586365eda99724330a03a512f4d0be18d39c3a195ba02c2fc841edeee99d22512acf5a058a3b978d3a74f4d963a5aff9aa343b6cb4086cdfefe6343 WHIRLPOOL ae5b0c583f3a07ed1ccf651b5b9c8d6c8c637fba2d505fc4b028ea60239fc0a84e37a169b5114f879712ae74f7f41960a2cc6b59e67cacc7f964b105b5fb8723
diff --git a/media-sound/aylet/aylet-0.5.ebuild b/media-sound/aylet/aylet-0.5.ebuild
new file mode 100644
index 000000000000..05c703dca0f4
--- /dev/null
+++ b/media-sound/aylet/aylet-0.5.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Aylet plays music files in the .ay format"
+HOMEPAGE="http://rus.members.beeb.net/aylet.html"
+SRC_URI="http://ftp.ibiblio.org/pub/Linux/apps/sound/players/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc sparc x86"
+IUSE="gtk"
+
+RDEPEND="sys-libs/ncurses
+ gtk? ( x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gtk.patch
+}
+
+src_compile() {
+ tc-export CC PKG_CONFIG
+
+ emake ${PN} CURSES_LIB="$( ${PKG_CONFIG} --libs ncurses)"
+ use gtk && emake gtk2
+}
+
+src_install() {
+ dobin ${PN}
+ use gtk && dobin x${PN}
+
+ doman ${PN}.1
+ use gtk && echo '.so aylet.1' > "${D}"/usr/share/man/man1/xaylet.1
+
+ dodoc ChangeLog NEWS README TODO
+}
diff --git a/media-sound/aylet/files/aylet-0.5-gtk.patch b/media-sound/aylet/files/aylet-0.5-gtk.patch
new file mode 100644
index 000000000000..ddd701d1df7e
--- /dev/null
+++ b/media-sound/aylet/files/aylet-0.5-gtk.patch
@@ -0,0 +1,250 @@
+--- a/Makefile
++++ b/Makefile
+@@ -2,12 +2,12 @@
+
+ # You need an ANSI C compiler. gcc is probably best.
+ #
+-CC=gcc
++CC?=gcc
+
+ # Compiler options (and sound driver) to use. This one is for Linux,
+ # and other OSS-using systems.
+ #
+-CFLAGS=-O -Wall -DDRIVER_OSS
++CFLAGS+=-Wall -DDRIVER_OSS
+
+ # for OpenBSD, uncomment this:
+ #CFLAGS=-O -Wall -DDRIVER_OPENBSD
+@@ -39,14 +39,29 @@
+
+ all: aylet xaylet
+
++
++# GTK+1.2 stuff: "make all" or "make gtk1"
++GTKCONFIG=gtk-config
++GTKFLAGS=-UGTK2
++gtk1: all
++
++# GTK+2 stuff: "make gtk2"
++gtk2: GTKCONFIG:=$(PKG_CONFIG) gtk+-2.0
++gtk2: GTKFLAGS:=-DGTK2 $(shell \
++ $(GTKCONFIG) --modversion | \
++ awk 'BEGIN { FS="." } \
++ 1 { if ($$1 > 2 || ($$1 == 2 && $$2 >= 6)) \
++ { print "-DGTK2_6" } }')
++gtk2: all
++
+ aylet: $(OBJS)
+- $(CC) -o aylet $(OBJS) $(CURSES_LIB)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o aylet $(OBJS) $(CURSES_LIB)
+
+ xaylet: $(XOBJS)
+- $(CC) -o xaylet $(XOBJS) `gtk-config --libs`
++ $(CC) $(LDFLAGS) $(CFLAGS) -o xaylet $(XOBJS) $(shell $(GTKCONFIG) --libs)
+
+ uigtk.o: uigtk.c
+- $(CC) $(CFLAGS) `gtk-config --cflags` -c uigtk.c -o uigtk.o
++ $(CC) $(CFLAGS) $(GTKFLAGS) $(shell $(GTKCONFIG) --cflags) -c uigtk.c -o uigtk.o
+
+ installdirs:
+ /bin/sh ./mkinstalldirs $(BINDIR) $(XBINDIR) $(MANDIR)
+--- a/ui.c
++++ b/ui.c
+@@ -5,7 +5,9 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
++#include <stdlib.h>
+ #include <sys/types.h>
+ #include <signal.h>
+ #include <curses.h>
+@@ -188,8 +190,8 @@
+ {
+ need_update=0;
+ draw_frame();
+- draw_status(ay_filenames[ay_file],aydata.miscstr,aydata.authorstr,
+- ay_track+1,aydata.tracks[ay_track].namestr);
++ draw_status(ay_filenames[ay_file],(char *)aydata.miscstr, (char *)aydata.authorstr,
++ ay_track+1, (char *)aydata.tracks[ay_track].namestr);
+ }
+
+ /* update time display */
+--- a/uigtk.c
++++ b/uigtk.c
+@@ -14,11 +14,13 @@
+ #include "ui.h"
+
+ /* button pixmaps */
++#ifndef GTK2_6
+ #include "button1.xpm"
+ #include "button2.xpm"
+ #include "button3.xpm"
+ #include "button4.xpm"
+ #include "button5.xpm"
++#endif
+
+
+ static GtkWidget *window,*vbox,*detailstbl,*detaillabel[5];
+@@ -107,6 +109,11 @@
+ GdkBitmap *bitmap,*mask;
+ int tbl_row,width;
+
++#ifdef GTK2
++#define gtk_accel_group_get_default() accel
++ GtkAccelGroup *accel;
++#endif
++
+ window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ gtk_signal_connect(GTK_OBJECT(window),"destroy",
+ GTK_SIGNAL_FUNC(cb_doquit),NULL);
+@@ -116,6 +123,11 @@
+ gtk_window_set_title(GTK_WINDOW(window),"xaylet");
+ gtk_window_set_policy(GTK_WINDOW(window),FALSE,TRUE,FALSE); /* XXX? */
+
++#ifdef GTK2
++ accel = gtk_accel_group_new ();
++ gtk_window_add_accel_group (GTK_WINDOW (window), accel);
++#endif
++
+ /* main vbox */
+ vbox=gtk_vbox_new(FALSE,0);
+ gtk_container_add(GTK_CONTAINER(window),vbox);
+@@ -194,7 +206,11 @@
+ DO_TBL_RIGHT(statustbl,1, 1,2,"");
+ label_for_time=label;
+
++#ifdef GTK2
++ highspeed_widget = gtk_check_button_new_with_mnemonic ("_High speed");
++#else
+ highspeed_widget=gtk_check_button_new_with_label("High-speed");
++#endif
+ /* don't allow focus, looks too weird and we have shortcut */
+ GTK_WIDGET_UNSET_FLAGS(highspeed_widget,GTK_CAN_FOCUS);
+ gtk_table_attach_defaults(GTK_TABLE(statustbl),highspeed_widget, 2,4, 0,2);
+@@ -227,6 +243,21 @@
+ gtk_container_set_border_width(GTK_CONTAINER(buttontbl),5);
+ gtk_widget_show(buttontbl);
+
++#ifdef GTK2_6 /* >= GTK+ 2.6 */
++#define ADD_PIXMAP_TO_BUTTON(button,xpm,stock) \
++ pixmap = gtk_image_new_from_stock (GTK_STOCK_MEDIA_##stock, \
++ GTK_ICON_SIZE_BUTTON); \
++ gtk_container_add (GTK_CONTAINER ((button)), pixmap); \
++ gtk_widget_show (pixmap)
++#else /* < GTK+ 2.6 */
++#define ADD_PIXMAP_TO_BUTTON(button,xpm,stock) \
++ bitmap=gdk_pixmap_create_from_xpm_d(window->window,&mask, \
++ &(window->style->black), \
++ (xpm)); \
++ pixmap=gtk_pixmap_new(bitmap,mask); \
++ gtk_container_add(GTK_CONTAINER(button),pixmap); \
++ gtk_widget_show(pixmap)
++#endif
+
+ hbox=gtk_hbox_new(TRUE,5);
+ gtk_table_attach_defaults(GTK_TABLE(buttontbl),hbox, 0,4, 0,1);
+@@ -236,16 +267,8 @@
+ /* XXX this seems to be needed here, but is it ok? */
+ gtk_widget_realize(window);
+
+-#define ADD_PIXMAP_TO_BUTTON(button,xpm) \
+- bitmap=gdk_pixmap_create_from_xpm_d(window->window,&mask, \
+- &(window->style->black), \
+- (xpm)); \
+- pixmap=gtk_pixmap_new(bitmap,mask); \
+- gtk_container_add(GTK_CONTAINER(button),pixmap); \
+- gtk_widget_show(pixmap)
+-
+ button=gtk_button_new();
+-ADD_PIXMAP_TO_BUTTON(button,button1);
++ADD_PIXMAP_TO_BUTTON(button,button1,PREVIOUS);
+ gtk_box_pack_start(GTK_BOX(hbox),button,TRUE,TRUE,0);
+ gtk_signal_connect(GTK_OBJECT(button),"clicked",
+ GTK_SIGNAL_FUNC(cb_button_prev_track),NULL);
+@@ -256,7 +279,7 @@
+ gtk_widget_show(button);
+
+ button=gtk_button_new();
+-ADD_PIXMAP_TO_BUTTON(button,button2);
++ADD_PIXMAP_TO_BUTTON(button,button2,PLAY);
+ gtk_box_pack_start(GTK_BOX(hbox),button,TRUE,TRUE,0);
+ gtk_signal_connect(GTK_OBJECT(button),"clicked",
+ GTK_SIGNAL_FUNC(cb_button_play),NULL);
+@@ -266,7 +289,7 @@
+ gtk_widget_show(button);
+
+ button=gtk_button_new();
+-ADD_PIXMAP_TO_BUTTON(button,button3);
++ADD_PIXMAP_TO_BUTTON(button,button3,PAUSE);
+ gtk_box_pack_start(GTK_BOX(hbox),button,TRUE,TRUE,0);
+ gtk_signal_connect(GTK_OBJECT(button),"clicked",
+ GTK_SIGNAL_FUNC(cb_button_pause),NULL);
+@@ -276,7 +299,7 @@
+ gtk_widget_show(button);
+
+ button=gtk_button_new();
+-ADD_PIXMAP_TO_BUTTON(button,button4);
++ADD_PIXMAP_TO_BUTTON(button,button4,STOP);
+ gtk_box_pack_start(GTK_BOX(hbox),button,TRUE,TRUE,0);
+ gtk_signal_connect(GTK_OBJECT(button),"clicked",
+ GTK_SIGNAL_FUNC(cb_button_stop),NULL);
+@@ -286,7 +309,7 @@
+ gtk_widget_show(button);
+
+ button=gtk_button_new();
+-ADD_PIXMAP_TO_BUTTON(button,button5);
++ADD_PIXMAP_TO_BUTTON(button,button5,NEXT);
+ gtk_box_pack_start(GTK_BOX(hbox),button,TRUE,TRUE,0);
+ gtk_signal_connect(GTK_OBJECT(button),"clicked",
+ GTK_SIGNAL_FUNC(cb_button_next_track),NULL);
+@@ -295,7 +318,11 @@
+ GTK_WIDGET_UNSET_FLAGS(button,GTK_CAN_FOCUS);
+ gtk_widget_show(button);
+
++#ifdef GTK2
++ button = gtk_button_new_with_mnemonic ("_Restart");
++#else
+ button=gtk_button_new_with_label("Restart");
++#endif
+ gtk_box_pack_start(GTK_BOX(hbox),button,TRUE,TRUE,0);
+ gtk_signal_connect(GTK_OBJECT(button),"clicked",
+ GTK_SIGNAL_FUNC(cb_button_restart),NULL);
+@@ -304,17 +331,24 @@
+ GTK_WIDGET_UNSET_FLAGS(button,GTK_CAN_FOCUS);
+ gtk_widget_show(button);
+
+-
+ /* second row, these go straight on the table */
+ /* backspace/delete/space are dealt with by keypress() */
++#ifdef GTK2
++ button = gtk_button_new_with_mnemonic ("_Previous file");
++#else
+ button=gtk_button_new_with_label("Prev File");
++#endif
+ gtk_table_attach_defaults(GTK_TABLE(buttontbl),button, 1,2, 1,2);
+ gtk_signal_connect(GTK_OBJECT(button),"clicked",
+ GTK_SIGNAL_FUNC(cb_button_prev_file),NULL);
+ GTK_WIDGET_UNSET_FLAGS(button,GTK_CAN_FOCUS);
+ gtk_widget_show(button);
+
++#ifdef GTK2
++ button = gtk_button_new_with_mnemonic("_Next file");
++#else
+ button=gtk_button_new_with_label("Next File");
++#endif
+ gtk_table_attach_defaults(GTK_TABLE(buttontbl),button, 2,3, 1,2);
+ gtk_signal_connect(GTK_OBJECT(button),"clicked",
+ GTK_SIGNAL_FUNC(cb_button_next_file),NULL);
+@@ -386,8 +420,8 @@
+ if(need_update)
+ {
+ need_update=0;
+- ui_draw_status(ay_filenames[ay_file],aydata.miscstr,aydata.authorstr,
+- ay_track+1,aydata.tracks[ay_track].namestr);
++ ui_draw_status(ay_filenames[ay_file], (char *)aydata.miscstr, (char *)aydata.authorstr,
++ ay_track+1, (char *)aydata.tracks[ay_track].namestr);
+ }
+
+ /* update time display */
diff --git a/media-sound/aylet/metadata.xml b/media-sound/aylet/metadata.xml
new file mode 100644
index 000000000000..c870d0eef0ab
--- /dev/null
+++ b/media-sound/aylet/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+</maintainer>
+</pkgmetadata>