diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/xrootconsole |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/xrootconsole')
-rw-r--r-- | x11-misc/xrootconsole/Manifest | 8 | ||||
-rw-r--r-- | x11-misc/xrootconsole/files/xrootconsole-0.6.makefile.patch | 36 | ||||
-rw-r--r-- | x11-misc/xrootconsole/files/xrootconsole-0.6.manpage.patch | 22 | ||||
-rw-r--r-- | x11-misc/xrootconsole/files/xrootconsole-0.6.noversion.patch | 52 | ||||
-rw-r--r-- | x11-misc/xrootconsole/metadata.xml | 11 | ||||
-rw-r--r-- | x11-misc/xrootconsole/xrootconsole-0.6-r1.ebuild | 45 |
6 files changed, 174 insertions, 0 deletions
diff --git a/x11-misc/xrootconsole/Manifest b/x11-misc/xrootconsole/Manifest new file mode 100644 index 000000000000..2bacd28ad93a --- /dev/null +++ b/x11-misc/xrootconsole/Manifest @@ -0,0 +1,8 @@ +AUX xrootconsole-0.6.makefile.patch 915 SHA256 9c676b1fdf9857848fd0a329b5b92868d6de387ce03038e0afd5555c088a022b SHA512 766577d406d0f0442910edd701456958d3d5a2dd3aea5324f9bf3901e2dbc0a7376ceeb39990248bc8a66342b1cdc5ce3805011c918dac84e7605ba022f73ef5 WHIRLPOOL 0593f8229da7da8221fe38766bd33096f9ddb1cab6387835ec41dfcd565cd54a04500af5947b7b268da80bdf6278d60a3aaaece08a0aed56b0294b6431b8a3af +AUX xrootconsole-0.6.manpage.patch 1038 SHA256 72961efeeda65fbc8aa00c4ff0beeef2b85dd1ccadf1ea298592ce52ae2173bb SHA512 88b8f68892646f3ca375ee0166336bb3972c5addbe1e515bdd9d7c4fc47517472051d59ac81fb0ec95a8852ab385e0544ec54fe0f9eefe39946dcbe1c222a33f WHIRLPOOL 56f41894421189daf19bca7ff2ee27eac2ce5fcbc14288fc19781a129f50b85eb371126fa0435adff17196474ec460f40459fc8f1b4cb414a114328d87decb14 +AUX xrootconsole-0.6.noversion.patch 1780 SHA256 572777af4fb493d99498b49bba99f76a59e05e1b34dca8feff568a6b5de30c63 SHA512 d75228770d31deb969e1f05f99eb0df2839564d9f9db7d5cb9efb00737e1df5632e14c0d5071ef0a5ff57054e62e1c112bd27074b60ac47220ec50f02a170c45 WHIRLPOOL 040584c0e2eab7adbd576dd083eb22513923afdcf1ed528b4b86cdd30ff74e6e7336eb235f057a25b4ee35df3c82ac806f2d8a9a9a07829ffc884849f15d2225 +DIST xrootconsole-0.6.tar.gz 15951 SHA256 8306de6f4d3f39677334ee65214e46729cf2dd89aeff1705df3c499738a4076d SHA512 9e773eac96f9bb0103880cce8a3bc24211c50b369c4c389bd020c774a4f643947b634ebc5e7b266b28f75f57887d8edc72d8d582e8535c7320f56292194ed7f9 WHIRLPOOL 05d8e39110ca8ad0ac28c23c6c743748751621c65df507a2f7ce0571320c1c36f429a39e793515a4a4c4cc4a6dc5e21b7f95817da46d4ff64bece5f131d0e63f +EBUILD xrootconsole-0.6-r1.ebuild 769 SHA256 d98206eac52569ce31d2c0bf2f1a1726bb822b94b7ee4492db6d6130be23ee78 SHA512 19fa76dbe0bd938a83745462e1e918ba6b72d21bfb09bc1ec35f57d12d640f48e1a4bd0ea02d10d75c77fd6773c031896bd16560b0a7a0bbaa0703393765266e WHIRLPOOL bc2f61e15bfe3a501b700c69e8340b181abe7751d0e81e20560685e61434ccd785d3d2405672610c8797774b64010fade71274d1763e6a5080922cb44c475f46 +MISC ChangeLog 2724 SHA256 e7f2fd4c589e1c628ca96a378526a8c59bc2f707298261346979decd75fd632c SHA512 60100e59b2eaca4398b8e64cfe28810fb852508204f0c459adf96c67e401160a00883f0036fb354bdea4ed0222d41675eed2756d454c87531e270ec345c2b06d WHIRLPOOL dc4eda1fbc03ba2b32eb0bc87fd61d34200df59463cec923565fad828f473691712cd77587da6c9351fd6cd064682e1433018fa09fbf3f78ee2fd69c4dcc794c +MISC ChangeLog-2015 3496 SHA256 134e4b39794530536f619c3f481cea2da570c7ea28445ac387b99b688f4f185b SHA512 e64548d157163b1dc319ffad0d259f50ad920b57733417034dd7cfc7c27bb98e9f6a64ccb442b20e99a536c4b8ecbcb61ca8649733d21ab4c92979af9fcc7b18 WHIRLPOOL a4caeb78fc16a014bb4e79c8603ec1c55c87697753984e9ab0964a2ddf8dbcc15292208b083024cadd81eb0379dc0c874c34f8af917318806492c59f96c16ad5 +MISC metadata.xml 358 SHA256 f666173d4e11e7f7c36de4edd5a9f79ae9f5b6ee05cb6af2b6ea11faf816277a SHA512 9e5d37dff356a43145f02067c1e587bdd55bd02573cfab81205ffff49ccc3c32c0a969ecdf7a356eebbb91008291a06c4935295005d376af08c4a6669db74400 WHIRLPOOL c01261069bf73695f2819413f8f9d3fadf399307734e5b6419390b9e8db0d66736b54d552acbd61bd1f476ca0b05a292673b9e3734252c66a73ab7c7a48cdc2d diff --git a/x11-misc/xrootconsole/files/xrootconsole-0.6.makefile.patch b/x11-misc/xrootconsole/files/xrootconsole-0.6.makefile.patch new file mode 100644 index 000000000000..4b3aee406733 --- /dev/null +++ b/x11-misc/xrootconsole/files/xrootconsole-0.6.makefile.patch @@ -0,0 +1,36 @@ +--- a/Makefile.org 2004-02-20 22:53:28.000000000 +0100 ++++ b/Makefile 2010-02-08 12:01:11.000000000 +0100 +@@ -43,20 +43,16 @@ + else echo Bleeding Edge Version; \ + fi;) + +-CC = gcc +-CPPFLAGS = +- + # for production +-CFLAGS = -O2 -DNDEBUG -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION)\"" \ +- -I /usr/X11R6/include +-LDFLAGS = -s ++CFLAGS += -DNDEBUG -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION)\"" \ ++ $(shell pkg-config --cflags x11) + + # for testing + #CFLAGS = -g -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION) (debug build)\"" \ + -I /usr/X11R6/include + #LDFLAGS = + +-LIBS = -L/usr/X11R6/lib -lX11 -lutil ++LIBS = $(shell pkg-config --libs x11) -lutil + + OBJS = main.o util.o + +@@ -76,5 +72,7 @@ + rm -f $(EXEC) *.o core *~ + + install: $(EXEC) +- cp $(EXEC) $(BINDIR) +- cp $(MANFILE) $(MANDIR) ++ install -d $(BINDIR) ++ install -d $(MANDIR) ++ install $(EXEC) $(BINDIR) ++ install $(MANFILE) $(MANDIR) diff --git a/x11-misc/xrootconsole/files/xrootconsole-0.6.manpage.patch b/x11-misc/xrootconsole/files/xrootconsole-0.6.manpage.patch new file mode 100644 index 000000000000..8d85400fcd05 --- /dev/null +++ b/x11-misc/xrootconsole/files/xrootconsole-0.6.manpage.patch @@ -0,0 +1,22 @@ +--- a/xrootconsole.1.orig 2005-03-06 16:59:05.837673328 +0900 ++++ b/xrootconsole.1 2005-03-06 17:04:36.493406016 +0900 +@@ -38,6 +38,9 @@ + .Ar number + columns wide. Text is written vertically down each column in the order in + which text is received from the input file. The default is 1. ++.It Fl -solid ++This option makes the background a solid color. The default is to use a ++shaded/transparent background. + .It Fl -topdown + Forces xrootconsole to display new lines from its input at the top of the + screen, scrolling previous lines down. Default behavior is to insert new +@@ -45,6 +48,9 @@ + .It Fl -wrap + Rather than truncating long lines, this option specifies that xrootconsole + should wrap excess text to the following line or lines, as necessary. ++.It Fl -noversion ++Tells xrootconsole not to display its version as the first line of output in ++the root window. Default behavior is to include version information. + .It Fl geometry Ar geometry + This option specifies the preferred size and position of the window; see + .Xr X 1 . diff --git a/x11-misc/xrootconsole/files/xrootconsole-0.6.noversion.patch b/x11-misc/xrootconsole/files/xrootconsole-0.6.noversion.patch new file mode 100644 index 000000000000..50587f7437cb --- /dev/null +++ b/x11-misc/xrootconsole/files/xrootconsole-0.6.noversion.patch @@ -0,0 +1,52 @@ +--- a/main.c.orig 2004-02-21 07:31:53.000000000 +0900 ++++ b/main.c 2005-03-06 16:34:27.949346504 +0900 +@@ -68,6 +68,7 @@ + " --solid make background a solid color, not shaded-transparent\n" \ + " --topdown insert lines at the top and scroll the rest down\n" \ + " --wrap wrap long lines, instead of cutting them off\n" \ ++" --noversion do not display xrootwindow version in output\n" \ + " -h or --help a familiar-looking help screen\n" \ + " -v or --version displays the version number\n" \ + " [console] filename to read (defaults to standard input)\n" \ +@@ -102,6 +103,7 @@ + int wrap; + int topdown; + int solid; ++ int show_version; + } InitOptions; + + typedef struct { +@@ -219,6 +221,7 @@ + io->wrap = DEFAULT_WRAP; + io->topdown = DEFAULT_TOPDOWN; + io->solid = DEFAULT_SOLID; ++ io->show_version = 1; + + /* Process command-line arguments */ + while (*++argv != NULL) { +@@ -236,6 +239,8 @@ + io->bw = atoi(*++argv); + else if (!strcmp(*argv, "-columns") || !strcmp(*argv, "-c")) + io->tc = atoi(*++argv); ++ else if (!strcmp(*argv, "--noversion")) ++ io->show_version = 0; + else if (!strcmp(*argv, "--solid")) + io->solid = True; + else if (!strcmp(*argv, "--wrap")) +@@ -560,10 +565,12 @@ + init_console(io.console_name, ws.colwidth, ws.nlines, &cs); + + /* Display a message */ +- put("xrootconsole ",&io,&ws,&cs); +- put(XROOTCONSOLE_VERSION,&io,&ws,&cs); +- put("\n",&io,&ws,&cs); +- ++ if (io.show_version) { ++ put("xrootconsole ",&io,&ws,&cs); ++ put(XROOTCONSOLE_VERSION,&io,&ws,&cs); ++ put("\n",&io,&ws,&cs); ++ } ++ + draw_pixmap(&io,&ws,&cs); + + event_loop(&io,&ws,&cs); diff --git a/x11-misc/xrootconsole/metadata.xml b/x11-misc/xrootconsole/metadata.xml new file mode 100644 index 000000000000..ecb4e48af376 --- /dev/null +++ b/x11-misc/xrootconsole/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="project"> + <email>desktop-misc@gentoo.org</email> + <name>Gentoo Desktop Miscellaneous Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">xrootconsole</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/xrootconsole/xrootconsole-0.6-r1.ebuild b/x11-misc/xrootconsole/xrootconsole-0.6-r1.ebuild new file mode 100644 index 000000000000..111832c3752d --- /dev/null +++ b/x11-misc/xrootconsole/xrootconsole-0.6-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="A utility that displays its input in a text box on your root window" +HOMEPAGE="https://sourceforge.net/projects/xrootconsole/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +RDEPEND=" + x11-libs/libX11" + +DEPEND=" + ${RDEPEND} + x11-proto/xproto" + +PATCHES=( + "${FILESDIR}/${P}.noversion.patch" + "${FILESDIR}/${P}.makefile.patch" + "${FILESDIR}/${P}.manpage.patch" +) + +DOCS=( TODO NEWS CREDITS ) + +src_compile() { + tc-export CC + emake +} + +src_install() { + dodir /usr/bin + + emake \ + MANDIR="${D}usr/share/man/man1" \ + BINDIR="${D}usr/bin/" \ + install + + einstalldocs +} |