summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2017-09-01 11:21:03 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2017-09-01 13:06:05 +0200
commit3f62d4cce3d77df788df022adb190f4dd9752239 (patch)
tree687b3ef27dc79dcbf9b545100144c74a1ec676b6 /x11-plugins/wmmoonclock
parentx11-plugins/wmmon: 1.3 bump (diff)
downloadgentoo-3f62d4cce3d77df788df022adb190f4dd9752239.tar.gz
gentoo-3f62d4cce3d77df788df022adb190f4dd9752239.tar.bz2
gentoo-3f62d4cce3d77df788df022adb190f4dd9752239.zip
x11-plugins/wmMoonClock: renamed to x11-plugins/wmmoonclock
Point to current homepage and source tarball
Diffstat (limited to 'x11-plugins/wmmoonclock')
-rw-r--r--x11-plugins/wmmoonclock/Manifest1
-rw-r--r--x11-plugins/wmmoonclock/files/wmmoonclock-1.27-implicit.patch9
-rw-r--r--x11-plugins/wmmoonclock/files/wmmoonclock-1.27-makefile.patch36
-rw-r--r--x11-plugins/wmmoonclock/metadata.xml16
-rw-r--r--x11-plugins/wmmoonclock/wmmoonclock-1.27-r1.ebuild38
5 files changed, 100 insertions, 0 deletions
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 <stdio.h>
++#include <string.h>
+ #include <math.h>
+
+ #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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <longdescription>
+ 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.
+ </longdescription>
+</pkgmetadata>
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
+}