x11-plugins/asclock: Port to EAPI 7

Closes: https://bugs.gentoo.org/708044
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
Jakov Smolic
2021-01-02 21:16:33 +01:00
committed by David Seifert
parent c66f73c85e
commit c59873c1b8
2 changed files with 31 additions and 7 deletions

View File

@@ -1,14 +1,14 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
inherit eutils toolchain-funcs
inherit toolchain-funcs
IUSE=""
DESCRIPTION="Clock applet for AfterStep"
SRC_URI="http://www.tigr.net/afterstep/download/asclock/${P}.tar.gz"
HOMEPAGE="http://tigr.net/afterstep/applets/"
SRC_URI="http://www.tigr.net/afterstep/download/asclock/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~x64-solaris"
@@ -16,7 +16,10 @@ KEYWORDS="amd64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~x64-solaris"
DEPEND="x11-libs/libXpm"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/${PN}-gcc41.patch )
PATCHES=(
"${FILESDIR}"/${PN}-gcc41.patch
"${FILESDIR}"/${P}-fno-common.patch
)
src_prepare() {
default
@@ -59,7 +62,7 @@ src_install() {
insinto ${themesdir}
doins -r themes/*
dodoc README README.THEMES TODO
cd "${D}"/${themesdir} || die
rm -f Freeamp/Makefile{,.*} || die
cd "${ED}"/${themesdir} || die
rm Freeamp/Makefile{,.*} || die
ln -s classic default_theme || die
}

View File

@@ -0,0 +1,21 @@
--- a/config.c
+++ b/config.c
@@ -1,6 +1,7 @@
#include "asclock.h"
extern char *Geometry;
+extern int itdocks;
/* load the variables from a predefined theme ****************************************/
--- a/symbols.c
+++ b/symbols.c
@@ -62,7 +62,7 @@ symbol config_symbols[] = {
{ "beats_elem_height",&beats_elem_height},
{ NULL, NULL} };
-int itdocks;
+extern int itdocks;
int itblinks;
int showampm;