[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmmp3/files/, x11-plugins/wmmp3/

2020-05-08 Thread Bernard Cafarelli
commit: 189b59c8a00387da620965e5527fe3a9ba1d8b9f
Author: Bernard Cafarelli  gentoo  org>
AuthorDate: Fri May  8 17:18:42 2020 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Fri May  8 22:54:14 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=189b59c8

x11-plugins/wmmp3: fix build with -fno-common

Closes: https://bugs.gentoo.org/710114
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Bernard Cafarelli  gentoo.org>

 .../wmmp3/files/wmmp3-0.12-fno-common.patch| 33 ++
 x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild |  6 ++--
 2 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/x11-plugins/wmmp3/files/wmmp3-0.12-fno-common.patch 
b/x11-plugins/wmmp3/files/wmmp3-0.12-fno-common.patch
new file mode 100644
index 000..2179b9e30dd
--- /dev/null
+++ b/x11-plugins/wmmp3/files/wmmp3-0.12-fno-common.patch
@@ -0,0 +1,33 @@
+diff -Naur wmmp3-0.12.orig/wmgeneral.c wmmp3-0.12/wmgeneral.c
+--- wmmp3-0.12.orig/wmgeneral.c1999-10-08 07:58:16.0 +0200
 wmmp3-0.12/wmgeneral.c 2020-05-08 19:16:45.911950119 +0200
+@@ -58,6 +58,11 @@
+  /* X11 Variables */
+ /*/
+ 
++Display *display;
++Window Root, iconwin, win;
++XpmIcon wmgen;
++XpmIcon wmfont;
++
+ int screen;
+ int x_fd;
+ int d_depth;
+diff -Naur wmmp3-0.12.orig/wmgeneral.h wmmp3-0.12/wmgeneral.h
+--- wmmp3-0.12.orig/wmgeneral.h1999-10-08 07:58:18.0 +0200
 wmmp3-0.12/wmgeneral.h 2020-05-08 19:16:53.693959618 +0200
+@@ -41,10 +41,10 @@
+  /* Global variable */
+ /***/
+ 
+-Display *display;
+-Window Root, iconwin, win;
+-XpmIcon wmgen;
+-XpmIcon wmfont;
++extern Display *display;
++extern Window Root, iconwin, win;
++extern XpmIcon wmgen;
++extern XpmIcon wmfont;
+ 
+ /***/
+  /* Function Prototypes */

diff --git a/x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild 
b/x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild
index 23fc74a48c4..ce5131e3455 100644
--- a/x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild
+++ b/x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -19,7 +19,9 @@ DEPEND="${RDEPEND}
media-sound/mpg123
x11-base/xorg-proto"
 
-PATCHES=( "${FILESDIR}"/${P}-x_includes_n_libraries.patch )
+PATCHES=( "${FILESDIR}"/${P}-x_includes_n_libraries.patch
+   "${FILESDIR}"/${P}-fno-common.patch
+   )
 
 DOCS=( AUTHORS ChangeLog sample.wmmp3 README TODO )
 



[gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmmp3/files/, x11-plugins/wmmp3/

2018-06-12 Thread Bernard Cafarelli
commit: 4488ab7220c0d38ac8e8fcd80912e141b0e24244
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Tue Jun 12 17:45:32 2018 +
Commit: Bernard Cafarelli  gentoo  org>
CommitDate: Tue Jun 12 21:37:26 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4488ab72

x11-plugins/wmmp3: EAPI7, improve ebuild, use HTTPs

 .../files/wmmp3-0.12-x_includes_n_libraries.patch  |  4 +--
 x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild | 32 ++
 2 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/x11-plugins/wmmp3/files/wmmp3-0.12-x_includes_n_libraries.patch 
b/x11-plugins/wmmp3/files/wmmp3-0.12-x_includes_n_libraries.patch
index 91e6c679dcd..c5253fd7278 100644
--- a/x11-plugins/wmmp3/files/wmmp3-0.12-x_includes_n_libraries.patch
+++ b/x11-plugins/wmmp3/files/wmmp3-0.12-x_includes_n_libraries.patch
@@ -1,5 +1,5 @@
 configure.orig 2005-08-24 09:45:23.0 +0200
-+++ configure  2005-08-24 09:45:08.0 +0200
+--- a/configure2005-08-24 09:45:23.0 +0200
 b/configure2005-08-24 09:45:08.0 +0200
 @@ -1977,11 +1977,15 @@
  
  

diff --git a/x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild 
b/x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild
new file mode 100644
index 000..a9ee24e58de
--- /dev/null
+++ b/x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Mp3 player dock app for WindowMaker; frontend to mpg123"
+HOMEPAGE="https://www.dockapps.net/wmmp3;
+SRC_URI="https://www.dockapps.net/download/${P}.tar.gz;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+   x11-libs/libXext
+   x11-libs/libXpm"
+DEPEND="${RDEPEND}
+   media-sound/mpg123
+   x11-base/xorg-proto"
+
+PATCHES=( "${FILESDIR}"/${P}-x_includes_n_libraries.patch )
+
+DOCS=( AUTHORS ChangeLog sample.wmmp3 README TODO )
+
+src_compile() {
+   emake prefix="/usr/"
+}
+
+pkg_postinst() {
+   einfo "Please copy the sample.wmmp3 to your home directory and change 
it to fit your needs."
+}