From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- x11-terms/root-tail/Manifest | 6 ++ x11-terms/root-tail/files/root-tail-1.2-kde.patch | 125 ++++++++++++++++++++++ x11-terms/root-tail/metadata.xml | 5 + x11-terms/root-tail/root-tail-1.2-r3.ebuild | 46 ++++++++ 4 files changed, 182 insertions(+) create mode 100644 x11-terms/root-tail/Manifest create mode 100644 x11-terms/root-tail/files/root-tail-1.2-kde.patch create mode 100644 x11-terms/root-tail/metadata.xml create mode 100644 x11-terms/root-tail/root-tail-1.2-r3.ebuild (limited to 'x11-terms/root-tail') diff --git a/x11-terms/root-tail/Manifest b/x11-terms/root-tail/Manifest new file mode 100644 index 000000000000..73ae61b944fb --- /dev/null +++ b/x11-terms/root-tail/Manifest @@ -0,0 +1,6 @@ +AUX root-tail-1.2-kde.patch 3188 SHA256 e188b8a8a6af4f592ff4777cf3cee32bc5d087b9ff6ec1c97fab5193acd14296 SHA512 f99c8cd04664d7e1afe21854d2ba9114387c55fa89268aca7cbeb88ecfeedad26529bdfd2b52dbe88d74959f4943571bda1f518fb41d8827f04f25e250bc7fb7 WHIRLPOOL c57b26ddd7dbd32956dd44575e4863433ff6332ae11ddd079682209b1dbba426c7723b9769674338f1800a7f71bba7931da7f9e0f057cdb72cb6cb36f1610b33 +DIST root-tail-1.2.tar.gz 20805 SHA256 08fb829cc0edd533aaf2af7bcf12d877a6ff51d60c59be48ba354c5940b80691 SHA512 9e0b046d3e22ad8e85baa356ae8850885759e28624840901465c88c5791595db89da8d7908446cfa52cef180d2ae5a6d3857310679dc37545b6a9cabdd1d3e10 WHIRLPOOL 792109b03d878a10324d3a769c753d38c7aab22774679ca64ed7c98a2d4ed4335903d007cd521785731eab05865020c55f7bb0991ec35ff8234b4b4d8869aa83 +EBUILD root-tail-1.2-r3.ebuild 1016 SHA256 ea56ae797563f942f0c76e7568b575a30f7b90f40e08126d484be58375edc2f0 SHA512 567d3509d6c786fa51d12e5ce3f649779eed6aedd3dc501515b7ac81664c54a1d19863229af667c79de32fc2e463b966d8860d0abca77b6708c249f1387096b8 WHIRLPOOL d8f8a7a68228ab44ef415439b968680e53008c52c05593a7556ebf961f89ac79f12c1ea78674b063b7c8c33f9bc87433e04fd58fb95f8f6dd47eb8b101ada6d0 +MISC ChangeLog 2563 SHA256 3915e70059023935bcbd65b1d46c34e31f2438cb4ab8ceee86611fef9e10f570 SHA512 3f50560838978f8ab1f6c43188ab1b3649975fae6e6580694b31ee16e3d4135140e270e060836329bec90537ed5a33779fb7a38205d26b59c98829ff116daea8 WHIRLPOOL 03e6c8dca1f2bf755d8eba11941808b74b6136d625822433b4d45841dea50bb2cb8ce10be0b4a387bc6e36cff46ef72de12862c05b35c16e11266f07df405173 +MISC ChangeLog-2015 7040 SHA256 bbc0295ba4d474270ba76eb09eece3d28b2143f90b1f65abfd68d8b9b20602b1 SHA512 2bedf15537b3354774ff2450a4d74746d6eab02a0c830d71c09b4f485d91749ad26ce37ff048e502bdcf3cf087fab60a6258d19dca42443a7425864f8e31030d WHIRLPOOL 9926ea1ebeb0aba5d1e7a5d2725b9f84e90151bef58bc3e8c0cf387ccbdf721d6523a075856aaf642e243a41df29035e6e249ade7ef1c23c966f95a9994a5634 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/x11-terms/root-tail/files/root-tail-1.2-kde.patch b/x11-terms/root-tail/files/root-tail-1.2-kde.patch new file mode 100644 index 000000000000..750edf2fefa0 --- /dev/null +++ b/x11-terms/root-tail/files/root-tail-1.2-kde.patch @@ -0,0 +1,125 @@ +diff -bBurN root-tail-1.2/config.h root-tail-my/config.h +--- root-tail-1.2/config.h 2004-07-30 23:32:39.000000000 +0400 ++++ root-tail-my/config.h 2005-02-23 13:02:48.878912688 +0300 +@@ -15,3 +15,4 @@ + + #define VERSION "1.2" + ++#define KDE +diff -bBurN root-tail-1.2/root-tail.c root-tail-my/root-tail.c +--- root-tail-1.2/root-tail.c 2004-07-30 23:33:20.000000000 +0400 ++++ root-tail-my/root-tail.c 2005-02-23 13:02:37.599627400 +0300 +@@ -148,6 +148,11 @@ + regex_t *transformre; + #endif + ++#ifdef KDE ++#define ATOM(a) XInternAtom(disp, #a, False) ++ ++int screen, ScreenWidth, ScreenHeight; ++#endif + + /* prototypes */ + void list_files (int); +@@ -227,7 +232,7 @@ + return Color.pixel; + } + +-#ifndef USE_TOON_GET_ROOT_WINDOW ++#if !defined(USE_TOON_GET_ROOT_WINDOW) && !defined(KDE) + static void + find_root_window (Display *display, int screen_number) + { +@@ -280,14 +285,91 @@ + fprintf (stderr, "Can't query tree on root window 0x%lx", root); + } + } +-#endif /* USE_TOON_GET_ROOT_WINDOW */ ++#elif defined(KDE) ++static Window find_subwindow(Window win, int w, int h) { ++ unsigned int i, j; ++ Window troot, parent, *children; ++ unsigned int n; ++ ++ /* search subwindows with same size as display or work area */ ++ ++ for (i=0; i<10; i++) { ++ XQueryTree(disp, win, &troot, &parent, &children, &n); ++ ++ for (j=0; j + + + + diff --git a/x11-terms/root-tail/root-tail-1.2-r3.ebuild b/x11-terms/root-tail/root-tail-1.2-r3.ebuild new file mode 100644 index 000000000000..db2c2f19a68d --- /dev/null +++ b/x11-terms/root-tail/root-tail-1.2-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="Terminal to display (multiple) log files on the root window" +HOMEPAGE="http://oldhome.schmorp.de/marc/root-tail.html" +SRC_URI="http://oldhome.schmorp.de/marc/data/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="kde debug" + +RDEPEND="x11-libs/libXext + x11-libs/libX11" +DEPEND="x11-misc/imake + app-text/rman + x11-misc/gccmakedep + x11-libs/libX11 + x11-proto/xproto" + +src_prepare() { + use kde && epatch "${FILESDIR}"/${P}-kde.patch +} + +src_configure() { + xmkmf -a +} + +src_compile() { + sed -i 's:/usr/X11R6/bin:/usr/bin:' Makefile || die "sed Makefile failed" + use debug && append-flags -DDEBUG + emake \ + CC=$(tc-getCC) \ + CCOPTIONS="${CFLAGS}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" \ + || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install install.man || die "make install failed" + dodoc Changes README +} -- cgit v1.2.3