From 3f62d4cce3d77df788df022adb190f4dd9752239 Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Fri, 1 Sep 2017 11:21:03 +0200 Subject: x11-plugins/wmMoonClock: renamed to x11-plugins/wmmoonclock Point to current homepage and source tarball --- x11-plugins/wmmoonclock/Manifest | 1 + .../files/wmmoonclock-1.27-implicit.patch | 9 +++++ .../files/wmmoonclock-1.27-makefile.patch | 36 ++++++++++++++++++++ x11-plugins/wmmoonclock/metadata.xml | 16 +++++++++ x11-plugins/wmmoonclock/wmmoonclock-1.27-r1.ebuild | 38 ++++++++++++++++++++++ 5 files changed, 100 insertions(+) create mode 100644 x11-plugins/wmmoonclock/Manifest create mode 100644 x11-plugins/wmmoonclock/files/wmmoonclock-1.27-implicit.patch create mode 100644 x11-plugins/wmmoonclock/files/wmmoonclock-1.27-makefile.patch create mode 100644 x11-plugins/wmmoonclock/metadata.xml create mode 100644 x11-plugins/wmmoonclock/wmmoonclock-1.27-r1.ebuild (limited to 'x11-plugins/wmmoonclock') diff --git a/x11-plugins/wmmoonclock/Manifest b/x11-plugins/wmmoonclock/Manifest new file mode 100644 index 000000000000..57b81c15daed --- /dev/null +++ b/x11-plugins/wmmoonclock/Manifest @@ -0,0 +1 @@ +DIST wmmoonclock-1.27.tar.gz 153080 SHA256 b0b74cc535dee4cba84074f14504e24b833cd6196d3f782348a7926aa631b7c8 SHA512 94c4b80882e1564780498e11e88ec31918605f64dd39f0c87544d29d9d8bc0db54823fd1fe5fbc992f212526a762de867598cb94236d18723d316bd04f5b097d WHIRLPOOL 4cd3e41f1392d9b2ed41fbacc2a2066cc688c9f75bfe18b8db4eac0fb603ee419a06ce02a4dfbdcef5fb724f024cf2a36d7b479021f2557716b6d38753d6e10c diff --git a/x11-plugins/wmmoonclock/files/wmmoonclock-1.27-implicit.patch b/x11-plugins/wmmoonclock/files/wmmoonclock-1.27-implicit.patch new file mode 100644 index 000000000000..22ac78bd141a --- /dev/null +++ b/x11-plugins/wmmoonclock/files/wmmoonclock-1.27-implicit.patch @@ -0,0 +1,9 @@ +diff -aur wmMoonClock-1.27-orig/Src/CalcEphem.h wmMoonClock-1.27/Src/CalcEphem.h +--- wmMoonClock-1.27-orig/Src/CalcEphem.h 1998-12-31 13:25:16.000000000 -0500 ++++ wmMoonClock-1.27/Src/CalcEphem.h 2008-06-26 10:29:30.000000000 -0400 +@@ -1,4 +1,5 @@ + #include ++#include + #include + + #define DegPerRad 57.29577951308232087680 diff --git a/x11-plugins/wmmoonclock/files/wmmoonclock-1.27-makefile.patch b/x11-plugins/wmmoonclock/files/wmmoonclock-1.27-makefile.patch new file mode 100644 index 000000000000..f140a7dbbcb7 --- /dev/null +++ b/x11-plugins/wmmoonclock/files/wmmoonclock-1.27-makefile.patch @@ -0,0 +1,36 @@ +--- Makefile.orig 1999-03-23 03:20:32.000000000 +0100 ++++ Makefile 2008-01-27 23:44:28.000000000 +0100 +@@ -1,8 +1,9 @@ +-CC = gcc +-CFLAGS = -O2 +-INCDIR = -I/usr/X11R6/include/X11 +-DESTDIR= /usr/X11R6 +-LIBDIR = -L/usr/X11R6/lib ++CC ?= gcc ++CFLAGS += ++INCDIR = -I/usr/include/X11 ++PREFIX ?= /usr ++LIBDIR ?= /usr/lib ++MANDIR = $(PREFIX)/share/man + + # for Linux + LIBS = -lXpm -lX11 -lXext +@@ -22,7 +23,7 @@ + + wmMoonClock.o: wmMoonClock_master.xpm wmMoonClock_mask.xbm CalcEphem.h + wmMoonClock: $(OBJS) +- $(CC) $(COPTS) $(SYSTEM) -lm -o wmMoonClock $^ $(INCDIR) $(LIBDIR) $(LIBS) ++ $(CC) $(COPTS) $(SYSTEM) -o wmMoonClock $^ $(INCDIR) -L$(LIBDIR) $(LDFLAGS) $(LIBS) -lm + + clean: + for i in $(OBJS) ; do \ +@@ -31,6 +32,7 @@ + rm -f wmMoonClock + + install:: wmMoonClock +- install -s -m 0755 wmMoonClock $(DESTDIR)/bin +- install -m 0644 wmMoonClock.1 $(DESTDIR)/man/man1 ++ install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(MANDIR)/man1 ++ install -m 0755 wmMoonClock $(DESTDIR)$(PREFIX)/bin ++ install -m 0644 wmMoonClock.1 $(DESTDIR)$(MANDIR)/man1 + diff --git a/x11-plugins/wmmoonclock/metadata.xml b/x11-plugins/wmmoonclock/metadata.xml new file mode 100644 index 000000000000..6559b220353c --- /dev/null +++ b/x11-plugins/wmmoonclock/metadata.xml @@ -0,0 +1,16 @@ + + + + + voyageur@gentoo.org + Bernard Cafarelli + + + wmmoonclock displays phases and ephemeris of the Moon. Clicking on the App + cycles the user through several `pages' of ephemeris information. Included are + age, fraction of current lunar cycle, the % illumination, whether its currently + visible or not, the rise/set times for yesterday, today and tomorrow, the + `horizon coordinates", and the "ecliptic coordinates". wmmoonlock supports + 8-bit and high-color displays. + + diff --git a/x11-plugins/wmmoonclock/wmmoonclock-1.27-r1.ebuild b/x11-plugins/wmmoonclock/wmmoonclock-1.27-r1.ebuild new file mode 100644 index 000000000000..7af3af342263 --- /dev/null +++ b/x11-plugins/wmmoonclock/wmmoonclock-1.27-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="dockapp that shows lunar ephemeris to a high accuracy" +SRC_URI="http://www.dockapps.net/download/${P}.tar.gz" +HOMEPAGE="http://www.dockapps.net/wmmoonclock" + +RDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm" +DEPEND="${RDEPEND} + x11-proto/xproto + x11-proto/xextproto" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips ppc sparc x86" +IUSE="" + +S="${WORKDIR}/${P}.orig/Src" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-makefile.patch + epatch "${FILESDIR}"/${P}-implicit.patch +} + +src_compile() { + emake CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)" || die "parallel make failed" +} + +src_install () { + emake DESTDIR="${D}" install || die "install failed" + dodoc ../BUGS +} -- cgit v1.2.3-65-gdbad