mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
committed by
David Seifert
parent
c66f73c85e
commit
c59873c1b8
@@ -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
|
||||
}
|
||||
|
||||
21
x11-plugins/asclock/files/asclock-2.0.12-fno-common.patch
Normal file
21
x11-plugins/asclock/files/asclock-2.0.12-fno-common.patch
Normal 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;
|
||||
|
||||
Reference in New Issue
Block a user