summaryrefslogtreecommitdiff
path: root/x11-plugins/gkrellfire
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-plugins/gkrellfire
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-plugins/gkrellfire')
-rw-r--r--x11-plugins/gkrellfire/Manifest6
-rw-r--r--x11-plugins/gkrellfire/files/fix-CC-CFLAGS-LDFLAGS-handling.patch69
-rw-r--r--x11-plugins/gkrellfire/gkrellfire-0.4.2-r1.ebuild24
-rw-r--r--x11-plugins/gkrellfire/metadata.xml5
4 files changed, 104 insertions, 0 deletions
diff --git a/x11-plugins/gkrellfire/Manifest b/x11-plugins/gkrellfire/Manifest
new file mode 100644
index 000000000000..7e0682ccd344
--- /dev/null
+++ b/x11-plugins/gkrellfire/Manifest
@@ -0,0 +1,6 @@
+AUX fix-CC-CFLAGS-LDFLAGS-handling.patch 1788 SHA256 79cd20f96a9467e9b75abb624d090095b3c46c5a8823da77d18ab9273fb70b7f SHA512 bf28ded021d3325df8fa725c0b264939e1d4e86bcd87e60e2bc010f1223a0371996516749d162a07d3661d6589c7b8f5a102a0ebe87f60aba36b913fd83cf3d2 WHIRLPOOL 0da44e5307196b8c168400e2fbf7ead3ce017856f45ff508a3e82e80ada003b89328aafd3617b353523858a1a6ca69a0ab3f3b2fbdb87ddbb7896dece0140086
+DIST gkrellfire-0.4.2.tgz 12474 SHA256 b8c81e038c4fad56be360af2a8423c096c98bb2bc382b024a1734fa36fddbb40 SHA512 1b7f6229567819092cd2eb2e33e3b7fd8340b0e913f6bcd1d11e9dd604730e3ca4fc1adaa8ae36895d80000f61931da14a586be6929c141c64b8519f8dc328bf WHIRLPOOL 1dffccc9de7af3684f031f9b963052783268a43b830f51779da46fab4e1e78f7d7a5e020f0980e0635eb660b7900a8204f217f674f12e509db3c3274c139c039
+EBUILD gkrellfire-0.4.2-r1.ebuild 534 SHA256 a878e69e1af5a5e6b74c540a376ed6be341511e63e417d136000c7f70c32a068 SHA512 714cdef58548a5af1e2ed30959b8ebfd3f22363d1540c65e999cac08661ca83a1ee1e43945cb0cea8ce3399dfc45c9eafffba17cf7b3b53337162b21ac2bbff7 WHIRLPOOL 75903ff796a98e5c9bb4ac173a9f0417f0170efc14b867bbcad41acba8b3ed4ab31dee3515c540e8718dc2dd2ae6b84f80fb7e02ec4e1519600bf672c7153be2
+MISC ChangeLog 3116 SHA256 89b3c2ffd023fbb4384b33bf21b0e3dfc6020186c00aaf6c03e47098b3d5fb35 SHA512 abbbc8f27f31cc50313c4579691c7df9948f7fd30a5083a1a3969d65cd4d2d026e6d20a5ff841d5d1dd3471c50f8f8c82430210ee8eaedfb1b86a3aed00d3a07 WHIRLPOOL bcb50c88a41e97e4ae546cf04e4a5392e74000bde8ab39a0bd46dd980e476d3c95dfcf89ba43731b27b4334cbd2a6e7057b38068572d34723ae851907d461638
+MISC ChangeLog-2015 1314 SHA256 85964f37e101713eb2b98b2433bf0b7687d770a14b7819bb1e9c60ad226f0e69 SHA512 b3f135ccd4e386dfa80caed3c5c06485ee0747bddcc50ac074fecf86a4f176575927861c8ea551f17c827a5b6cfd903a0571f0cee7ed8bb469c71345bd93acc0 WHIRLPOOL 40e3f8225397bb3b916651d721c67a38b59c09b68a7c0bea9e969c082954070f64ac100d06a346c978bcc019f52bf3a381f40946a8794303ea01f2d9a9bbea2c
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/x11-plugins/gkrellfire/files/fix-CC-CFLAGS-LDFLAGS-handling.patch b/x11-plugins/gkrellfire/files/fix-CC-CFLAGS-LDFLAGS-handling.patch
new file mode 100644
index 000000000000..120f459587ba
--- /dev/null
+++ b/x11-plugins/gkrellfire/files/fix-CC-CFLAGS-LDFLAGS-handling.patch
@@ -0,0 +1,69 @@
+From 822bb45acf93b63e59071903aad842a3dd92a915 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Fri, 26 Aug 2016 08:43:12 -0400
+Subject: [PATCH 1/1] Rewrite the Makefile to fix CC, CFLAGS, and LDFLAGS
+ support.
+
+The existing Makefile did not allow the user to set CC, CFLAGS, or
+LDFLAGS (or at least, they were ignored). This was fixed somewhat
+easily by deleting most of the Makefile, and by appending the
+necessary flags to CFLAGS and LDFLAGS. The installation target didn't
+do the right thing anyway, so it has been removed.
+
+The resulting Makefile is probably only useful on Gentoo, but upstream
+is long gone so maybe that's not a problem.
+
+Gentoo-Bug: 335033
+---
+ Makefile | 34 +++++-----------------------------
+ 1 file changed, 5 insertions(+), 29 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 7916cab..43a0527 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,36 +1,12 @@
+ GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags`
+ GTK_LIB = `pkg-config gtk+-2.0 --libs`
+
+-INSTALLDIR = /usr/lib/gkrellm2/plugins
+-
+-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE)
++CFLAGS += -fPIC $(GTK_INCLUDE)
+ LIBS = $(GTK_LIB)
+-LFLAGS = -shared
+-
+-CC = gcc
+-
+-OBJS = gkrellfire.o
+-
+-all: gkrellfire.so
+-
+-%.o: %.c
+- $(CC) $(CFLAGS) $(FLAGS) -c -o $@ $<
++LDFLAGS += -shared
+
+-
+-gkrellfire.so: $(OBJS)
+- $(CC) $(CFLAGS) $(OBJS) -o gkrellfire.so $(LFLAGS) $(LIBS)
++gkrellfire.so: gkrellfire.o
++ $(CC) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LIBS)
+
+ clean:
+- rm -f *.o core *.so* *.bak *~
+-
+-gkrellfire.o: gkrellfire.c
+-
+-install:
+- if [ -d $(INSTALLDIR) ] ; then \
+- install -c -s -m 644 gkrellfire.so $(INSTALLDIR) ; \
+- else \
+- install -D -c -s -m 644 gkrellfire.so $(INSTALLDIR)/gkrellfire.so ; \
+- fi
+-
+-uninstall:
+- rm -f $(INSTALLDIR)/gkrellfire.so
++ rm -f gkrellfire.*o
+--
+2.7.3
+
diff --git a/x11-plugins/gkrellfire/gkrellfire-0.4.2-r1.ebuild b/x11-plugins/gkrellfire/gkrellfire-0.4.2-r1.ebuild
new file mode 100644
index 000000000000..201cad761f91
--- /dev/null
+++ b/x11-plugins/gkrellfire/gkrellfire-0.4.2-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gkrellm-plugin toolchain-funcs
+
+DESCRIPTION="CPU load flames for GKrellM 2"
+HOMEPAGE="http://people.freenet.de/thomas-steinke"
+SRC_URI="ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="app-admin/gkrellm[X]"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/fix-CC-CFLAGS-LDFLAGS-handling.patch" )
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
diff --git a/x11-plugins/gkrellfire/metadata.xml b/x11-plugins/gkrellfire/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/x11-plugins/gkrellfire/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>