diff options
Diffstat (limited to 'x11-plugins/wmSpaceWeather')
5 files changed, 170 insertions, 0 deletions
diff --git a/x11-plugins/wmSpaceWeather/Manifest b/x11-plugins/wmSpaceWeather/Manifest new file mode 100644 index 000000000000..f3b577e353f6 --- /dev/null +++ b/x11-plugins/wmSpaceWeather/Manifest @@ -0,0 +1,8 @@ +AUX wmSpaceWeather-1.04_p19-gentoo.patch 2034 SHA256 fe5bbfe77c053db8f497cfe06497c8d7151a8ca073ae72288a7e8ad1b773b4d1 SHA512 7e8d76b6db7e6fd6b498712d0d06cee4a3550914f9c48844c6b3dfc77c1086ac119a097365fd5424e1c251f0e9088feec3c2a1e9ab53e146f3a5427786872982 WHIRLPOOL 77a1aef1346459f07be01f3ef8ff78000ceb8bf70e7f2dae1dc8c27e3ba6260fc06cc52a2086ac38a9c3bd5b4c2de17df427b0f74dc7bd8a7722c9da8007ecae +AUX wmSpaceWeather-1.04_p19-getkp.patch 1290 SHA256 f1e7f6bda7e004ef15780a3d7f520e7e4c9de947b291604c6219da552f02f970 SHA512 54f1ee8d2152bafc7895b2a626f27a4c5bf7b3702a2d14e2523952fcffb8e636f6f3ceb30d95b12b80470a58cb16dd50e04435ccae91e81c83097d41e2949b59 WHIRLPOOL c6b2e20e3dcad2b492df5c267677075289e4c6ac6c7f0974a5e8b97d67c5480bce8e155a99a1545b4a996a30b92586c6e449a4a0d990dd3f379cdae6ccb18977 +DIST wmspaceweather_1.04-19.diff.gz 9429 SHA256 21298d603c181ccf8e34590ea2654035b755c3832bf450dacc3d57953dd6e137 SHA512 f8228c15642b88b355f977a8ce73b474bf8874b4b64bce3f519e6ec6c5de1db7bbd1e5f40e57e367dc0a1dec47e5c32b87d4ce61e35043d71cee0005b06a5a78 WHIRLPOOL c77faf7786b61b317ca2fed954437b461ee347ebf81ae851097a4cc30f259aec939f006bd6022b201952a50194aa67cf2b4a6dcd18b8dbca0a10b37d46bacb25 +DIST wmspaceweather_1.04.orig.tar.gz 36295 SHA256 946455238e3bca6137a122271da4af9fa154730a071c69eb49c0fde5be010f38 SHA512 d422806d44a2929cfdb3e36c7075a4e02b64416db7c528d08411944f574dc34bb5e5ee48c55a3b9e796b15529857bcb480dc650ebdfe23cf1079ba09e2749154 WHIRLPOOL 2b527613e4253216d807024cbd1155cac3df3d82e6165a04729c287507be523aaac0e6db2cbfe2f65221e8d84458b7989ca2fa3170eee4e4d0cfebe1f431b4bc +EBUILD wmSpaceWeather-1.04_p19.ebuild 1760 SHA256 a00304ab644e460c17ca39f03b95a65e19002ce4df2d8e96409bc60cbc2008aa SHA512 784ad519196e6dca558cd6544a199dbbd6a733c1cf939b3792d350defdc5642cff4458db3dba6d9927b52c540d8c405c18fa66db6f626eee87c6028d1f57e3ef WHIRLPOOL b2a1e09820d7b1ef87eaab72147d1700b06437e0247569c3bc3f12c4f77d7737fb2efe2d34cad845bc15683258523da13f2f5967bd41fec12baf87cc36826323 +MISC ChangeLog 3008 SHA256 dae57268a0d933a2be0d19855bd90df52410d6ac41cc5c8ea3b96c84ae076675 SHA512 526afa0e7cd40418a440a8852b8bb876663d19169d3474f238dfd9aee7291ed71c1091841c5faf0046bb8b76eb07f20cdb0acda92f8d8df8cfa866516c19b76d WHIRLPOOL ae3f86317809a3f0015d9ceeb971742cabc162a6db7def80302991640e4fe904dc7678c520cab2162a6ca9798ff083e444aa0db2487b145930965a541f40d9f7 +MISC ChangeLog-2015 2720 SHA256 69142782000b2b122c0d8f2f2c6193ff453ea6c6a13bc3aa92c8f8f1cbb6acde SHA512 2b061e1134c7b70d4f41b9becd5f178738ca79b0641bb5348e10aeff0519b3ac56c8ede57d4d62eff94607067cabf4606ce5c88bcddcbc8395abc82428a68208 WHIRLPOOL cdee417a2366279b405d7bb701789dc69c0188174994570c317f7e5ca2418a6fa14a8717675612232973c4fd64034f8d891ba6e129ac2605f4268d8d142dfaba +MISC metadata.xml 349 SHA256 22da6af48c4075c447c8772f7105ebc3cfd5893d32f68bfcac758a59cd293d10 SHA512 f39cf6f8c99788992a57ed0598fcd5d13b25fdf80dc5cf133091f5babae34e269b55e3464bec7b660e3ebb295edc4d46e76dda1978e4fde30e70620cefa21264 WHIRLPOOL 8bea1ca40585f8284518f4d90fe42a251fdef805b8815e3aaea57c39199899e0da26f7f0b2e0a69df636717b26adce7e67fba8184c735edf65b32d6494185014 diff --git a/x11-plugins/wmSpaceWeather/files/wmSpaceWeather-1.04_p19-gentoo.patch b/x11-plugins/wmSpaceWeather/files/wmSpaceWeather-1.04_p19-gentoo.patch new file mode 100644 index 000000000000..29cb5f984f13 --- /dev/null +++ b/x11-plugins/wmSpaceWeather/files/wmSpaceWeather-1.04_p19-gentoo.patch @@ -0,0 +1,61 @@ +--- wmSpaceWeather/Makefile.orig 2008-01-28 02:45:07.000000000 +0100 ++++ wmSpaceWeather/Makefile 2008-01-28 02:46:04.000000000 +0100 +@@ -1,8 +1,8 @@ +-CC = gcc +-CFLAGS = -O2 -Wall +-INCDIR = -I/usr/X11R6/include/X11 +-DESTDIR= /usr/X11R6 +-LIBDIR = -L/usr/X11R6/lib ++CC ?= gcc ++CFLAGS += -Wall ++INCDIR = -I/usr/include/X11 ++PREFIX = /usr ++LIBDIR ?= /usr/lib + # for linux + LIBS = -lXpm -lX11 -lXext + # for Solaris +@@ -12,14 +12,14 @@ + + + .c.o: +- $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) ++ $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) + + + all: wmSpaceWeather.o wmSpaceWeather + + wmSpaceWeather.o: wmSpaceWeather_master.xpm wmSpaceWeather_mask.xbm + wmSpaceWeather: $(OBJS) +- $(CC) $(COPTS) $(SYSTEM) -o wmSpaceWeather $^ $(INCDIR) $(LIBDIR) $(LIBS) ++ $(CC) $(CFLAGS) -o wmSpaceWeather $^ $(INCDIR) -L$(LIBDIR) $(LDFLAGS) $(LIBS) + + clean: + for i in $(OBJS) ; do \ +@@ -28,10 +28,10 @@ + rm -f wmSpaceWeather + + install:: wmSpaceWeather +- install -d $(DESTDIR)/usr/bin +- install -d $(DESTDIR)/usr/share/wmspaceweather +- install -d $(DESTDIR)/usr/share/man/man1 +- install -m 0755 wmSpaceWeather $(DESTDIR)/usr/bin +- install -m 0755 GetKp $(DESTDIR)/usr/share/wmspaceweather +- install -m 0644 wmSpaceWeather.1 $(DESTDIR)/usr/share/man/man1 ++ install -d $(DESTDIR)$(PREFIX)/bin ++ install -d $(DESTDIR)$(PREFIX)/share/wmspaceweather ++ install -d $(DESTDIR)$(PREFIX)/share/man/man1 ++ install -m 0755 wmSpaceWeather $(DESTDIR)$(PREFIX)/bin ++ install -m 0755 GetKp $(DESTDIR)$(PREFIX)/share/wmspaceweather ++ install -m 0644 wmSpaceWeather.1 $(DESTDIR)$(PREFIX)/share/man/man1 + +--- wmSpaceWeather/wmSpaceWeather.c.orig 2008-01-28 03:16:36.000000000 +0100 ++++ wmSpaceWeather/wmSpaceWeather.c 2008-01-28 03:22:12.000000000 +0100 +@@ -663,7 +663,7 @@ + if (GotDoubleClick1) { + GotFirstClick1 = 0; + GotDoubleClick1 = 0; +- sprintf(Command, "sensible-browser '%s' &", URL); ++ sprintf(Command, "firefox -remote 'openURL(%s)'", URL); + system(Command); + } + diff --git a/x11-plugins/wmSpaceWeather/files/wmSpaceWeather-1.04_p19-getkp.patch b/x11-plugins/wmSpaceWeather/files/wmSpaceWeather-1.04_p19-getkp.patch new file mode 100644 index 000000000000..6d6d90137feb --- /dev/null +++ b/x11-plugins/wmSpaceWeather/files/wmSpaceWeather-1.04_p19-getkp.patch @@ -0,0 +1,27 @@ +--- wmSpaceWeather/GetKp.orig 2008-01-28 14:20:43.000000000 +0100 ++++ wmSpaceWeather/GetKp 2008-01-28 14:22:48.000000000 +0100 +@@ -17,10 +17,10 @@ + unlink(CUR_INDEX); + + +-# $grabcmd = "cd /tmp; /usr/bin/wget -q ftp://www.sec.noaa.gov/pub/indices/DGD.txt"; ++# $grabcmd = "cd /tmp; /usr/bin/wget -q http://www.swpc.noaa.gov/ftpdir/indices/DGD.txt"; + # system "$grabcmd"; + # +- $grabcmd = "/usr/bin/curl -f -s -o " . DGD_FILE . " http://www.sec.noaa.gov/ftpdir/indices/DGD.txt"; ++ $grabcmd = "/usr/bin/curl -f -s -o " . DGD_FILE . " http://www.swpc.noaa.gov/ftpdir/indices/DGD.txt"; + exit 1 if (system "$grabcmd"); + + +@@ -69,9 +69,9 @@ + # + # Add in very latest stuff + # +-# $grabcmd = "cd /tmp; /usr/bin/wget -q ftp://www.sec.noaa.gov/pub/latest/curind.txt"; ++# $grabcmd = "cd /tmp; /usr/bin/wget -q http://www.swpc.noaa.gov/ftpdir/latest/curind.txt"; + # system "$grabcmd"; +- $grabcmd = "/usr/bin/curl -f -s -o " . CUR_INDEX . " http://www.sec.noaa.gov/ftpdir/latest/curind.txt"; ++ $grabcmd = "/usr/bin/curl -f -s -o " . CUR_INDEX . " http://www.swpc.noaa.gov/ftpdir/latest/curind.txt"; + exit 1 if (system "$grabcmd"); + %lmonstr = ( "Jan", 1, "Feb", 2, "Mar", 3, "Apr", 4, "May", 5, "Jun", 6, "Jul", 7, "Aug", 8, "Sep", 9, "Oct", 10, "Nov", 11, "Dec", 12); + diff --git a/x11-plugins/wmSpaceWeather/metadata.xml b/x11-plugins/wmSpaceWeather/metadata.xml new file mode 100644 index 000000000000..8a798be45d22 --- /dev/null +++ b/x11-plugins/wmSpaceWeather/metadata.xml @@ -0,0 +1,11 @@ +<?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> + wmSpaceWeather shows environmental conditions in space. + </longdescription> +</pkgmetadata> diff --git a/x11-plugins/wmSpaceWeather/wmSpaceWeather-1.04_p19.ebuild b/x11-plugins/wmSpaceWeather/wmSpaceWeather-1.04_p19.ebuild new file mode 100644 index 000000000000..de818effef2f --- /dev/null +++ b/x11-plugins/wmSpaceWeather/wmSpaceWeather-1.04_p19.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils multilib toolchain-funcs + +MY_PN="wmspaceweather" +MY_PV_ORIG="${PV/_p*}" +MY_PV_PATCH="${PV/_p/-}" +MY_P_ORIG="${MY_PN}_${MY_PV_ORIG}.orig" +MY_P_PATCH="${MY_PN}_${MY_PV_PATCH}.diff" + +DESCRIPTION="dockapp showing weather at geosynchronous orbit" +HOMEPAGE="http://packages.debian.org/sid/wmspaceweather" +SRC_URI="mirror://debian/pool/main/w/${MY_PN}/${MY_P_ORIG}.tar.gz + mirror://debian/pool/main/w/${MY_PN}/${MY_P_PATCH}.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 hppa ~mips ppc sparc x86" +IUSE="" + +CDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm" +DEPEND="${CDEPEND} + x11-proto/xproto + x11-proto/xextproto" +RDEPEND="${CDEPEND} + net-misc/curl + dev-lang/perl" + +S="${WORKDIR}/${MY_P_ORIG/_/-}/${PN}" + +src_unpack() { + unpack ${MY_P_ORIG}.tar.gz + epatch "${DISTDIR}"/${MY_P_PATCH}.gz + + # need to apply patches from Debian first, do NOT change the order + cd "${S}" + mv ../debian/patches "${WORKDIR}"/patch + EPATCH_SUFFIX="dpatch" EPATCH_FORCE="yes" \ + EPATCH_MULTI_MSG="Applying Debian patches ..." epatch + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-getkp.patch +} + +src_compile() { + emake clean || die "make clean failed" + emake CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)" || die "parallel make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die install failed + dodoc ../{BUGS,CHANGES,HINTS,README} +} + +pkg_postinst() { + elog "You need to emerge www-client/firefox or www-client/firefox-bin" + elog "to use the -url functionality - see man ${PN} for more info." + elog + elog "This version uses curl instead of wget. You may edit /usr/share/wmspaceweather/GetKp" + elog "if you don't like it." +} |