diff options
Diffstat (limited to 'x11-misc')
1405 files changed, 38692 insertions, 0 deletions
diff --git a/x11-misc/3ddesktop/3ddesktop-0.2.9-r1.ebuild b/x11-misc/3ddesktop/3ddesktop-0.2.9-r1.ebuild new file mode 100644 index 000000000000..68896485ba48 --- /dev/null +++ b/x11-misc/3ddesktop/3ddesktop-0.2.9-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="OpenGL virtual desktop switching" +HOMEPAGE="http://desk3d.sourceforge.net/" +SRC_URI="mirror://sourceforge/desk3d/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +RDEPEND=" + >=media-libs/freetype-2 + media-libs/freeglut + media-libs/imlib2[X] + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXt + x11-libs/libXxf86vm +" +DEPEND=" + ${RDEPEND} + x11-proto/xf86vidmodeproto + x11-proto/xproto +" + +DOCS=( AUTHORS TODO ChangeLog README README.windowmanagers ) + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gcc4.patch \ + "${FILESDIR}"/${P}-asneeded.patch \ + "${FILESDIR}"/${P}-missing-include.patch \ + "${FILESDIR}"/${P}-gl_init.patch + + eautoreconf +} + +pkg_postinst() { + echo + elog "This ebuild installed a configuration file called /etc/3ddesktop.conf" + elog "The default configuration makes a screenshot of the virtual desktops" + elog "every X seconds. This is non-optimal behavior." + elog + elog "To enable a more intelligent way of updating the virtual desktops," + elog "execute the following:" + elog + elog " echo \"AutoAcquire 0\" >> /etc/3ddesktop.conf" + elog + elog "This will cause 3ddesktop to update the virtual desktop snapshots" + elog "only when a 3d desktop switch is required." +} diff --git a/x11-misc/3ddesktop/Manifest b/x11-misc/3ddesktop/Manifest new file mode 100644 index 000000000000..3c778c2be7e1 --- /dev/null +++ b/x11-misc/3ddesktop/Manifest @@ -0,0 +1 @@ +DIST 3ddesktop-0.2.9.tar.gz 182278 SHA256 8fde969c1aec60685e0a74d2ebcfa1ef570df454288d5774646e2b291515e8c5 SHA512 87de83561bc1614e4dde623197b04e482e04ad363ba88adf4e4e9950a942a5725d2a7199406949981c1a4aeba5d71fb9a1693f99aefa21ed7b83e083bb902686 WHIRLPOOL 5238f9c99b1df49cab181e0d872c6af0d54b8fc126801c9d7a0b145729e7921cb5db82d734498506af74a0dcc2a7fe51009bfbe6a06b018754ed5980aa32560f diff --git a/x11-misc/3ddesktop/files/3ddesktop-0.2.9-asneeded.patch b/x11-misc/3ddesktop/files/3ddesktop-0.2.9-asneeded.patch new file mode 100644 index 000000000000..2534535dee1f --- /dev/null +++ b/x11-misc/3ddesktop/files/3ddesktop-0.2.9-asneeded.patch @@ -0,0 +1,13 @@ +http://bugs.gentoo.org/206817 + +--- a/Makefile.am ++++ b/Makefile.am +@@ -37,7 +37,7 @@ + camera.cpp \ + config.cpp + +-3ddeskd_LDFLAGS = $(imlib2_libs) @GL_LIBS@ ++3ddeskd_LDADD = $(imlib2_libs) @GL_LIBS@ + + noinst_HEADERS = 3ddesk.h \ + arrange.hpp \ diff --git a/x11-misc/3ddesktop/files/3ddesktop-0.2.9-gcc4.patch b/x11-misc/3ddesktop/files/3ddesktop-0.2.9-gcc4.patch new file mode 100644 index 000000000000..a67753fcee39 --- /dev/null +++ b/x11-misc/3ddesktop/files/3ddesktop-0.2.9-gcc4.patch @@ -0,0 +1,14 @@ +http://bugs.gentoo.org/118458 + +--- a/event.hpp ++++ b/event.hpp +@@ -74,7 +74,7 @@ + list<Event *>::iterator k; + for (k = events.begin(); k != events.end(); ++k) { + Event *e = *k; +- printf(":: Event %d 0x%x\n", e->type, (unsigned int)(e->function)); ++ printf(":: Event %d %p\n", e->type, e->function); + } + } + + diff --git a/x11-misc/3ddesktop/files/3ddesktop-0.2.9-gl_init.patch b/x11-misc/3ddesktop/files/3ddesktop-0.2.9-gl_init.patch new file mode 100644 index 000000000000..d817cea54ece --- /dev/null +++ b/x11-misc/3ddesktop/files/3ddesktop-0.2.9-gl_init.patch @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/123762 + +--- a/3ddeskd.cpp ++++ b/3ddeskd.cpp +@@ -2411,15 +2411,15 @@ + + // initialize opengl + +- // our own init function. +- gl_init(); +- + GLWin.open_display(); + + + GLWin.create_GL_window("Enhanced 3-dimensional workspace visualization magic machine", + cfg->options->do_fullscreen); + ++ // our own init function. ++ gl_init(); ++ + cfg->texture_size = GLWin.get_best_texture_size(cfg->texture_size); + + // Loads up the correct perspective matrix diff --git a/x11-misc/3ddesktop/files/3ddesktop-0.2.9-missing-include.patch b/x11-misc/3ddesktop/files/3ddesktop-0.2.9-missing-include.patch new file mode 100644 index 000000000000..328cbcad6d29 --- /dev/null +++ b/x11-misc/3ddesktop/files/3ddesktop-0.2.9-missing-include.patch @@ -0,0 +1,12 @@ +http://bugs.gentoo.org/228217 + +--- a/config.hpp ++++ b/config.hpp +@@ -24,6 +24,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <cstring> + + #include <errno.h> + #include <unistd.h> diff --git a/x11-misc/3ddesktop/metadata.xml b/x11-misc/3ddesktop/metadata.xml new file mode 100644 index 000000000000..a31c49d0edc4 --- /dev/null +++ b/x11-misc/3ddesktop/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <longdescription> +3d Destkop is an OpenGL program for switching virtual desktops in a seamless +3-dimensional manner. The current desktop is mapped into a 3D space where you +may choose other screens. Several different visualization modes are available. +</longdescription> + <upstream> + <remote-id type="sourceforge">desk3d</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/3dfb/3dfb-0.6.1-r1.ebuild b/x11-misc/3dfb/3dfb-0.6.1-r1.ebuild new file mode 100644 index 000000000000..1152cd8b6776 --- /dev/null +++ b/x11-misc/3dfb/3dfb-0.6.1-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="3D File Browser" +HOMEPAGE="http://sourceforge.net/projects/dz3d/" +SRC_URI="mirror://sourceforge/dz3d/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +RDEPEND="dev-libs/glib:2 + media-libs/freeglut + virtual/opengl + x11-libs/libXmu" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS ChangeLog NEWS README WISHLIST ) + +src_prepare() { + epatch "${FILESDIR}/${PV}-gcc41.patch" \ + "${FILESDIR}/${P}-freeglut-compat.patch" + epatch_user +} diff --git a/x11-misc/3dfb/Manifest b/x11-misc/3dfb/Manifest new file mode 100644 index 000000000000..6a29076b7074 --- /dev/null +++ b/x11-misc/3dfb/Manifest @@ -0,0 +1 @@ +DIST 3dfb-0.6.1.tar.gz 102343 SHA256 94321725651711a7f7e61f8c479e519985f980e788dfa6a840300d8a41dacf3f SHA512 3eb43dd80d5ffaea8845e84e2cf21599ee36739ac99d558c4c11592363970795e60b30f444229c987f527a0765fa657111d7a54eef84b5d3d9375c7a812588f1 WHIRLPOOL 4d589d3f9a0b3823e7e64db15f147eced83224db5c20e73c40ac98a7192b93a409f36d561017fc4d23a354e210bdf1e9cafddee8461fe94c88abc79cb578263a diff --git a/x11-misc/3dfb/files/0.6.1-gcc41.patch b/x11-misc/3dfb/files/0.6.1-gcc41.patch new file mode 100644 index 000000000000..2a964f66c21d --- /dev/null +++ b/x11-misc/3dfb/files/0.6.1-gcc41.patch @@ -0,0 +1,12 @@ +diff -Nur 3dfb-0.6.1.orig/src/gui.cpp 3dfb-0.6.1/src/gui.cpp +--- 3dfb-0.6.1.orig/src/gui.cpp 2004-07-28 22:32:21.000000000 +0000 ++++ 3dfb-0.6.1/src/gui.cpp 2006-09-18 21:35:01.271923722 +0000 +@@ -70,7 +70,7 @@ + + + static fileMap fileMap; +-static levelLocation levels[fileMap.maxLevels]; ++static levelLocation levels[1024]; + + + diff --git a/x11-misc/3dfb/files/3dfb-0.6.1-freeglut-compat.patch b/x11-misc/3dfb/files/3dfb-0.6.1-freeglut-compat.patch new file mode 100644 index 000000000000..f05e3538120d --- /dev/null +++ b/x11-misc/3dfb/files/3dfb-0.6.1-freeglut-compat.patch @@ -0,0 +1,10 @@ +--- src/main.cpp.bak 2014-03-13 12:24:32.155889466 +0400 ++++ src/main.cpp 2014-03-13 12:24:42.482890090 +0400 +@@ -7,6 +7,7 @@ + + int main(int argc, char **argv) + { ++ glutInit(&argc, argv); + gui_init(); + glutMainLoop(); + return(0); diff --git a/x11-misc/3dfb/metadata.xml b/x11-misc/3dfb/metadata.xml new file mode 100644 index 000000000000..d0053fa8abcf --- /dev/null +++ b/x11-misc/3dfb/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-effects</herd> + <upstream> + <remote-id type="sourceforge">dz3d</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/3dfm/3dfm-1.0.ebuild b/x11-misc/3dfm/3dfm-1.0.ebuild new file mode 100644 index 000000000000..82926d20528a --- /dev/null +++ b/x11-misc/3dfm/3dfm-1.0.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="OpenGL-based 3D File Manager" +HOMEPAGE="http://sourceforge.net/projects/innolab/" +SRC_URI="mirror://sourceforge/innolab/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="virtual/glu + virtual/opengl + media-libs/freeglut" +RDEPEND="${DEPEND}" + +src_install() { + emake DESTDIR="${D}" install || die + mv "${D}"/usr/bin/interface "${D}"/usr/bin/3dfm || die + + dodoc AUTHORS ChangeLog README +} diff --git a/x11-misc/3dfm/Manifest b/x11-misc/3dfm/Manifest new file mode 100644 index 000000000000..eec2727d4b3f --- /dev/null +++ b/x11-misc/3dfm/Manifest @@ -0,0 +1 @@ +DIST 3dfm-1.0.tar.gz 139275 SHA256 eec8a32f4761db74cfe9c19b614e9e112d693a0273d7f0c4f77cc7639eec83ab SHA512 8db31f54df57c1054a36708117db2de04b05ca7b67de53b0af9e0cb53fc5678590745b6c03d3ea9b6fc4dbe50435b8f52d3286a18313e3011d7ca2d28620d666 WHIRLPOOL 2a9955b9a092c2cc8e0d0f98dfd78691b887bf93c5882675b567ca831b33b42e7a191d65a266079ede9aeef3585732e436b71aa2b712975c9f9de5899f4ce55d diff --git a/x11-misc/3dfm/metadata.xml b/x11-misc/3dfm/metadata.xml new file mode 100644 index 000000000000..8b279ff8e12d --- /dev/null +++ b/x11-misc/3dfm/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-effects</herd> + <upstream> + <remote-id type="sourceforge">innolab</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/Xorgautoconfig/Manifest b/x11-misc/Xorgautoconfig/Manifest new file mode 100644 index 000000000000..5f9c5d0e28bc --- /dev/null +++ b/x11-misc/Xorgautoconfig/Manifest @@ -0,0 +1 @@ +DIST Xorgautoconfig-0.2.4.tar.bz2 33371 SHA256 63aece49c4584e1ef5b28a38519a7e4b8e102ea260e8acf2d7ead9b6675de3da diff --git a/x11-misc/Xorgautoconfig/Xorgautoconfig-0.2.4-r1.ebuild b/x11-misc/Xorgautoconfig/Xorgautoconfig-0.2.4-r1.ebuild new file mode 100644 index 000000000000..0d8e1069b300 --- /dev/null +++ b/x11-misc/Xorgautoconfig/Xorgautoconfig-0.2.4-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +DESCRIPTION="Xorgautconfig generates xorg.conf files for PPC based computers" +HOMEPAGE="http://dev.gentoo.org/~josejx/Xorgautoconfig.html" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="ppc ppc64" +IUSE="" + +DEPEND="" +RDEPEND="sys-apps/pciutils" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/backingstore.patch + epatch "${FILESDIR}"/${PN}-lz.patch +} + +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed!" +} + +src_install() { + dodir /usr + into /usr + dosbin Xorgautoconfig + + newinitd Xorgautoconfig.init Xorgautoconfig + + dodoc ChangeLog +} diff --git a/x11-misc/Xorgautoconfig/files/Xorgautoconfig-lz.patch b/x11-misc/Xorgautoconfig/files/Xorgautoconfig-lz.patch new file mode 100644 index 000000000000..c0182a754957 --- /dev/null +++ b/x11-misc/Xorgautoconfig/files/Xorgautoconfig-lz.patch @@ -0,0 +1,11 @@ +--- Makefile.bak 2007-02-12 19:45:05.000000000 -0500 ++++ Makefile 2007-02-12 19:44:37.000000000 -0500 +@@ -3,7 +3,7 @@ + OBJS = Xorgautoconfig.o pci.o misc.o ddcprobe/minifind.o ddcprobe/common.o ddcprobe/vesamode.o ddcprobe/of.o + + all: $(OBJS) +- ${CC} -s -o Xorgautoconfig $(CFLAGS) $(OBJS) -lpci ++ ${CC} -s -o Xorgautoconfig $(CFLAGS) $(OBJS) -lpci -lz + + clean: + rm -f $(OBJS) Xorgautoconfig diff --git a/x11-misc/Xorgautoconfig/files/backingstore.patch b/x11-misc/Xorgautoconfig/files/backingstore.patch new file mode 100644 index 000000000000..d1668d7da9f7 --- /dev/null +++ b/x11-misc/Xorgautoconfig/files/backingstore.patch @@ -0,0 +1,10 @@ +--- Xorgtext.h.bak 2006-07-06 11:48:31.000000000 -0400 ++++ Xorgtext.h 2006-07-06 11:48:36.000000000 -0400 +@@ -135,7 +135,6 @@ + + static char *driver_radeon = + " ### Available Driver options:\n" +-" Option \"BackingStore\" \"true\" # Increases performance\n" + " Option \"EnablePageFlip\" \"true\" # Increases performance\n" + " #Option \"SWcursor\" \"false\" # Use Software Cursor\n" + " #Option \"NoAccel\" \"false\" # Disable Hardware Acceleration\n" diff --git a/x11-misc/Xorgautoconfig/metadata.xml b/x11-misc/Xorgautoconfig/metadata.xml new file mode 100644 index 000000000000..e5db48ef412c --- /dev/null +++ b/x11-misc/Xorgautoconfig/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ppc</herd> +<maintainer> +<email>josejx@gentoo.org</email> +<name>Joseph Jezak</name> +</maintainer> +<longdescription lang="en"> +An X.org auto configuration tool for PPC machines. +</longdescription> +</pkgmetadata> + diff --git a/x11-misc/accessx/Manifest b/x11-misc/accessx/Manifest new file mode 100644 index 000000000000..7ce4a8a3d3cd --- /dev/null +++ b/x11-misc/accessx/Manifest @@ -0,0 +1 @@ +DIST accessx0951.tar.gz 17199 RMD160 505db30895d16137ff893ee0adbc1e8a8c706e4b SHA1 c189d86067df37d206c7c1cd99ec7568f045d0a8 SHA256 441e9316552a88d26b265a3074656ec56a84d8ea287d7dcebdb7a2b562111863 diff --git a/x11-misc/accessx/accessx-0951-r1.ebuild b/x11-misc/accessx/accessx-0951-r1.ebuild new file mode 100644 index 000000000000..3f2742082ac5 --- /dev/null +++ b/x11-misc/accessx/accessx-0951-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Interface to the XKEYBOARD extension in X11" +HOMEPAGE="http://cita.disability.uiuc.edu/software/accessx/freewareaccessx.php" +SRC_URI="http://cmos-eng.rehab.uiuc.edu/${PN}/software/${PN}${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc sparc x86" +IUSE="" + +DEPEND="x11-libs/libX11 + x11-libs/libXext + dev-lang/tk" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + + sed -i \ + -e 's:$(CC) $(OPTS) ax.C:$(CC) $(LDFLAGS) $(OPTS) ax.C:' \ + Makefile || die +} + +src_compile() { + emake CC="$(tc-getCXX)" OPTS="${CXXFLAGS}" \ + XLIBDIR="-L/usr/$(get_libdir)" LLIBS="-lXext -lX11" || die +} + +src_install() { + dobin accessx ax || die + dodoc CHANGES README +} diff --git a/x11-misc/accessx/files/accessx-0951-build.patch b/x11-misc/accessx/files/accessx-0951-build.patch new file mode 100644 index 000000000000..6d732487214f --- /dev/null +++ b/x11-misc/accessx/files/accessx-0951-build.patch @@ -0,0 +1,65 @@ +diff -ur accessx.orig/Access.C accessx/Access.C +--- accessx.orig/Access.C 2003-09-19 19:08:01.000000000 +0300 ++++ accessx/Access.C 2008-01-07 18:53:43.000000000 +0200 +@@ -22,6 +22,8 @@ + #include <X11/XKBlib.h> + #include "Access.h" + ++using namespace std; ++ + // + // Access() + // +@@ -153,7 +155,7 @@ + //Get the state of the keyboard. + + XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd); +- if ((int)xkb == BadAlloc || xkb == NULL) ++ if (xkb == NULL) + { + return 5; /*AccessKeyboardQueryFailure;*/ + } +@@ -262,7 +264,7 @@ + //Get the state of the keyboard. + + XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd); +- if ((int)xkb == BadAlloc || xkb == NULL) ++ if (xkb == NULL) + { + return 5; /*AccessKeyboardQueryFailure;*/ + } +diff -ur accessx.orig/Access.h accessx/Access.h +--- accessx.orig/Access.h 2003-09-19 19:00:42.000000000 +0300 ++++ accessx/Access.h 2008-01-07 18:53:47.000000000 +0200 +@@ -21,7 +21,7 @@ + * + */ + +-#include <iostream.h> ++#include <iostream> + #include <math.h> + + inline char* onoroff(int val) +diff -ur accessx.orig/ax.C accessx/ax.C +--- accessx.orig/ax.C 2003-09-19 19:09:31.000000000 +0300 ++++ accessx/ax.C 2008-01-07 18:53:49.000000000 +0200 +@@ -20,6 +20,7 @@ + + #include "ax.h" + ++using namespace std; + + /////////////////////////////////////////////////////////////////////////////// + // +diff -ur accessx.orig/ax.h accessx/ax.h +--- accessx.orig/ax.h 2003-09-19 19:06:56.000000000 +0300 ++++ accessx/ax.h 2008-01-07 18:53:51.000000000 +0200 +@@ -24,7 +24,7 @@ + + // Include Files + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> diff --git a/x11-misc/accessx/metadata.xml b/x11-misc/accessx/metadata.xml new file mode 100644 index 000000000000..731225048652 --- /dev/null +++ b/x11-misc/accessx/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> +</pkgmetadata> diff --git a/x11-misc/afbinit/Manifest b/x11-misc/afbinit/Manifest new file mode 100644 index 000000000000..dc1efe18c835 --- /dev/null +++ b/x11-misc/afbinit/Manifest @@ -0,0 +1 @@ +DIST afbinit-1.0.1.tar.bz2 3288 SHA256 3a9b246b34f9b518f2e9a143e5c9faacd0197baa4e5dd13f82ce3c336a3c285c diff --git a/x11-misc/afbinit/afbinit-1.0.1-r7.ebuild b/x11-misc/afbinit/afbinit-1.0.1-r7.ebuild new file mode 100644 index 000000000000..6964aa949c7c --- /dev/null +++ b/x11-misc/afbinit/afbinit-1.0.1-r7.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="loads the microcode for Elite3D framebuffers to use X" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="mirror://gentoo/${P}.tar.bz2" +IUSE="" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="-* sparc" + +RDEPEND="${DEPEND} + sys-apps/util-linux" + +src_unpack() { + unpack ${A} + ## + # Patch rc.afb to handle both kernels 2.4.x and 2.6.x + einfo "Patching to handle both kernel 2.4.x and 2.6.x style afb identification" + cd "${S}" + epatch "${FILESDIR}"/rc.afb-${PVR}.patch || die "Cannot patch rc.afb init script" + einfo 'Patching afbinit.c to use MMAP_PUBLIC (needed for kernels > 2.6.14)' + epatch "${FILESDIR}"/afbinit-mmap-${PV}.patch || die "Cannot patch for mmap" +} + +src_compile() { + emake || die "make failed" +} + +src_install() { + dosbin afbinit + dosbin rc.afb + newinitd "${FILESDIR}"/afbinit.init afbinit +} + +pkg_postinst() { + einfo "To use afbinit, you'll need the AFB microcode." + einfo "This is available via a Solaris install at /usr/lib/afb.ucode" + einfo "or via sun.com" +} diff --git a/x11-misc/afbinit/files/afbinit-mmap-1.0.1.patch b/x11-misc/afbinit/files/afbinit-mmap-1.0.1.patch new file mode 100644 index 000000000000..43a16c0cbf49 --- /dev/null +++ b/x11-misc/afbinit/files/afbinit-mmap-1.0.1.patch @@ -0,0 +1,20 @@ +--- afbinit.c- 2006-01-31 15:21:31.000000000 +0000 ++++ afbinit.c 2006-01-31 15:22:23.000000000 +0000 +@@ -236,7 +236,7 @@ + /* MMAP the registers. */ + uregs = mmap(0, 0x2000, + PROT_READ | PROT_WRITE, +- MAP_PRIVATE, ++ MAP_SHARED, + afb_fd, + 0x04000000); + if (uregs == (void *)-1L) { +@@ -246,7 +246,7 @@ + + kregs = mmap(0, 0x2000, + PROT_READ | PROT_WRITE, +- MAP_PRIVATE, ++ MAP_SHARED, + afb_fd, + 0x0bc04000); + if (kregs == (void *)-1L) { diff --git a/x11-misc/afbinit/files/afbinit.init b/x11-misc/afbinit/files/afbinit.init new file mode 100644 index 000000000000..ed8fa59c017d --- /dev/null +++ b/x11-misc/afbinit/files/afbinit.init @@ -0,0 +1,14 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + before xdm +} + +start() { + ebegin "Loading afbinit" + /usr/sbin/rc.afb + eend $? "Failed to load afbinit" +} diff --git a/x11-misc/afbinit/files/rc.afb-1.0.1-r7.patch b/x11-misc/afbinit/files/rc.afb-1.0.1-r7.patch new file mode 100644 index 000000000000..37f5f40d1a6a --- /dev/null +++ b/x11-misc/afbinit/files/rc.afb-1.0.1-r7.patch @@ -0,0 +1,62 @@ +--- rc.afb- 1999-09-08 06:42:36.000000000 +0000 ++++ rc.afb 2008-03-18 17:55:11.000000000 +0000 +@@ -10,11 +10,6 @@ + exit 0 + fi + +-if [ `/bin/dmesg | /bin/grep -c "Elite 3D"` -eq 0 ] +-then +- exit 0 +-fi +- + # The microcode loader binary and the microcode + # itself must exist. + if [ ! -x /usr/sbin/afbinit -o ! -f /usr/lib/afb.ucode ] +@@ -22,13 +17,38 @@ + exit 0 + fi + +-# Make FB device list. +-afb_devs=`/bin/dmesg | /bin/egrep -i "Elite 3D" | /bin/sed 's/\:.*//'` ++# Make FB device list, depending on which kind of kernel we have. ++# First, try kernel 2.4.x ++ ++if [ `/bin/dmesg | /bin/grep -c "Elite 3D"` -gt 0 ] ++then ++ ++ afb_devs=`/bin/dmesg | /bin/egrep -i "Elite 3D" | /bin/sed 's/\:.*//'` ++ ++ # Load microcode onto each card. ++ for AFB in ${afb_devs} ++ do ++ echo -n "${AFB}: Loading Elite3D microcode... " ++ /usr/sbin/afbinit /dev/${AFB} /usr/lib/afb.ucode ++ echo "done." ++ done ++ exit 0 ++else ++## ++# OK, we're not kernel 2.4.x ++# try kernel 2.6.x ++ ++## if [ `/bin/dmesg | /bin/grep -c "AFB"` -gt 0 ] ++## then + +-# Load microcode onto each card. +-for AFB in ${afb_devs} +-do +- echo -n "${AFB}: Loading Elite3D microcode... " +- /usr/sbin/afbinit /dev/${AFB} /usr/lib/afb.ucode +- echo "done." +-done ++ [[ -e /proc/fb ]] || exit 0 ++ afb_devs=`/bin/more -s /proc/fb | /bin/egrep -i "Elite 3D" | /bin/sed 's/\ .*//'` ++ # Load microcode onto each card. ++ for AFB in ${afb_devs} ++ do ++ echo -n "/dev/fb${AFB}: Loading Elite3D microcode... " ++ /usr/sbin/afbinit /dev/fb${AFB} /usr/lib/afb.ucode ++ echo "done." ++ done ++ exit 0 ++fi diff --git a/x11-misc/afbinit/metadata.xml b/x11-misc/afbinit/metadata.xml new file mode 100644 index 000000000000..b87e94c3126f --- /dev/null +++ b/x11-misc/afbinit/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + + <herd>sparc</herd> + +</pkgmetadata> diff --git a/x11-misc/alacarte/Manifest b/x11-misc/alacarte/Manifest new file mode 100644 index 000000000000..6fcf6e22fb17 --- /dev/null +++ b/x11-misc/alacarte/Manifest @@ -0,0 +1,2 @@ +DIST alacarte-3.10.0.tar.xz 181576 SHA256 bdc91981859a5076ae38a213892074e1263629835702920d47f6ee2bb76179f1 SHA512 7ac46fe754c8ddb83856440ebd1c383ef8ec6f8b9601774442613e1a4ccbbc919eed221b4d4555b9dba3af78dbd985fed4320fbeada4eb68f7c088ebee01f564 WHIRLPOOL 231b64749c033c3e45433d743179437f2f41e9c3cfa99beea99e9040b08ed9eb2d06e25e9d7212d41d5a29a32d4f63fc21e6da091a199c4a180505c13a6b04b7 +DIST alacarte-3.11.91.tar.xz 199128 SHA256 d77294f25ac9e4f293530080578d83dc8e014d5b7c6c01d6f9a7f1715719a384 SHA512 b4b5ead4ba0b9742ea0530ecb5362afa970125d29750aaf147be6fd477f238b9c360307ce1df2a56330a69cd9c849a0dde4be44b36bf55377f42e30429411935 WHIRLPOOL 6a6e2f47486c714dd1d35b6814f6a5dabd79799d9d101d7d2e8e74b2cef0d9f028bab104213574fb067d2419f82af3f4c79ad6d59b457237837ce5c65d764b02 diff --git a/x11-misc/alacarte/alacarte-3.10.0.ebuild b/x11-misc/alacarte/alacarte-3.10.0.ebuild new file mode 100644 index 000000000000..09265d02274c --- /dev/null +++ b/x11-misc/alacarte/alacarte-3.10.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +# FIXME: support python3 but installs in a weird location +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" + +inherit gnome2 python-r1 + +DESCRIPTION="Simple GNOME menu editor" +HOMEPAGE="https://git.gnome.org/browse/alacarte" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" +IUSE="" + +COMMON_DEPEND=" + ${PYTHON_DEPS} + dev-python/pygobject:3[${PYTHON_USEDEP}] + >=gnome-base/gnome-menus-3.5.3:3[introspection] +" +RDEPEND="${COMMON_DEPEND} + x11-libs/gdk-pixbuf:2[introspection] + x11-libs/gtk+:3[introspection] +" +DEPEND="${COMMON_DEPEND} + >=dev-util/intltool-0.40.0 + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + gnome2_src_prepare + python_copy_sources +} + +src_configure() { + python_foreach_impl run_in_build_dir gnome2_src_configure +} + +src_compile() { + python_foreach_impl run_in_build_dir gnome2_src_compile +} + +src_test() { + python_foreach_impl run_in_build_dir default +} + +src_install() { + installing() { + gnome2_src_install + # Massage shebang to make python_doscript happy + sed -e 's:#! '"${PYTHON}:#!/usr/bin/python:" \ + -i alacarte || die + python_doscript alacarte + } + python_foreach_impl run_in_build_dir installing +} diff --git a/x11-misc/alacarte/alacarte-3.11.91.ebuild b/x11-misc/alacarte/alacarte-3.11.91.ebuild new file mode 100644 index 000000000000..2d689edd3f37 --- /dev/null +++ b/x11-misc/alacarte/alacarte-3.11.91.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +# FIXME: support python3 but installs in a weird location +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" + +inherit gnome2 python-r1 + +DESCRIPTION="Simple GNOME menu editor" +HOMEPAGE="https://git.gnome.org/browse/alacarte" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" +IUSE="" + +COMMON_DEPEND=" + ${PYTHON_DEPS} + dev-python/pygobject:3[${PYTHON_USEDEP}] + >=gnome-base/gnome-menus-3.5.3:3[introspection] +" +RDEPEND="${COMMON_DEPEND} + x11-libs/gdk-pixbuf:2[introspection] + x11-libs/gtk+:3[introspection] +" +DEPEND="${COMMON_DEPEND} + >=dev-util/intltool-0.40.0 + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + gnome2_src_prepare + python_copy_sources +} + +src_configure() { + python_foreach_impl run_in_build_dir gnome2_src_configure +} + +src_compile() { + python_foreach_impl run_in_build_dir gnome2_src_compile +} + +src_test() { + python_foreach_impl run_in_build_dir default +} + +src_install() { + installing() { + gnome2_src_install + # Massage shebang to make python_doscript happy + sed -e 's:#! '"${PYTHON}:#!/usr/bin/python:" \ + -i alacarte || die + python_doscript alacarte + } + python_foreach_impl run_in_build_dir installing +} diff --git a/x11-misc/alacarte/metadata.xml b/x11-misc/alacarte/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/x11-misc/alacarte/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/x11-misc/alltray/Manifest b/x11-misc/alltray/Manifest new file mode 100644 index 000000000000..913b05b89cfc --- /dev/null +++ b/x11-misc/alltray/Manifest @@ -0,0 +1 @@ +DIST alltray-0.7.5.1dev.tar.gz 481458 SHA256 09dad447b85ecb57debcb423f34381db7f112a010fbc83e4f65b3b31cf416514 SHA512 4cdba8a1a6d6969205387d985fda0cc479006ad009e3e35614569a5214d302b3852504c4d8ed0cf6557e202b941cc004033b4396a7b11e734a93317d70bc3efe WHIRLPOOL 6e9b65540b322a5f6902a204386cd80467b50f593dcb8933e34157e21f4c4f9c3e312e260f32c0fd31c592f9437f10bb754195ab0868592e24fbd941310117ae diff --git a/x11-misc/alltray/alltray-0.7.5.1.ebuild b/x11-misc/alltray/alltray-0.7.5.1.ebuild new file mode 100644 index 000000000000..83ad8c95c954 --- /dev/null +++ b/x11-misc/alltray/alltray-0.7.5.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +VALA_MIN_API_VERSION="0.14" + +inherit autotools vala + +MY_P=${P}dev + +DESCRIPTION="An application which allows any application to be docked into the system notification area" +HOMEPAGE="http://alltray.trausch.us/" +SRC_URI="http://code.launchpad.net/${PN}/trunk/${PV}dev/+download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="dev-libs/glib:2 + gnome-base/libgtop:2 + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm + x11-libs/libwnck:1" +DEPEND="${RDEPEND} + $(vala_depend) + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +DOCS=( AUTHORS ChangeLog HACKING NEWS README ) + +src_prepare() { + sed -i -e 's:-DG.*DISABLE_DEPRECATED::' src/Makefile.{am,in} || die #391101 + + sed -i \ + -e '/Encoding/d' \ + -e '/Categories/s:Application;::' \ + -e '/Icon/s:.png::' \ + data/alltray.desktop{,.in} ||Â die + + vala_src_prepare + sed -i -e '/AC_PATH_PROG/s:valac:${VALAC}:g' configure.ac || die + + eautoreconf +} diff --git a/x11-misc/alltray/files/alltray-0.7.4-include-fixes.patch b/x11-misc/alltray/files/alltray-0.7.4-include-fixes.patch new file mode 100644 index 000000000000..55814f5e70e5 --- /dev/null +++ b/x11-misc/alltray/files/alltray-0.7.4-include-fixes.patch @@ -0,0 +1,30 @@ +--- alltray/src/Application.c ++++ alltray/src/Application.c +@@ -16,6 +16,7 @@ + #include <gdk-pixbuf/gdk-pixdata.h> + #include <config.h> + ++#include "gtop_glue.h" + + #define ALL_TRAY_TYPE_APPLICATION (all_tray_application_get_type ()) + #define ALL_TRAY_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ALL_TRAY_TYPE_APPLICATION, AllTrayApplication)) +--- alltray/src/AttachHelper.c ++++ alltray/src/AttachHelper.c +@@ -16,6 +16,7 @@ + #include <string.h> + #include <gtk/gtk.h> + ++#include "x11_glue.h" + + #define ALL_TRAY_TYPE_ATTACH_HELPER (all_tray_attach_helper_get_type ()) + #define ALL_TRAY_ATTACH_HELPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ALL_TRAY_TYPE_ATTACH_HELPER, AllTrayAttachHelper)) +--- alltray/src/Process.c ++++ alltray/src/Process.c +@@ -16,6 +16,7 @@ + #include <libwnck/libwnck.h> + #include <stdio.h> + ++#include "gtop_glue.h" + + #define ALL_TRAY_TYPE_PROCESS (all_tray_process_get_type ()) + #define ALL_TRAY_PROCESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ALL_TRAY_TYPE_PROCESS, AllTrayProcess)) diff --git a/x11-misc/alltray/metadata.xml b/x11-misc/alltray/metadata.xml new file mode 100644 index 000000000000..2e4a29de1851 --- /dev/null +++ b/x11-misc/alltray/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> +With AllTray you can dock any application into the system tray/notification +area. A high-light feature is that a click on the "close" button will minimize +to system tray. It is written in C using GTK and Xlib. It works well with Gnome, +KDE and XFCE 4.2. + </longdescription> +</pkgmetadata> diff --git a/x11-misc/alock/Manifest b/x11-misc/alock/Manifest new file mode 100644 index 000000000000..c2d8ef0a2a3d --- /dev/null +++ b/x11-misc/alock/Manifest @@ -0,0 +1 @@ +DIST alock-svn-94.tar.bz2 68140 SHA256 37938b56588e0e9bdfdf52097bccd000f992ea725c87cd8c8b3ea4df847e8f26 diff --git a/x11-misc/alock/alock-94.ebuild b/x11-misc/alock/alock-94.ebuild new file mode 100644 index 000000000000..3c362b8c7418 --- /dev/null +++ b/x11-misc/alock/alock-94.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils toolchain-funcs + +DESCRIPTION="locks the local X display until a password is entered" +HOMEPAGE="http://code.google.com/p/alock/ + http://darkshed.net/projects/alock" +SRC_URI="http://alock.googlecode.com/files/alock-svn-${PV}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="imlib pam" + +DEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm + x11-libs/libXrender + x11-libs/libXcursor + imlib? ( media-libs/imlib2[X] ) + pam? ( virtual/pam )" + +S=${WORKDIR}/${PN}-svn-${PV} + +src_prepare() { + epatch "${FILESDIR}"/implicit_pointer_conversion_fix_amd64.patch +} + +src_configure() { + tc-export CC + + ./configure \ + --prefix=/usr \ + --with-all \ + $(use_with pam) \ + $(use_with imlib imlib2) || die +} + +src_compile() { + emake XMLTO=true || die +} + +src_install() { + dobin src/alock || die + doman alock.1 || die + dodoc {CHANGELOG,README,TODO}.txt || die + + insinto /usr/share/alock/xcursors + doins contrib/xcursor-* || die + + insinto /usr/share/alock/bitmaps + doins bitmaps/* || die + + if ! use pam; then + fperms 4755 /usr/bin/alock + fi +} diff --git a/x11-misc/alock/files/implicit_pointer_conversion_fix_amd64.patch b/x11-misc/alock/files/implicit_pointer_conversion_fix_amd64.patch new file mode 100644 index 000000000000..1184ee73a612 --- /dev/null +++ b/x11-misc/alock/files/implicit_pointer_conversion_fix_amd64.patch @@ -0,0 +1,13 @@ +Index: alock-svn-94/src/auth_passwd.c +=================================================================== +--- alock-svn-94.orig/src/auth_passwd.c ++++ alock-svn-94/src/auth_passwd.c +@@ -43,7 +43,7 @@ + \* ---------------------------------------------------------------- */ + + static struct passwd* pwd_entry = NULL; +- ++char * crypt (const char *key, const char *salt); + static int alock_auth_passwd_init(const char* args) { + + errno = 0; diff --git a/x11-misc/alock/metadata.xml b/x11-misc/alock/metadata.xml new file mode 100644 index 000000000000..884db118c2df --- /dev/null +++ b/x11-misc/alock/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <upstream> + <remote-id type="google-code">alock</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/andromeda/Manifest b/x11-misc/andromeda/Manifest new file mode 100644 index 000000000000..a0dca1dfe51c --- /dev/null +++ b/x11-misc/andromeda/Manifest @@ -0,0 +1 @@ +DIST andromeda-0.3.tar.gz 2225274 SHA256 f0fad0017b95a6b2a2c4d253b96ae114fd58a30a9421ed9944f49178915fc078 SHA512 a9600490b68cee92ae2bc0ff9d34d18ca1708806b4e345d49309cabd7156702315123e319542014bb7207c637b931ba64bf9bc403f44be45550c068881fcf80c WHIRLPOOL 815e93556bb72edc82707d5452d87261362cd083654e26ce5f3db8592f121e658759c09ce3352b14340e0a332e5641e14341f7c62a22cf15f2f4218d4026fc8e diff --git a/x11-misc/andromeda/andromeda-0.3.ebuild b/x11-misc/andromeda/andromeda-0.3.ebuild new file mode 100644 index 000000000000..e599c519e7a1 --- /dev/null +++ b/x11-misc/andromeda/andromeda-0.3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-utils + +DESCRIPTION="Qt4-based filemanager" +HOMEPAGE="https://github.com/ABBAPOH/andromeda" +SRC_URI="http://dev.gentoo.org/~yngwin/distfiles/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="pdf" + +RDEPEND=">=dev-qt/qtcore-4.8.0:4 + >=dev-qt/qtdbus-4.8.0:4 + >=dev-qt/qtgui-4.8.0:4 + >=dev-qt/qtopengl-4.8.0:4 + >=dev-qt/qtwebkit-4.8.0:4 + pdf? ( app-text/poppler )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${PN}-${PN} + +DOCS="TODO.txt dist/changes-*" + +src_configure() { + # avoid building manual-only tests + local mycmakeargs=( + -DDISABLE_TESTS=true + $(cmake-utils_use_find_package pdf PopplerQt4) + ) + + cmake-utils_src_configure +} diff --git a/x11-misc/andromeda/metadata.xml b/x11-misc/andromeda/metadata.xml new file mode 100644 index 000000000000..52ac90661a13 --- /dev/null +++ b/x11-misc/andromeda/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>qt</herd> + <upstream> + <remote-id type="github">ABBAPOH/andromeda</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/appmenu-qt/Manifest b/x11-misc/appmenu-qt/Manifest new file mode 100644 index 000000000000..e6d6f5b41ef1 --- /dev/null +++ b/x11-misc/appmenu-qt/Manifest @@ -0,0 +1 @@ +DIST appmenu-qt-0.2.6.tar.bz2 22569 SHA256 21dd0357edeef1b20a5b56c91f1f423fdef65c81d082a22d8fe5761810927ddb diff --git a/x11-misc/appmenu-qt/appmenu-qt-0.2.6.ebuild b/x11-misc/appmenu-qt/appmenu-qt-0.2.6.ebuild new file mode 100644 index 000000000000..e0173d0a8e65 --- /dev/null +++ b/x11-misc/appmenu-qt/appmenu-qt-0.2.6.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit cmake-utils + +DESCRIPTION="Application menu module for Qt" +HOMEPAGE="https://launchpad.net/appmenu-qt" +SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${PN}-${PV}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=dev-qt/qtcore-4.8:4 + >=dev-qt/qtdbus-4.8:4 + >=dev-qt/qtgui-4.8:4 + >=dev-libs/libdbusmenu-qt-0.9.0[qt4(+)]" +RDEPEND="${DEPEND}" + +DOCS=( NEWS README ) diff --git a/x11-misc/appmenu-qt/metadata.xml b/x11-misc/appmenu-qt/metadata.xml new file mode 100644 index 000000000000..0d275ddb5633 --- /dev/null +++ b/x11-misc/appmenu-qt/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>kde</herd> + <upstream> + <remote-id type="launchpad">appmenu-qt</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/apwal/Manifest b/x11-misc/apwal/Manifest new file mode 100644 index 000000000000..f50da71fd193 --- /dev/null +++ b/x11-misc/apwal/Manifest @@ -0,0 +1 @@ +DIST apwal-0.4.5.tar.gz 73999 SHA256 0de64be9b40d853ef1efe69faf99e3e7b9c3b756575ed9f40e16aa4fe74844f3 diff --git a/x11-misc/apwal/apwal-0.4.5-r1.ebuild b/x11-misc/apwal/apwal-0.4.5-r1.ebuild new file mode 100644 index 000000000000..3e59f37bc418 --- /dev/null +++ b/x11-misc/apwal/apwal-0.4.5-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="A simple application launcher and combined editor" +HOMEPAGE="http://apwal.free.fr/" +SRC_URI="http://apwal.free.fr/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="x11-libs/gtk+:2 + x11-libs/gdk-pixbuf + dev-libs/libxml2 + dev-libs/glib" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${PN} + +pkg_setup() { + tc-export CC +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc ABOUT Changelog FAQ README || die +} diff --git a/x11-misc/apwal/files/apwal-0.4.5-makefile.patch b/x11-misc/apwal/files/apwal-0.4.5-makefile.patch new file mode 100644 index 000000000000..462ba882d8e3 --- /dev/null +++ b/x11-misc/apwal/files/apwal-0.4.5-makefile.patch @@ -0,0 +1,67 @@ +* Fix parallel build +* Respect CC, CFLAGS, LDFLAGS #333969 +* don't strip binaries +* fix install paths + +--- Makefile ++++ Makefile +@@ -1,11 +1,8 @@ + + include Makefile.inc + +-all: +- (cd src && $(MAKE) $@) +- +-install: +- (cd src && $(MAKE) $@) ++all install: ++ $(MAKE) -C src $@ + + clean: + (cd src && $(MAKE) $@) +--- src/Makefile ++++ src/Makefile +@@ -5,8 +5,8 @@ + CFLAGS=-g -Wall -Werror `pkg-config --cflags gtk+-2.0 gthread-2.0` -DGTK_DISABLE_DEPRECATED -DAPWAL_DEBUG + LDFLAGS=`pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs` + else +-CFLAGS=-O2 `pkg-config --cflags gtk+-2.0 gthread-2.0` +-LDFLAGS=-O2 `pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs` ++CPPFLAGS=`pkg-config --cflags gtk+-2.0 gthread-2.0` ++LIBS=`pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs` + endif + + OBJS=main.o app.o launcher.o editor.o property.o \ +@@ -24,25 +24,24 @@ + ifdef APWAL_DEBUG + all: checktraceformat apwal tags + apwal: $(OBJS) +- gcc -o $@ $^ $(LDFLAGS) ++ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) + else + all: apwal + apwal: $(OBJS) +- gcc -o $@ $^ $(LDFLAGS) +- strip $@ ++ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) + endif + + install: all +- cp apwal /usr/local/bin/ +- ln -sf /usr/local/bin/apwal /usr/local/bin/apwal-editor ++ install -D -m 755 apwal $(DESTDIR)/usr/bin/apwal ++ ln -sf apwal $(DESTDIR)/usr/bin/apwal-editor + + .c.o: $(INCS) +- gcc -c $< -o $*.o $(CFLAGS) ++ $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $*.o + + xmlrc.o: xmlrc.c $(INCS) +- gcc -c $< -o $*.o $(CFLAGS) `xml2-config --cflags` ++ $(CC) $(CPPFLAGS) $(CFLAGS) `xml2-config --cflags` -c $< -o $*.o + about.o: about.c $(INCS) ../Makefile.inc +- gcc -c $< -o $*.o $(CFLAGS) -DAPWAL_VERSION=\"$(VERS)\" ++ $(CC) $(CPPFLAGS) -DAPWAL_VERSION=\"$(VERS)\" $(CFLAGS) -c $< -o $*.o + + gtkstuff.o: pixbufinline.inc + xmlrc.o: xmlrcinline.inc diff --git a/x11-misc/apwal/metadata.xml b/x11-misc/apwal/metadata.xml new file mode 100644 index 000000000000..40838bc36783 --- /dev/null +++ b/x11-misc/apwal/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>desktop-misc</herd> +</pkgmetadata> diff --git a/x11-misc/arandr/Manifest b/x11-misc/arandr/Manifest new file mode 100644 index 000000000000..6865c80dc0a8 --- /dev/null +++ b/x11-misc/arandr/Manifest @@ -0,0 +1,2 @@ +DIST arandr-0.1.7.1.tar.gz 82118 SHA256 ab73aa90d05d48b95a01afdad37b7c21a2cdf4af98f7d78b2502b819382748da SHA512 1e3b8ec0d98d38515a159c7695abefd7451a3fa6b7d43641766c997aab63152dfa76c2d9208ba2848ce588dd033a8e85ae31b97acdd4aa5e450fd87725cc21ce WHIRLPOOL 9f9844cb0cb14fcba17767a1b50270843c70859253d96c23d3d47c65b64d5740fcdbad888d97f60fd1ae5f13245098d11c6b9552a221938c8b3b183146ffdf4c +DIST arandr-0.1.8.tar.gz 86930 SHA256 6d8ec18e2f683818f420502516f7ece6c377a1903eab1de781152b585725a734 SHA512 3038677d92596aa63233ecd6fa8c1cb0d3522bc8aa69912aa79be900059c37bdda14efe9c17dc16a4c5858ebeeee7f62a55156b6e47e0715f1a341e8ad3c4f11 WHIRLPOOL 91f4810e732289b01dbaa9173a684d7c4c338a78a4b26d0314da99abc491adf30da7067c8657ac024c61cdc8d7c018c120c51bd104ae182b50761f33b6891e6a diff --git a/x11-misc/arandr/arandr-0.1.7.1.ebuild b/x11-misc/arandr/arandr-0.1.7.1.ebuild new file mode 100644 index 000000000000..190e6db25e98 --- /dev/null +++ b/x11-misc/arandr/arandr-0.1.7.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils distutils-r1 + +DESCRIPTION="A simple visual frontend for XRandR 1.2/1.3" +HOMEPAGE="http://christian.amsuess.com/tools/arandr/" +SRC_URI="http://christian.amsuess.com/tools/${PN}/files/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-python/pygtk-2[${PYTHON_USEDEP}] + x11-apps/xrandr" +DEPEND=">=dev-python/docutils-0.6[${PYTHON_USEDEP}]" + +src_prepare() { + local i p + # simulate gettext behavior: + # LINGUAS unset => install all + # LINGUAS="" => install none + # LINGUAS="de fr" => install de and fr + if [[ -n "${LINGUAS+x}" ]] ; then # if LINGUAS is set + for i in $(cd "${S}"/data/po ; for p in *.po ; do echo ${p%.po} ; done) ; do # for every supported language + if ! has ${i} ${LINGUAS} ; then # if language is disabled + rm data/po/${i}.po || die + fi + done + fi + distutils-r1_src_prepare +} diff --git a/x11-misc/arandr/arandr-0.1.8.ebuild b/x11-misc/arandr/arandr-0.1.8.ebuild new file mode 100644 index 000000000000..c7da8ab744b6 --- /dev/null +++ b/x11-misc/arandr/arandr-0.1.8.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils distutils-r1 + +DESCRIPTION="A simple visual frontend for XRandR 1.2/1.3" +HOMEPAGE="http://christian.amsuess.com/tools/arandr/" +SRC_URI="http://christian.amsuess.com/tools/${PN}/files/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-python/pygtk-2[${PYTHON_USEDEP}] + x11-apps/xrandr" +DEPEND=">=dev-python/docutils-0.6[${PYTHON_USEDEP}]" + +src_prepare() { + local i p + # simulate gettext behavior: + # LINGUAS unset => install all + # LINGUAS="" => install none + # LINGUAS="de fr" => install de and fr + if [[ -n "${LINGUAS+x}" ]] ; then # if LINGUAS is set + for i in $(cd "${S}"/data/po ; for p in *.po ; do echo ${p%.po} ; done) ; do # for every supported language + if ! has ${i} ${LINGUAS} ; then # if language is disabled + rm data/po/${i}.po || die + fi + done + fi + distutils-r1_src_prepare +} diff --git a/x11-misc/arandr/metadata.xml b/x11-misc/arandr/metadata.xml new file mode 100644 index 000000000000..540f810e069d --- /dev/null +++ b/x11-misc/arandr/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> +</pkgmetadata> diff --git a/x11-misc/autocutsel/Manifest b/x11-misc/autocutsel/Manifest new file mode 100644 index 000000000000..6ec09b7d7079 --- /dev/null +++ b/x11-misc/autocutsel/Manifest @@ -0,0 +1 @@ +DIST autocutsel-0.9.0.tar.gz 297595 RMD160 d6bfd0cfb53cb15dbd10b4bc989f6ebdc20511e9 SHA1 7b15210b17a1499d2deba2261993373d3be14bb2 SHA256 bef0ebc2dc2c92fc29f00867771229fd8391e6028bbb8bca9d809e827119e342 diff --git a/x11-misc/autocutsel/autocutsel-0.9.0.ebuild b/x11-misc/autocutsel/autocutsel-0.9.0.ebuild new file mode 100644 index 000000000000..c65a6a47b613 --- /dev/null +++ b/x11-misc/autocutsel/autocutsel-0.9.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Synchronise the two copy/paste buffers mainly used by X applications" +HOMEPAGE="http://www.nongnu.org/autocutsel/" +SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz" +IUSE="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" + +RDEPEND="x11-libs/libX11 + x11-libs/libXmu + x11-libs/libXt + x11-libs/libXaw + x11-libs/libXext" +DEPEND="${RDEPEND} + x11-proto/xproto" + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + dodoc AUTHORS ChangeLog NEWS README TODO +} diff --git a/x11-misc/autocutsel/metadata.xml b/x11-misc/autocutsel/metadata.xml new file mode 100644 index 000000000000..eafac49a2eac --- /dev/null +++ b/x11-misc/autocutsel/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <longdescription>autocutsel synchronizes the two copy/paste buffers mainly used by X applications. It unifies "clipboards" between VNC servers and Windows.</longdescription> +</pkgmetadata> diff --git a/x11-misc/basqet/Manifest b/x11-misc/basqet/Manifest new file mode 100644 index 000000000000..259656427824 --- /dev/null +++ b/x11-misc/basqet/Manifest @@ -0,0 +1,2 @@ +DIST basqet_0.1.4-src.tgz 153422 SHA256 ad8187510fcc8c211e049053c0c10eeb4a3719856c17b1ecd8d0501406e4c967 +DIST basqet_0.2.0-src.tgz 471700 SHA256 46a66a61af82b57c5fc6be40565837dab785f1dbb375656cf207ef08eb09f8a2 diff --git a/x11-misc/basqet/basqet-0.1.4.ebuild b/x11-misc/basqet/basqet-0.1.4.ebuild new file mode 100644 index 000000000000..c541946b9ce1 --- /dev/null +++ b/x11-misc/basqet/basqet-0.1.4.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +inherit eutils qt4-r2 + +DESCRIPTION="Keep your notes, pictures, ideas, and information in Baskets" +HOMEPAGE="http://code.google.com/p/basqet/" +SRC_URI="http://basqet.googlecode.com/files/${PN}_${PV}-src.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-qt/qtgui:4 + dev-qt/qtxmlpatterns:4" +RDEPEND="${DEPEND}" + +src_prepare() { + qt4-r2_src_prepare + + sed -i 's:PREFIX = /usr/local:PREFIX = /usr:' ${PN}.pro || die +} diff --git a/x11-misc/basqet/basqet-0.2.0.ebuild b/x11-misc/basqet/basqet-0.2.0.ebuild new file mode 100644 index 000000000000..ab66136dba7e --- /dev/null +++ b/x11-misc/basqet/basqet-0.2.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit qt4-r2 + +DESCRIPTION="Keep your notes, pictures, ideas, and information in Baskets" +HOMEPAGE="http://code.google.com/p/basqet/" +SRC_URI="http://basqet.googlecode.com/files/${PN}_${PV}-src.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-qt/qtcore:4 + dev-qt/qtgui:4" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/release_${PV} + +PATCHES=( "${FILESDIR}/${P}-desktop.patch" ) + +src_prepare() { + qt4-r2_src_prepare + + sed -i 's:PREFIX = /usr/local:PREFIX = /usr:' ${PN}.pro || die +} diff --git a/x11-misc/basqet/files/basqet-0.2.0-desktop.patch b/x11-misc/basqet/files/basqet-0.2.0-desktop.patch new file mode 100644 index 000000000000..161ad1d8fd3c --- /dev/null +++ b/x11-misc/basqet/files/basqet-0.2.0-desktop.patch @@ -0,0 +1,14 @@ +--- basqet.desktop ++++ basqet.desktop +@@ -1,9 +1,9 @@ + [Desktop Entry] +-Version=0.2.0 ++Version=1.0 + Terminal=false + TryExec=basqet + Exec=basqet +-Icon=basqet.png ++Icon=basqet + Type=Application + Categories=Office;WordProcessor; + StartupNotify=false diff --git a/x11-misc/basqet/metadata.xml b/x11-misc/basqet/metadata.xml new file mode 100644 index 000000000000..7aa61dde7f6e --- /dev/null +++ b/x11-misc/basqet/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>qt</herd> + <upstream> + <remote-id type="google-code">basqet</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bbacpi/Manifest b/x11-misc/bbacpi/Manifest new file mode 100644 index 000000000000..4c01aebb1403 --- /dev/null +++ b/x11-misc/bbacpi/Manifest @@ -0,0 +1 @@ +DIST bbacpi-0.1.5.tar.gz 241565 SHA256 e3845b961f424461cd956b24b22613171b65f8fa1e302ad1ef713d22c9273e51 SHA512 4491bf0352a376ada9006f3306c377d5c8b6fafcad8d214f64f8a3cd52e1e8b8d02b084888d58d8a1389a624631f6fc3b6f98aa33cd89b06e1ccd0802b5a540a WHIRLPOOL 54207dd972e88e12a84179fc334cad721965821ee228cb3afe8af1ac17b72c13d1e4e6ecc1f559d8d5c6c5f0e8e98854c4ce5409cb7791e67d4aecfac92cd57f diff --git a/x11-misc/bbacpi/bbacpi-0.1.5-r1.ebuild b/x11-misc/bbacpi/bbacpi-0.1.5-r1.ebuild new file mode 100644 index 000000000000..b609ece180ef --- /dev/null +++ b/x11-misc/bbacpi/bbacpi-0.1.5-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils + +DESCRIPTION="ACPI monitor for X11" +HOMEPAGE="http://bbacpi.sourceforge.net" +SRC_URI="mirror://sourceforge/bbacpi/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 x86" +IUSE="" + +DEPEND="x11-libs/gtk+:2 + media-libs/imlib + x11-misc/xdialog + sys-power/acpi + sys-power/acpid" +RDEPEND="${DEPEND} + media-fonts/font-adobe-100dpi" + +src_prepare() { + epatch "${FILESDIR}"/${P}-noextraquals.diff +} + +src_install() { + einstall || die + dodoc AUTHORS ChangeLog README || die +} diff --git a/x11-misc/bbacpi/bbacpi-0.1.5-r2.ebuild b/x11-misc/bbacpi/bbacpi-0.1.5-r2.ebuild new file mode 100644 index 000000000000..626f304f5eb5 --- /dev/null +++ b/x11-misc/bbacpi/bbacpi-0.1.5-r2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="ACPI monitor for X11" +HOMEPAGE="http://bbacpi.sourceforge.net" +SRC_URI="mirror://sourceforge/bbacpi/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + media-libs/imlib + sys-power/acpi + sys-power/acpid + x11-libs/libX11 + x11-misc/xdialog +" +RDEPEND=" + ${DEPEND} + media-fonts/font-adobe-100dpi +" + +DOCS=( AUTHORS ChangeLog README ) + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-noextraquals.diff \ + "${FILESDIR}"/${P}-overflows.diff + eautoreconf +} diff --git a/x11-misc/bbacpi/files/bbacpi-0.1.5-noextraquals.diff b/x11-misc/bbacpi/files/bbacpi-0.1.5-noextraquals.diff new file mode 100644 index 000000000000..7da903cbd4ca --- /dev/null +++ b/x11-misc/bbacpi/files/bbacpi-0.1.5-noextraquals.diff @@ -0,0 +1,13 @@ +--- a/resource.hh ++++ b/resource.hh +@@ -126,8 +126,8 @@ + { + + public: +- Resource::Resource(ToolWindow *); +- Resource::~Resource(void); ++ Resource(ToolWindow *); ++ ~Resource(void); + + struct FRAME frame; + struct LABEL label; diff --git a/x11-misc/bbacpi/files/bbacpi-0.1.5-overflows.diff b/x11-misc/bbacpi/files/bbacpi-0.1.5-overflows.diff new file mode 100644 index 000000000000..df961e607e4f --- /dev/null +++ b/x11-misc/bbacpi/files/bbacpi-0.1.5-overflows.diff @@ -0,0 +1,105 @@ +Fixes buffer overflows and --as-needed issues + +https://bugs.gentoo.org/show_bug.cgi?id=338936 + +Patch written by Kevin Pyle <gentoo.8eaf7cd8e5128d8191fe@spamgourmet.com> +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,4 +1,4 @@ +-AM_CPPFLAGS = @CPPFLAGS@ @INTERLACE@ \ ++AM_CPPFLAGS = @INTERLACE@ \ + -DGLOBAL_BB=\"$(datadir)/bbtools/bbacpi.bb\" \ + -DGLOBAL_NOBB=\"$(datadir)/bbtools/bbacpi.nobb\" \ + -DGLOBAL_DATA=\"$(datadir)/bbtools\" +--- a/bbacpi.cc ++++ b/bbacpi.cc +@@ -167,7 +167,7 @@ bool CheckLoad::checkbatteryfile (char* name, char* device) + if (ret = (fp = fopen(name, "r"))) { + char buffer[100]; + char present[20]; +- fgets(buffer,128,fp); ++ fgets(buffer, sizeof(buffer),fp); + sscanf(buffer,"present: %s", present); + if (strncmp(present, "yes", 3) != 0) { + fprintf(stderr, "Device %s not present.\n", device); +@@ -195,7 +195,7 @@ void CheckLoad::ReadStaticInfo() + { + /* Read data in any order */ + found = 0; +- while (found < 11 && (fgets(buffer, 63, fp) != NULL)) { ++ while (found < 11 && (fgets(buffer, sizeof(buffer), fp) != NULL)) { + /* Present */ + if (strncmp(buffer, "present:", 7) == 0 + || strncmp(buffer, "Present:", 7) == 0) { +@@ -277,7 +277,7 @@ void CheckLoad::ReadStaticInfo() + { + /* Read data in any order */ + found = 0; +- while (found < 11 && (fgets(buffer, 63, fp) != NULL)) { ++ while (found < 11 && (fgets(buffer, sizeof(buffer), fp) != NULL)) { + /* Present */ + if (strncmp(buffer, "present:", 7) == 0 + || strncmp(buffer, "Present:", 7) == 0) { +@@ -361,7 +361,7 @@ void CheckLoad::ReadStaticInfo() + if ((fp = fopen(names.temptrip, "r"))) + { + found = 0; +- while (found < 2 && (fgets(buffer,128,fp) != NULL)) { ++ while (found < 2 && (fgets(buffer, sizeof(buffer),fp) != NULL)) { + /* Critical */ + if (strncmp(buffer, "critical", 8) == 0 + || strncmp(buffer, "Critical", 8) == 0) { +@@ -425,7 +425,7 @@ void CheckLoad::Reconfigure() + if (file_status.st_mtime != last_mtime) + { + found = 0; +- while (found < 4 && (fgets(buffer, 63, fp) != NULL)) { ++ while (found < 4 && (fgets(buffer, sizeof(buffer), fp) != NULL)) { + /* Charging state */ + if (strncmp(buffer, "charging state:", 15) == 0 + || strncmp(buffer, "Charging State:", 15) == 0) { +@@ -463,7 +463,7 @@ void CheckLoad::Reconfigure() + if (file_status.st_mtime != last_mtime) + { + found = 0; +- while (found < 4 && (fgets(buffer, 63, fp) != NULL)) { ++ while (found < 4 && (fgets(buffer, sizeof(buffer), fp) != NULL)) { + /* Charging state */ + if (strncmp(buffer, "charging state:", 15) == 0 + || strncmp(buffer, "Charging State:", 15) == 0) { +@@ -497,7 +497,7 @@ void CheckLoad::Reconfigure() + if ((fp = fopen(names.adapter, "r"))) + { + found = 0; +- while (found < 1 && (fgets(buffer, 63,fp) != NULL)) { ++ while (found < 1 && (fgets(buffer, sizeof(buffer),fp) != NULL)) { + if (strncmp(buffer, "state:", 6) == 0 + || strncmp(buffer, "State:", 6) == 0) { + sscanf(buffer+offset,"%s", adapter.state); +@@ -511,7 +511,7 @@ void CheckLoad::Reconfigure() + if ((fp = fopen(names.temperature, "r"))) + { + found = 0; +- while (found < 1 && (fgets(buffer, 63,fp) != NULL)) { ++ while (found < 1 && (fgets(buffer, sizeof(buffer),fp) != NULL)) { + if (strncmp(buffer, "temperature:", 12) == 0 + || strncmp(buffer, "Temperature:", 12) == 0) { + sscanf(buffer+offset,"%u", &temperature.celcius); +--- a/configure.in ++++ b/configure.in +@@ -89,12 +89,12 @@ AC_PATH_XTRA + + CFLAGS="$CFLAGS $X_CFLAGS" + CXXFLAGS="$CXXFLAGS $X_CFLAGS" +-LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS" ++LIBS="$LIBS $X_LIBS $X_PRE_LIBS" + dnl Checks for X libraries. +-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11", ++AC_CHECK_LIB(X11, XOpenDisplay,, + AC_MSG_ERROR(XOpenDisplay not found in -lX11)) + +-LDFLAGS="$LDFLAGS $X_EXTRA_LIBS" ++LIBS="$LIBS $X_EXTRA_LIBS" + + dnl Check for Imlib + AC_MSG_CHECKING([for Imlib]) diff --git a/x11-misc/bbacpi/metadata.xml b/x11-misc/bbacpi/metadata.xml new file mode 100644 index 000000000000..42fe8839ccee --- /dev/null +++ b/x11-misc/bbacpi/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <longdescription lang="en"> +Utility for viewing ACPI data via X11 +</longdescription> + <upstream> + <remote-id type="sourceforge">bbacpi</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bbappconf/Manifest b/x11-misc/bbappconf/Manifest new file mode 100644 index 000000000000..28ee91de3609 --- /dev/null +++ b/x11-misc/bbappconf/Manifest @@ -0,0 +1 @@ +DIST bbappconf-0.0.2.tar.gz 80107 SHA256 90f02de8f9b507e53232c77f179382d1734fa63c2978070c4582dea575434705 SHA512 910ebaff204b3bbed88296b077a50fd061e9dee74703991f8f43079aae736a65f98acafe8b437b6d3f7e021173a5f09a8bd98549b8a63d12718d8f2389284117 WHIRLPOOL 72bfbc597289aaada28c91041f1685a9faac605e3af0635a135f5e73e57f86955a7915366646dd386a4a98b96d18ceab50c70be6e2883a364ece2bc0b7968408 diff --git a/x11-misc/bbappconf/bbappconf-0.0.2.ebuild b/x11-misc/bbappconf/bbappconf-0.0.2.ebuild new file mode 100644 index 000000000000..441d5b86c6ef --- /dev/null +++ b/x11-misc/bbappconf/bbappconf-0.0.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +DESCRIPTION="utility that allows you to specify window properties in blackbox" +HOMEPAGE="http://sourceforge.net/projects/bbtools" +SRC_URI="mirror://sourceforge/bbtools/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc sparc x86 ~x86-fbsd" +IUSE="debug" + +DOCS=( AUTHORS BUGS ChangeLog NEWS README TODO data/README.bbappconf ) + +RDEPEND="x11-libs/libX11" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-fix-sigsegv.diff \ + "${FILESDIR}"/${P}-asneeded.patch \ + "${FILESDIR}"/${P}-docs.patch + eautoreconf +} + +src_configure() { + econf $(use_enable debug) +} diff --git a/x11-misc/bbappconf/files/bbappconf-0.0.2-asneeded.patch b/x11-misc/bbappconf/files/bbappconf-0.0.2-asneeded.patch new file mode 100644 index 000000000000..1a2008218c69 --- /dev/null +++ b/x11-misc/bbappconf/files/bbappconf-0.0.2-asneeded.patch @@ -0,0 +1,89 @@ +Fixing build with --as-needed + +https://bugs.gentoo.org/show_bug.cgi?id=248548 + +--- configure.in ++++ configure.in +@@ -5,38 +5,25 @@ + + AC_PREFIX_DEFAULT(/usr/local) + +- +- + AC_CHECK_PROGS(regex_cmd, sed) + if test x$regex_cmd = "x"; then + AC_MSG_ERROR([error. sed is required to build the default bbtoolsrc file.]) + fi + +- +-dnl get the debug values right +-AC_DEFUN(AC_SET_DEBUG, +-[ +- test "$CFLAGS" = "" && CFLAGS="-g -Wall -DDEBUG" +- test "$CXXFLAGS" = "" && CXXFLAGS="-g -Wall -DDEBUG" +- test "$LDFLAGS" = "" && LDFLAGS="" +-]) +- +-AC_DEFUN(AC_SET_NODEBUG, +-[ +- test "$CFLAGS" = "" && CFLAGS="-O2 -Wall" +- test "$CXXFLAGS" = "" && CXXFLAGS="-O2 -Wall" +- test "$LDFLAGS" = "" && LDFLAGS="-s" +-]) +- +- ++dnl Check for debug ++DEBUG="" ++AC_MSG_CHECKING([whether to enable debug code]) + AC_ARG_ENABLE(debug,[ --enable-debug create debugging code [default=no]], +-[ +-if test $enableval = "no"; +- then AC_SET_NODEBUG +- else AC_SET_DEBUG +-fi +-], +-AC_SET_NODEBUG) ++ if test x$enableval = "xyes"; then ++ AC_MSG_RESULT([yes]) ++ DEBUG="-DDEBUG" ++ else ++ AC_MSG_RESULT([no]) ++ fi, ++ AC_MSG_RESULT([no]) ++ DEBUG="" ++) ++AC_SUBST(DEBUG) + + dnl Check for Interlacing + INTERLACE="" +@@ -69,15 +56,8 @@ + AC_PATH_X + AC_PATH_XTRA + +-CFLAGS="$CFLAGS $X_CFLAGS" +-CXXFLAGS="$CXXFLAGS $X_CFLAGS" +-LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS" +- + dnl Checks for X libraries. +-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11", +- AC_MSG_ERROR(XOpenDisplay not found in -lX11)) +- +-LDFLAGS="$LDFLAGS $X_EXTRA_LIBS" ++AC_CHECK_LIB(X11, XOpenDisplay,,AC_MSG_ERROR(XOpenDisplay not found in -lX11)) + + dnl Checks for header files. + AC_HEADER_STDC +--- Makefile.am ++++ Makefile.am +@@ -1,4 +1,4 @@ +-CPPFLAGS = @CPPFLAGS@ @INTERLACE@ \ ++AM_CPPFLAGS = @DEBUG@ @INTERLACE@ \ + -DGLOBAL_BB=\"$(datadir)/bbtools/bbappconf.bb\" \ + -DGLOBAL_NOBB=\"$(datadir)/bbtools/bbappconf.nobb\" + +@@ -18,4 +18,4 @@ + NETInterface.cc NETInterface.hh \ + blackboxstyle.hh + EXTRA_DIST = BUGS TODO +-bbappconf_LDADD = @X_LIBS@ ++bbappconf_LDADD = @X_PRE_LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ diff --git a/x11-misc/bbappconf/files/bbappconf-0.0.2-docs.patch b/x11-misc/bbappconf/files/bbappconf-0.0.2-docs.patch new file mode 100644 index 000000000000..b92e92faae73 --- /dev/null +++ b/x11-misc/bbappconf/files/bbappconf-0.0.2-docs.patch @@ -0,0 +1,14 @@ +Don't install README to /usr/share/${PN} + +--- data/Makefile.am ++++ data/Makefile.am +@@ -1,8 +1,7 @@ + configdir = $(datadir)/bbtools + + config_DATA = bbappconf.bb \ +- bbappconf.nobb \ +- README.bbappconf ++ bbappconf.nobb + + EXTRA_DIST = $(config_DATA) + diff --git a/x11-misc/bbappconf/files/bbappconf-0.0.2-fix-sigsegv.diff b/x11-misc/bbappconf/files/bbappconf-0.0.2-fix-sigsegv.diff new file mode 100644 index 000000000000..178677389faf --- /dev/null +++ b/x11-misc/bbappconf/files/bbappconf-0.0.2-fix-sigsegv.diff @@ -0,0 +1,18 @@ +Files bbappconf-0.0.2.orig/.BaseDisplay.cc.swp and bbappconf-0.0.2/.BaseDisplay.cc.swp differ +Files bbappconf-0.0.2.orig/.resource.cc.swp and bbappconf-0.0.2/.resource.cc.swp differ +diff -urN bbappconf-0.0.2.orig/resource.cc bbappconf-0.0.2/resource.cc +--- bbappconf-0.0.2.orig/resource.cc 2005-01-19 09:49:19.000000000 -0500 ++++ bbappconf-0.0.2/resource.cc 2005-01-19 10:09:42.530236696 -0500 +@@ -19,10 +19,12 @@ + // (See the included file COPYING / GPL-2.0) + // + ++#include <cstdlib> + #include "resource.hh" + #include "blackboxstyle.hh" + + Resource::Resource(ToolWindow *toolwindow): BaseResource(toolwindow) { ++ frame.font = NULL; + Load(); + } + diff --git a/x11-misc/bbappconf/metadata.xml b/x11-misc/bbappconf/metadata.xml new file mode 100644 index 000000000000..651c7b4f59f9 --- /dev/null +++ b/x11-misc/bbappconf/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + bbappconf is a utility that allows you to specify window properties + in Blackbox. + </longdescription> + <upstream> + <remote-id type="sourceforge">bbtools</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bbcd/Manifest b/x11-misc/bbcd/Manifest new file mode 100644 index 000000000000..157ac09505da --- /dev/null +++ b/x11-misc/bbcd/Manifest @@ -0,0 +1 @@ +DIST bbcd-0.3.1.tar.gz 74853 SHA256 30a63b349d6eb6dd0018e5d76e8f1f97fdde60798f9dfec210662a47e65a8875 diff --git a/x11-misc/bbcd/bbcd-0.3.1-r1.ebuild b/x11-misc/bbcd/bbcd-0.3.1-r1.ebuild new file mode 100644 index 000000000000..13523fdf6036 --- /dev/null +++ b/x11-misc/bbcd/bbcd-0.3.1-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils + +DESCRIPTION="Basic CD Player for blackbox wm" +HOMEPAGE="http://tranber1.free.fr/bbcd.html" +SRC_URI="http://tranber1.free.fr/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="media-libs/libcdaudio + x11-libs/libX11" + +src_prepare() { + epatch "${FILESDIR}"/${P}_${PV}a.diff + epatch "${FILESDIR}"/${P}-gcc3.3.patch + epatch "${FILESDIR}"/${P}-gcc4.3.patch +} + +src_install () { + emake DESTDIR="${D}" install + rm -rf "${D}"/usr/doc || die + dodoc AUTHORS BUGS ChangeLog NEWS README +} diff --git a/x11-misc/bbcd/files/bbcd-0.3.1-gcc3.3.patch b/x11-misc/bbcd/files/bbcd-0.3.1-gcc3.3.patch new file mode 100644 index 000000000000..906dabf616ca --- /dev/null +++ b/x11-misc/bbcd/files/bbcd-0.3.1-gcc3.3.patch @@ -0,0 +1,20 @@ +--- bbcd-0.3.1/Color.cc.org 2003-12-07 14:55:51.791299707 +0100 ++++ bbcd-0.3.1/Color.cc 2003-12-07 14:56:07.724194970 +0100 +@@ -32,6 +32,7 @@ + //#include <stdio.h> + //} + #include <iostream> ++#include <assert.h> + + + BColor::ColorCache BColor::colorcache; +--- bbcd-0.3.1/Texture.cc.org 2003-12-07 14:55:57.382507797 +0100 ++++ bbcd-0.3.1/Texture.cc 2003-12-07 14:56:41.924228114 +0100 +@@ -37,6 +37,7 @@ + #include "Texture.hh" + //#include "BaseDisplay.hh" + #include "Image.hh" ++#include <assert.h> + //#include "Screen.hh" + //#include "blackbox.hh" + diff --git a/x11-misc/bbcd/files/bbcd-0.3.1-gcc4.3.patch b/x11-misc/bbcd/files/bbcd-0.3.1-gcc4.3.patch new file mode 100644 index 000000000000..90c2d4ab8d8e --- /dev/null +++ b/x11-misc/bbcd/files/bbcd-0.3.1-gcc4.3.patch @@ -0,0 +1,11 @@ +Add header to be compatible with gcc-4.3 and glibc-2.8. +--- bbcd-0.3.1/Image.cc ++++ bbcd-0.3.1/Image.cc +@@ -29,6 +29,7 @@ + //# include <stdio.h> + //#endif // HAVE_STDIO_H + #include <iostream> ++#include <cstring> + + #include <algorithm> + using std::max; diff --git a/x11-misc/bbcd/files/bbcd-0.3.1_0.3.1a.diff b/x11-misc/bbcd/files/bbcd-0.3.1_0.3.1a.diff new file mode 100644 index 000000000000..75db91941727 --- /dev/null +++ b/x11-misc/bbcd/files/bbcd-0.3.1_0.3.1a.diff @@ -0,0 +1,41 @@ +diff -urN bbcd-0.3.1/CD_Ctrl.cc bbcd-0.3.2/CD_Ctrl.cc +--- bbcd-0.3.1/CD_Ctrl.cc Sun Jun 23 18:35:27 2002 ++++ bbcd-0.3.2/CD_Ctrl.cc Mon Feb 3 09:29:00 2003 +@@ -116,7 +116,7 @@ + cd_resume(getCdFd()); + return di.disc_current_track; + } +- if(di.disc_mode == CDAUDIO_COMPLETED) { ++ if(di.disc_mode == CDAUDIO_COMPLETED || di.disc_mode == CDAUDIO_NOSTATUS) { + cd_play(getCdFd(), di.disc_first_track); + return di.disc_first_track; + } +Binary files bbcd-0.3.1/test_cd_ctrl and bbcd-0.3.2/test_cd_ctrl differ +diff -urN bbcd-0.3.1/test_cd_ctrl.cc bbcd-0.3.2/test_cd_ctrl.cc +--- bbcd-0.3.1/test_cd_ctrl.cc Thu Jun 27 22:52:36 2002 ++++ bbcd-0.3.2/test_cd_ctrl.cc Mon Feb 3 09:19:42 2003 +@@ -88,10 +88,20 @@ + + CD_Controler cd(deviceName); + if(info) { +- std::cout << "Drive status: \n"; +- std::cout << "Disc present ? " << (cd.isDiscPresent()?"yes":"no") << "\n"; +- std::cout << "Is drive playing ? " << (cd.isPlaying()?"yes":"no") << "\n" +- << "Is drive paused ? " << (cd.isPaused()?"yes":"no") << "\n"; ++ std::cout << "Drive status: \n" ++ << "Disc present? " << (cd.isDiscPresent()?"yes":"no") << "\n" ++ << "Is drive playing? " << (cd.isPlaying()?"yes":"no") << "\n" ++ << "Is drive paused? " << (cd.isPaused()?"yes":"no") << "\n" ++ << "Audio status: "; ++ switch(cd.getAudioStatus()) { ++ case CD_Controler::Invalid: std::cout<<"Invalid"; break; ++ case CD_Controler::Play: std::cout<<"Play"; break; ++ case CD_Controler::Paused: std::cout<<"Paused"; break; ++ case CD_Controler::Completed: std::cout<<"Completed"; break; ++ case CD_Controler::Error: std::cout<<"Error"; break; ++ case CD_Controler::NoStatus: std::cout<<"No Status"; break; ++ } ++ std::cout<<std::endl; + } + + if(pause) { diff --git a/x11-misc/bbcd/metadata.xml b/x11-misc/bbcd/metadata.xml new file mode 100644 index 000000000000..36762631649d --- /dev/null +++ b/x11-misc/bbcd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer><email>maintainer-needed@gentoo.org</email></maintainer> + <longdescription> + Basic CD Player app for Blackbox. + </longdescription> +</pkgmetadata> diff --git a/x11-misc/bbdate/Manifest b/x11-misc/bbdate/Manifest new file mode 100644 index 000000000000..43e85e9026dc --- /dev/null +++ b/x11-misc/bbdate/Manifest @@ -0,0 +1 @@ +DIST bbdate-0.2.4.tar.gz 60644 SHA256 a7957e8b8aa27b7d15d05ba19011311693d4ffd3bb53f023d1f2346f142bb802 SHA512 90c51249a6ad0b90aea640b1f94cee4e9feb3ca46e4407ab3be645f92a32e7c3f1879c58a236c487dd7bfb24aae1f6a03da0a535c9218fbcbcdbd1e6f043d041 WHIRLPOOL 29f3c9879769248f283969e17084e04262438fdaeb1a2fcb0a8132394796d775a4fc14362c9d127987d81b48d2e50ea0d928d88ab7d44eace19bd8b96bdef75d diff --git a/x11-misc/bbdate/bbdate-0.2.4-r1.ebuild b/x11-misc/bbdate/bbdate-0.2.4-r1.ebuild new file mode 100644 index 000000000000..67068033465c --- /dev/null +++ b/x11-misc/bbdate/bbdate-0.2.4-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils autotools + +DESCRIPTION="blackbox date display" +HOMEPAGE="http://sourceforge.net/projects/bbtools" +SRC_URI="mirror://sourceforge/bbtools/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" +IUSE="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-as-needed.patch + sed -i \ + -e 's|-helvetica-|-*-|g' \ + resource.cc data/${PN}.{nobb,style} || die + eautoreconf +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README AUTHORS BUGS INSTALL ChangeLog TODO + + # since multiple bbtools packages provide this file, install + # it in /usr/share/doc/${PF} + mv "${D}"/usr/share/bbtools/bbtoolsrc.in \ + "${D}"/usr/share/doc/${PF}/bbtoolsrc.example +} diff --git a/x11-misc/bbdate/files/bbdate-0.2.4-as-needed.patch b/x11-misc/bbdate/files/bbdate-0.2.4-as-needed.patch new file mode 100644 index 000000000000..38767a76443b --- /dev/null +++ b/x11-misc/bbdate/files/bbdate-0.2.4-as-needed.patch @@ -0,0 +1,21 @@ +Reason: Correct lib and ldflags ordering, fixes --as-needed. +Upstream: No. +--- bbdate-0.2.4/configure.in ++++ bbdate-0.2.4/configure.in +@@ -47,12 +47,13 @@ + + CFLAGS="$CFLAGS $X_CFLAGS" + CXXFLAGS="$CXXFLAGS $X_CFLAGS" +-LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS" ++LDFLAGS="$LDFLAGS" ++LIBS="$X_LIBS $X_PRE_LIBS" + dnl Checks for X libraries. +-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11", ++AC_CHECK_LIB(X11, XOpenDisplay, LIBS="$LIBS -lX11", + AC_MSG_ERROR(XOpenDisplay not found in -lX11)) + +-LDFLAGS="$LDFLAGS $X_EXTRA_LIBS" ++LIBS="$LIBS $X_EXTRA_LIBS" + + dnl Checks for header files. + AC_HEADER_STDC diff --git a/x11-misc/bbdate/metadata.xml b/x11-misc/bbdate/metadata.xml new file mode 100644 index 000000000000..7771645ed3d5 --- /dev/null +++ b/x11-misc/bbdate/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription>A data display for Blackbox.</longdescription> + <upstream> + <remote-id type="sourceforge">bbtools</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bbkeys/Manifest b/x11-misc/bbkeys/Manifest new file mode 100644 index 000000000000..a6e69b1e37f9 --- /dev/null +++ b/x11-misc/bbkeys/Manifest @@ -0,0 +1,2 @@ +DIST bbkeys-0.9.0.tar.gz 199146 SHA256 1ebf372e35b31e7bd63c9a28d2434cfc44588db08b653df64a396d2821dd9ff0 +DIST bbkeys-0.9.1.tar.gz 226941 SHA256 4381994b998a0b41e3b27d532bdb2a859fefaca260705022eeec8c1c02e99680 diff --git a/x11-misc/bbkeys/bbkeys-0.9.0-r1.ebuild b/x11-misc/bbkeys/bbkeys-0.9.0-r1.ebuild new file mode 100644 index 000000000000..b8fe4ba8b533 --- /dev/null +++ b/x11-misc/bbkeys/bbkeys-0.9.0-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="Use keyboard shortcuts in the blackbox wm" +HOMEPAGE="http://bbkeys.sourceforge.net" +SRC_URI="mirror://sourceforge/bbkeys/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND=">=x11-wm/blackbox-0.70.0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-gcc-4.3.patch" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + rm -rf "${D}/usr/share/doc" + dodoc AUTHORS BUGS ChangeLog NEWS README +} diff --git a/x11-misc/bbkeys/bbkeys-0.9.1.ebuild b/x11-misc/bbkeys/bbkeys-0.9.1.ebuild new file mode 100644 index 000000000000..ccd84533b98a --- /dev/null +++ b/x11-misc/bbkeys/bbkeys-0.9.1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Use keyboard shortcuts in the blackbox wm" +HOMEPAGE="http://bbkeys.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND=">=x11-wm/blackbox-0.70.0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_install() { + emake DESTDIR="${D}" install || die + rm -rf "${D}"/usr/share/doc + dodoc AUTHORS BUGS ChangeLog NEWS README || die + + echo PRELINK_PATH_MASK=/usr/bin/bbkeys > "${T}"/99bbkeys + doenvd "${T}"/99bbkeys || die +} diff --git a/x11-misc/bbkeys/files/bbkeys-0.9.0-gcc-4.3.patch b/x11-misc/bbkeys/files/bbkeys-0.9.0-gcc-4.3.patch new file mode 100644 index 000000000000..58b536ff38e2 --- /dev/null +++ b/x11-misc/bbkeys/files/bbkeys-0.9.0-gcc-4.3.patch @@ -0,0 +1,59 @@ +diff -Naupr bbkeys-0.9.0.orig/src/actions.cc bbkeys-0.9.0/src/actions.cc +--- bbkeys-0.9.0.orig/src/actions.cc 2005-02-20 22:03:43.000000000 +0100 ++++ bbkeys-0.9.0/src/actions.cc 2008-02-24 09:26:30.000000000 +0100 +@@ -25,7 +25,8 @@ + #include "actions.hh" + + #include <iostream> +-#include <string> ++#include <cstring> ++#include <cstdlib> + #include <sstream> + + Action::Action(enum ActionType type, Display * display, KeyCode keycode, +diff -Naupr bbkeys-0.9.0.orig/src/Config.cpp bbkeys-0.9.0/src/Config.cpp +--- bbkeys-0.9.0.orig/src/Config.cpp 2004-09-03 03:08:00.000000000 +0200 ++++ bbkeys-0.9.0/src/Config.cpp 2008-02-24 09:29:55.000000000 +0100 +@@ -24,7 +24,7 @@ + + + #include "Config.h" +-#include <string> ++#include <cstring> + + #include <iostream> + using std::cout; +diff -Naupr bbkeys-0.9.0.orig/src/KeyClient.cpp bbkeys-0.9.0/src/KeyClient.cpp +--- bbkeys-0.9.0.orig/src/KeyClient.cpp 2004-09-26 04:27:46.000000000 +0200 ++++ bbkeys-0.9.0/src/KeyClient.cpp 2008-02-24 09:26:14.000000000 +0100 +@@ -58,6 +58,7 @@ extern "C" { + #include <iostream> + #include <algorithm> + #include <vector> ++#include <cstring> + + //-------------------------------------------------------- + // Constructor/Destructor +diff -Naupr bbkeys-0.9.0.orig/src/main.cpp bbkeys-0.9.0/src/main.cpp +--- bbkeys-0.9.0.orig/src/main.cpp 2004-09-16 02:53:51.000000000 +0200 ++++ bbkeys-0.9.0/src/main.cpp 2008-02-24 09:31:38.000000000 +0100 +@@ -27,6 +27,8 @@ + + #include "main.h" + ++#include <cstring> ++ + //-------------------------------------------------------- + // parseOptions + //-------------------------------------------------------- +diff -Naupr bbkeys-0.9.0.orig/src/Netclient.cpp bbkeys-0.9.0/src/Netclient.cpp +--- bbkeys-0.9.0.orig/src/Netclient.cpp 2004-09-26 04:27:46.000000000 +0200 ++++ bbkeys-0.9.0/src/Netclient.cpp 2008-02-24 09:30:41.000000000 +0100 +@@ -25,6 +25,7 @@ + // Methods, ideas, implementations taken from Openbox's XAtom class *sigh* + + #include "Netclient.h" ++#include <cstring> + + Netclient::Netclient (const bt::Display &display) + : bt::EWMH(display), _display(display) diff --git a/x11-misc/bbkeys/metadata.xml b/x11-misc/bbkeys/metadata.xml new file mode 100644 index 000000000000..82f8fca0a209 --- /dev/null +++ b/x11-misc/bbkeys/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + A keygrabber for Blackbox. + </longdescription> + <upstream> + <remote-id type="sourceforge">bbkeys</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bblaunch/Manifest b/x11-misc/bblaunch/Manifest new file mode 100644 index 000000000000..436f4076c662 --- /dev/null +++ b/x11-misc/bblaunch/Manifest @@ -0,0 +1 @@ +DIST bblaunch-0.0.3.tar.gz 31719 SHA256 892e84e47aeb97843b99aef9eecae0b7ebf3971547ebb51d6e4e79111b06dfee diff --git a/x11-misc/bblaunch/bblaunch-0.0.3.ebuild b/x11-misc/bblaunch/bblaunch-0.0.3.ebuild new file mode 100644 index 000000000000..82f390d9b84d --- /dev/null +++ b/x11-misc/bblaunch/bblaunch-0.0.3.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils + +DESCRIPTION="An application launcher for Blackbox type window managers" +SRC_URI="http://www.stud.ifi.uio.no/~steingrd/${P}.tar.gz" +HOMEPAGE="http://blackboxwm.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="ppc x86 ~x86-fbsd" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}.patch +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc README CHANGELOG AUTHORS +} diff --git a/x11-misc/bblaunch/files/bblaunch-0.0.3.patch b/x11-misc/bblaunch/files/bblaunch-0.0.3.patch new file mode 100644 index 000000000000..3c78fab2ec77 --- /dev/null +++ b/x11-misc/bblaunch/files/bblaunch-0.0.3.patch @@ -0,0 +1,11 @@ +--- bblaunch.c.orig 2002-05-06 23:35:57.000000000 -0500 ++++ bblaunch.c 2004-06-15 07:21:11.080972712 -0500 +@@ -170,7 +170,7 @@ + launchargs.iconic = False; + launchargs.pause = 1000; + +- sprintf(launchargs.call, "%s", (char *)atoi(argv[0])); ++ sprintf(launchargs.call, "%s", argv[0]); + + i = 1; + valargs = 1; diff --git a/x11-misc/bblaunch/metadata.xml b/x11-misc/bblaunch/metadata.xml new file mode 100644 index 000000000000..232a6b8297fd --- /dev/null +++ b/x11-misc/bblaunch/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer><email>maintainer-needed@gentoo.org</email></maintainer> + <longdescription> + An application launcher for Blackbox. + </longdescription> +</pkgmetadata> diff --git a/x11-misc/bbmail/Manifest b/x11-misc/bbmail/Manifest new file mode 100644 index 000000000000..521ed79d72e2 --- /dev/null +++ b/x11-misc/bbmail/Manifest @@ -0,0 +1 @@ +DIST bbmail-0.9.3.tar.gz 186433 SHA256 e992f83d758215e3331f7bfcb5431b6cc8988bc542907de1bca6fe3c8ae9233e diff --git a/x11-misc/bbmail/bbmail-0.9.3.ebuild b/x11-misc/bbmail/bbmail-0.9.3.ebuild new file mode 100644 index 000000000000..ab3d3ce8e92d --- /dev/null +++ b/x11-misc/bbmail/bbmail-0.9.3.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit autotools eutils + +DESCRIPTION="blackbox mail notification" +HOMEPAGE="http://sourceforge.net/projects/bbtools" +SRC_URI="mirror://sourceforge/bbtools/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="x11-wm/blackbox + x11-libs/libX11 + x11-libs/libXext" +DEPEND="${RDEPEND} + x11-proto/xproto" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc4.3.patch \ + "${FILESDIR}"/${P}-gcc4.4.patch + eautoreconf +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + dobin scripts/bbmailparsefm.pl + dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README TODO +} diff --git a/x11-misc/bbmail/files/bbmail-0.9.3-gcc4.3.patch b/x11-misc/bbmail/files/bbmail-0.9.3-gcc4.3.patch new file mode 100644 index 000000000000..442c68f3ce8e --- /dev/null +++ b/x11-misc/bbmail/files/bbmail-0.9.3-gcc4.3.patch @@ -0,0 +1,45 @@ +Reason: Fix compile with gcc 4.3 and glibc 2.8. +Upstream: Sent, http://sourceforge.net/tracker/index.php?func=detail&aid=2116825&group_id=54703&atid=474517 +--- bbmail-0.9.3.orig/src/baseresource.cpp 2008-09-17 22:39:58.000000000 +0200 ++++ bbmail-0.9.3/src/baseresource.cpp 2008-09-17 22:44:16.000000000 +0200 +@@ -20,6 +20,7 @@ + // + + #include <string> ++#include <cstring> + #include "baseresource.h" + #include <stdio.h> + #include "Menu.hh" +--- bbmail-0.9.3.orig/src/bbmail.cpp 2008-09-17 22:39:58.000000000 +0200 ++++ bbmail-0.9.3/src/bbmail.cpp 2008-09-17 22:43:49.000000000 +0200 +@@ -22,6 +22,8 @@ + #include "bbmail.h" + #include "config.h" + #include <string> ++#include <cstring> ++ + + extern "C" { + #include <utime.h> +--- bbmail-0.9.3.orig/src/main.cpp 2008-09-17 22:39:58.000000000 +0200 ++++ bbmail-0.9.3/src/main.cpp 2008-09-17 22:42:09.000000000 +0200 +@@ -23,6 +23,8 @@ + #include "main.h" + #include "config.h" + ++#include <cstring> ++ + Configuration::Configuration(int iargc, char **iargv) + { + withdrawn = false; +--- bbmail-0.9.3.orig/src/resource.cpp 2008-09-17 22:39:58.000000000 +0200 ++++ bbmail-0.9.3/src/resource.cpp 2008-09-17 22:44:36.000000000 +0200 +@@ -23,6 +23,8 @@ + #include "resource.h" + #include "blackboxstyle.h" + ++#include <cstring> ++ + Resource::Resource(ToolWindow *toolwindow, const std::string &rc_file): + BaseResource(*toolwindow, toolwindow->getCurrentScreen(), rc_file), + spoolfile(0), diff --git a/x11-misc/bbmail/files/bbmail-0.9.3-gcc4.4.patch b/x11-misc/bbmail/files/bbmail-0.9.3-gcc4.4.patch new file mode 100644 index 000000000000..d0f93d921d97 --- /dev/null +++ b/x11-misc/bbmail/files/bbmail-0.9.3-gcc4.4.patch @@ -0,0 +1,89 @@ +diff -ur bbmail-0.9.3.orig/configure.ac bbmail-0.9.3/configure.ac +--- bbmail-0.9.3.orig/configure.ac 2007-12-03 23:04:11.000000000 +0200 ++++ bbmail-0.9.3/configure.ac 2009-07-30 19:24:12.000000000 +0300 +@@ -9,13 +9,11 @@ + AC_DEFUN(AC_SET_DEBUG, + [ + test "$CXXFLAGS" = "" && CXXFLAGS="-g -Wall -DDEBUG" +- test "$LDFLAGS" = "" && LDFLAGS="" + ]) + + AC_DEFUN(AC_SET_NODEBUG, + [ +- test "$CXXFLAGS" = "" && CXXFLAGS="-O2 -Wall" +- test "$LDFLAGS" = "" && LDFLAGS="-s" ++ test "$CXXFLAGS" = "" && CXXFLAGS="-Wall" + ]) + + +@@ -46,9 +44,9 @@ + + CFLAGS="$CFLAGS $X_CFLAGS" + CXXFLAGS="$CXXFLAGS $X_CFLAGS" +-LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS" ++LIBS="$X_LIBS $X_PRE_LIBS" + dnl Checks for X libraries. +-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11", ++AC_CHECK_LIB(X11, XOpenDisplay, LIBS="$LIBS -lX11", + AC_MSG_ERROR(XOpenDisplay not found in -lX11)) + + dnl Checks for Xextension +diff -ur bbmail-0.9.3.orig/src/bbmail.cpp bbmail-0.9.3/src/bbmail.cpp +--- bbmail-0.9.3.orig/src/bbmail.cpp 2007-12-03 23:08:26.000000000 +0200 ++++ bbmail-0.9.3/src/bbmail.cpp 2009-07-30 19:20:10.000000000 +0300 +@@ -19,6 +19,8 @@ + // (See the included file COPYING / GPL-2.0) + // + ++#include <cstdio> ++ + #include "bbmail.h" + #include "config.h" + #include <string> +diff -ur bbmail-0.9.3.orig/src/mailboxmenu.cpp bbmail-0.9.3/src/mailboxmenu.cpp +--- bbmail-0.9.3.orig/src/mailboxmenu.cpp 2005-02-01 00:03:37.000000000 +0200 ++++ bbmail-0.9.3/src/mailboxmenu.cpp 2009-07-30 19:20:39.000000000 +0300 +@@ -19,6 +19,9 @@ + // (See the included file COPYING / GPL-2.0) + // + // ++ ++#include <cstdio> ++ + #include "mailboxmenu.h" + + MailboxMenu::MailboxMenu(ToolWindow *toolwindow) : +diff -ur bbmail-0.9.3.orig/src/main.cpp bbmail-0.9.3/src/main.cpp +--- bbmail-0.9.3.orig/src/main.cpp 2006-01-20 23:28:08.000000000 +0200 ++++ bbmail-0.9.3/src/main.cpp 2009-07-30 19:19:49.000000000 +0300 +@@ -19,6 +19,8 @@ + // (See the included file COPYING / GPL-2.0) + // + ++#include <cstdio> ++ + #include "bbmail.h" + #include "main.h" + #include "config.h" +diff -ur bbmail-0.9.3.orig/src/Makefile.am bbmail-0.9.3/src/Makefile.am +--- bbmail-0.9.3.orig/src/Makefile.am 2005-09-06 23:57:42.000000000 +0300 ++++ bbmail-0.9.3/src/Makefile.am 2009-07-30 19:24:39.000000000 +0300 +@@ -10,5 +10,4 @@ + spoollist.cpp spoollist.h \ + mailboxmenu.cpp mailboxmenu.h \ + blackboxstyle.h +-bbmail_LDADD = @X_LIBS@ +- ++bbmail_LDADD = @LIBS@ +diff -ur bbmail-0.9.3.orig/src/resource.cpp bbmail-0.9.3/src/resource.cpp +--- bbmail-0.9.3.orig/src/resource.cpp 2007-08-28 19:47:19.000000000 +0300 ++++ bbmail-0.9.3/src/resource.cpp 2009-07-30 19:20:00.000000000 +0300 +@@ -19,6 +19,8 @@ + // (See the included file COPYING / GPL-2.0) + // + ++#include <cstdio> ++ + #include "bbmail.h" + #include "resource.h" + #include "blackboxstyle.h" diff --git a/x11-misc/bbmail/metadata.xml b/x11-misc/bbmail/metadata.xml new file mode 100644 index 000000000000..670d4c7bde18 --- /dev/null +++ b/x11-misc/bbmail/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + Mail notification for Blackbox. + </longdescription> + <upstream> + <remote-id type="sourceforge">bbtools</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bbpager/Manifest b/x11-misc/bbpager/Manifest new file mode 100644 index 000000000000..6838bd708f11 --- /dev/null +++ b/x11-misc/bbpager/Manifest @@ -0,0 +1 @@ +DIST bbpager-0.4.7.tar.gz 170575 SHA256 e7063a8d65c25663f44e2769132053bd3f1b90f0d4b19a8d8aa2e5f028f0679d diff --git a/x11-misc/bbpager/bbpager-0.4.7.ebuild b/x11-misc/bbpager/bbpager-0.4.7.ebuild new file mode 100644 index 000000000000..9dcdbd02e608 --- /dev/null +++ b/x11-misc/bbpager/bbpager-0.4.7.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit base autotools + +DESCRIPTION="An understated pager for Blackbox" +HOMEPAGE="http://bbtools.sourceforge.net/" +SRC_URI="mirror://sourceforge/bbtools/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd" +IUSE="" + +RDEPEND="x11-wm/blackbox" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-gcc43.patch" + "${FILESDIR}/${P}-as-needed.patch" + ) + +src_unpack() { + base_src_unpack + cd "${S}" + eautoreconf +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS BUGS ChangeLog README TODO +} diff --git a/x11-misc/bbpager/files/bbpager-0.4.7-as-needed.patch b/x11-misc/bbpager/files/bbpager-0.4.7-as-needed.patch new file mode 100644 index 000000000000..47efa7132f99 --- /dev/null +++ b/x11-misc/bbpager/files/bbpager-0.4.7-as-needed.patch @@ -0,0 +1,92 @@ +diff -NrU5 bbpager-0.4.7.orig/configure.ac bbpager-0.4.7/configure.ac +--- bbpager-0.4.7.orig/configure.ac 2008-12-20 22:38:36.000000000 +0100 ++++ bbpager-0.4.7/configure.ac 2008-12-20 23:58:12.000000000 +0100 +@@ -37,40 +37,45 @@ + AC_PROG_INSTALL + AC_HEADER_STDC + AC_CHECK_HEADERS(ctype.h fcntl.h libgen.h locale.h process.h signal.h stdio.h time.h unistd.h sys/param.h sys/select.h sys/stat.h sys/time.h sys/types.h sys/wait.h) + AC_HEADER_TIME + ++dnl Checks for typedefs, structures, and compiler characteristics. ++AC_C_CONST ++AC_STRUCT_TM ++ ++dnl Checks for library functions. ++AC_CHECK_FUNCS(select strstr) ++ + AC_CHECK_FUNCS(setlocale sigaction strftime) + + AC_PATH_X + AC_PATH_XTRA + +-CFLAGS="$CFLAGS $X_CFLAGS" +-CXXFLAGS="$CXXFLAGS $X_CFLAGS" +-LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS" + dnl Checks for X libraries. +-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11", +- AC_MSG_ERROR(XOpenDisplay not found in -lX11)) ++AC_CHECK_LIB([X11], ++ [XOpenDisplay], ++ [], ++ [AC_MSG_ERROR(XOpenDisplay not found in -lX11)] ++ ) + + dnl Checks for Xextension +-SHAPE= +-AC_CHECK_LIB(Xext, XMissingExtension, LIBS="$LIBS -lXext"; SHAPE="-DSHAPE", +- AC_MSG_ERROR(XMissingExtension not found in -lXext)) +-AC_SUBST(SHAPE) +- +-dnl Checks for typedefs, structures, and compiler characteristics. +-AC_C_CONST +-AC_HEADER_TIME +-AC_STRUCT_TM +- +-dnl Checks for library functions. +-AC_CHECK_FUNCS(select strstr) ++PKG_CHECK_MODULES([XEXT], [xext], ++ [ ++ AC_CHECK_LIB([Xext], ++ [XMissingExtension], ++ [], ++ [AC_MSG_ERROR(XMissingExtension not found in -lXext)] ++ ) ++ ], ++ [AC_MSG_ERROR(xext not found)] ++ ) + + dnl pkgconfig checks for blackbox library + PKG_CHECK_MODULES(LIBBT, libbt) +-CXXFLAGS="$CXXFLAGS $LIBBT_CFLAGS" +-LIBS="$LIBS $LIBBT_LIBS" ++ ++LIBS="$LIBS $LIBBT_LIBS $X_LIBS $X_PRE_LIBS $XEXT_LIBS" + + dnl generate the config header + AM_CONFIG_HEADER(config.h) + + dnl Print results +diff -NrU5 bbpager-0.4.7.orig/src/Makefile.am bbpager-0.4.7/src/Makefile.am +--- bbpager-0.4.7.orig/src/Makefile.am 2008-12-20 22:38:36.000000000 +0100 ++++ bbpager-0.4.7/src/Makefile.am 2008-12-20 23:56:15.000000000 +0100 +@@ -1,8 +1,9 @@ +-CPPFLAGS = @CPPFLAGS@ @SHAPE@ \ ++AM_CPPFLAGS = $(CPPFLAGS) -DSHAPE \ + -DBBTOOL_GLOBAL=\"$(datadir)/bbtools/bbpager.rc\" \ + -DBBTOOL_LOCAL=\"~/.bbtools/bbpager.rc\" ++AM_CXXFLAGS = $(X_CFLAGS) $(XEXT_CFLAGS) $(LIBBT_CFLAGS) + + bin_PROGRAMS = bbpager + bbpager_SOURCES = bbpager.cxx bbpager.h \ + main.cxx main.h \ + Baseresource.cxx Baseresource.h \ +@@ -10,7 +11,8 @@ + wminterface.cxx wminterface.h \ + blackboxstyle.h \ + pager.cxx pager.h \ + desktop.cxx desktop.h + # pagermenu.cc pagermenu.hh \ +-bbpager_LDADD = @X_LIBS@ ++# ++ + diff --git a/x11-misc/bbpager/files/bbpager-0.4.7-gcc43.patch b/x11-misc/bbpager/files/bbpager-0.4.7-gcc43.patch new file mode 100644 index 000000000000..bf0c9bedd64e --- /dev/null +++ b/x11-misc/bbpager/files/bbpager-0.4.7-gcc43.patch @@ -0,0 +1,33 @@ +diff -urNad bbpager-0.4.7~/src/Baseresource.cxx bbpager-0.4.7/src/Baseresource.cxx +--- bbpager-0.4.7~/src/Baseresource.cxx 2008-03-28 06:55:16.000000000 -0400 ++++ bbpager-0.4.7/src/Baseresource.cxx 2008-04-09 21:58:03.000000000 -0400 +@@ -20,6 +20,7 @@ + // + + #include <string> ++#include <cstring> + #include "Baseresource.h" + #include <stdio.h> + #include "Menu.hh" +diff -urNad bbpager-0.4.7~/src/main.cxx bbpager-0.4.7/src/main.cxx +--- bbpager-0.4.7~/src/main.cxx 2008-03-28 06:55:16.000000000 -0400 ++++ bbpager-0.4.7/src/main.cxx 2008-04-09 21:58:03.000000000 -0400 +@@ -25,6 +25,7 @@ + + #include <stdio.h> + #include <string> ++#include <cstring> + #include <iostream> + + +diff -urNad bbpager-0.4.7~/src/resource.cxx bbpager-0.4.7/src/resource.cxx +--- bbpager-0.4.7~/src/resource.cxx 2007-03-11 17:47:07.000000000 -0400 ++++ bbpager-0.4.7/src/resource.cxx 2008-04-09 21:58:39.000000000 -0400 +@@ -19,6 +19,7 @@ + // (See the included file COPYING / GPL-2.0) + // + ++#include <cstring> + #include "resource.h" + #include "blackboxstyle.h" + diff --git a/x11-misc/bbpager/metadata.xml b/x11-misc/bbpager/metadata.xml new file mode 100644 index 000000000000..93d6fc922f8c --- /dev/null +++ b/x11-misc/bbpager/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + An understated pager for Blackbox. + </longdescription> + <upstream> + <remote-id type="sourceforge">bbtools</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bbppp/Manifest b/x11-misc/bbppp/Manifest new file mode 100644 index 000000000000..47e911eefece --- /dev/null +++ b/x11-misc/bbppp/Manifest @@ -0,0 +1 @@ +DIST bbppp-0.2.5.tar.gz 83421 SHA256 6d606f2e269574b61ad2a223ef38dfe3469cfa7518f5d114f2349545747173b4 SHA512 55d1e4d1a2c97ac5a5d34a48cd877891d8d6acf32083d7bfa90e4941cfbc18a91d056a0ec6b7a96182f72be440f6609caf3bc82c9071c6d0bcfbe95577f04930 WHIRLPOOL 09ee0e37e75c52be0bdccb8fbb518fd1c408340e256b0ea62366bc816cc830a6d265ea80432ee0e8ba768c5d938d3a6b85c026d562e27bd47aed107e27205a34 diff --git a/x11-misc/bbppp/bbppp-0.2.5-r1.ebuild b/x11-misc/bbppp/bbppp-0.2.5-r1.ebuild new file mode 100644 index 000000000000..d3c8e49aa3fe --- /dev/null +++ b/x11-misc/bbppp/bbppp-0.2.5-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +DESCRIPTION="blackbox ppp frontend/monitor" +HOMEPAGE="http://sourceforge.net/projects/bbtools/" +SRC_URI="mirror://sourceforge/bbtools/${PN}/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="x11-libs/libX11" +RDEPEND="${DEPEND} + media-fonts/font-adobe-100dpi" + +DOCS=( README AUTHORS BUGS ChangeLog NEWS TODO data/README.bbppp ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc3-multiline.patch \ + "${FILESDIR}"/${PN}-asneeded.patch \ + "${FILESDIR}"/${P}-overflows.patch + eautoreconf +} + +src_install () { + default + rm "${D}"/usr/share/bbtools/README.bbppp +} + +pkg_postinst() { + # don't assume blackbox exists because virtual/blackbox is installed + if [[ -x ${ROOT}/usr/bin/blackbox ]] ; then + if ! grep bbppp "${ROOT}"/usr/bin/blackbox &>/dev/null ; then + sed -e "s/.*blackbox/exec \/usr\/bin\/bbppp \&\n&/" blackbox | cat > blackbox + fi + fi +} diff --git a/x11-misc/bbppp/bbppp-0.2.5.ebuild b/x11-misc/bbppp/bbppp-0.2.5.ebuild new file mode 100644 index 000000000000..aee5f76cc632 --- /dev/null +++ b/x11-misc/bbppp/bbppp-0.2.5.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit autotools eutils + +DESCRIPTION="blackbox ppp frontend/monitor" +HOMEPAGE="http://sourceforge.net/projects/bbtools/" +SRC_URI="mirror://sourceforge/bbtools/${PN}/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86" +IUSE="" + +DEPEND="x11-libs/libX11" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc3-multiline.patch \ + "${FILESDIR}"/${PN}-asneeded.patch + eautoreconf +} + +src_install () { + emake DESTDIR="${D}" install || die + dodoc README AUTHORS BUGS ChangeLog NEWS TODO data/README.bbppp || die + rm "${D}"/usr/share/bbtools/README.bbppp +} + +pkg_postinst() { + # don't assume blackbox exists because virtual/blackbox is installed + if [[ -x ${ROOT}/usr/bin/blackbox ]] ; then + if ! grep bbppp "${ROOT}"/usr/bin/blackbox &>/dev/null ; then + sed -e "s/.*blackbox/exec \/usr\/bin\/bbppp \&\n&/" blackbox | cat > blackbox + fi + fi +} diff --git a/x11-misc/bbppp/files/bbppp-0.2.5-gcc3-multiline.patch b/x11-misc/bbppp/files/bbppp-0.2.5-gcc3-multiline.patch new file mode 100644 index 000000000000..ef2072faa9af --- /dev/null +++ b/x11-misc/bbppp/files/bbppp-0.2.5-gcc3-multiline.patch @@ -0,0 +1,44 @@ +--- main.cc ++++ main.cc +@@ -24,25 +24,24 @@ + + void Usage() + { +- char* usageOptions = {"Options:\n\ +- -display <display name> X server to connect to\n\ +- -c[onfig] <filename> Alternate config file\n\ +- -n[obb] Fall back on default configuration\n\ +- -v[ersion] Display version number\n\ +- -h[elp] Display this help\n\ +- -geom[etry] <geometry> Set geometry of window\n\ +- -d[ecorated] Show 'normal' decorated window\n\ +- -w[ithdrawn] Place bbtool in the Slit\n\ +- -s[hape] Don't display groundplate\n\ +- -thru[put] Display throughput rate\n\ +- -o[rient] <v|h> Display window widgets horizontally or vertically\n\ +- -com[pact] Display buttons in compact style\n\ +- -notime Dont display time window\n\ +- -nosecs Show uptime in old-style hh:mm format\n\n"}; ++ char* usageOptions = {"Options:\n" ++ "-display <display name> X server to connect to\n" ++ "-c[onfig] <filename> Alternate config file\n" ++ "-n[obb] Fall back on default configuration\n" ++ "-v[ersion] Display version number\n" ++ "-h[elp] Display this help\n" ++ "-geom[etry] <geometry> Set geometry of window\n" ++ "-d[ecorated] Show 'normal' decorated window\n" ++ "-w[ithdrawn] Place bbtool in the Slit\n" ++ "-s[hape] Don't display groundplate\n" ++ "-thru[put] Display throughput rate\n" ++ "-o[rient] <v|h> Display window widgets horizontally or vertically\n" ++ "-com[pact] Display buttons in compact style\n" ++ "-notime Dont display time window\n" ++ "-nosecs Show uptime in old-style hh:mm format\n\n"}; + + fprintf(stdout,"\n%s version %s \n",BBTOOL,BBTOOL_VERSION); +- fprintf(stdout,"Usage:\n\ +- %s [options]\n",BBTOOL); ++ fprintf(stdout,"Usage:\n%s [options]\n",BBTOOL); + fprintf(stdout, "%s", usageOptions); + /* + fprintf(stdout,"-t[ype] <0|1|2|3> 0: diff --git a/x11-misc/bbppp/files/bbppp-0.2.5-overflows.patch b/x11-misc/bbppp/files/bbppp-0.2.5-overflows.patch new file mode 100644 index 000000000000..0c089bc92f4e --- /dev/null +++ b/x11-misc/bbppp/files/bbppp-0.2.5-overflows.patch @@ -0,0 +1,17 @@ +diff --git a/pppstat.cc b/pppstat.cc +index 71264e4..ca0f11c 100644 +--- a/pppstat.cc ++++ b/pppstat.cc +@@ -52,10 +52,10 @@ PPPStat::PPPStat(ToolWindow *toolwindow) + lastTimeMil = 0.0; + ppp_h = -1; + #ifndef ISDN +- active_interface= new char[4]; ++ active_interface= new char[5]; + strcpy(active_interface,"ppp0"); + #else +- active_interface= new char[5]; ++ active_interface= new char[6]; + strcpy(active_interface,"ippp0"); + #endif + connect_status=false; diff --git a/x11-misc/bbppp/files/bbppp-asneeded.patch b/x11-misc/bbppp/files/bbppp-asneeded.patch new file mode 100644 index 000000000000..7e8c2b8bcfd4 --- /dev/null +++ b/x11-misc/bbppp/files/bbppp-asneeded.patch @@ -0,0 +1,38 @@ +Fixing build with as-needed + +https://bugs.gentoo.org/show_bug.cgi?id=248552 + +--- configure.in ++++ configure.in +@@ -86,14 +86,9 @@ + AC_PATH_X + AC_PATH_XTRA + +-CFLAGS="$CFLAGS $X_CFLAGS" +-CXXFLAGS="$CXXFLAGS $X_CFLAGS" +-LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS" + dnl Checks for X libraries. +-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11", +- AC_MSG_ERROR(XOpenDisplay not found in -lX11)) +- +-LDFLAGS="$LDFLAGS $X_EXTRA_LIBS" ++AC_CHECK_LIB([X11], [XOpenDisplay], , ++ AC_MSG_ERROR(XOpenDisplay not found in -lX11),) + + dnl Checks for header files. + AC_HEADER_STDC +--- Makefile.am ++++ Makefile.am +@@ -1,4 +1,4 @@ +-CPPFLAGS = @CPPFLAGS@ @INTERLACE@ @ISDN@\ ++AM_CPPFLAGS = @INTERLACE@ @ISDN@\ + -DGLOBAL_BB=\"$(datadir)/bbtools/bbppp.bb\" \ + -DGLOBAL_NOBB=\"$(datadir)/bbtools/bbppp.nobb\" + +@@ -16,4 +16,5 @@ + Basewindow.cc Basewindow.hh \ + blackboxstyle.hh + EXTRA_DIST = BUGS TODO +-bbppp_LDADD = @X_LIBS@ ++bbppp_LDADD = @X_PRE_LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ ++bbppp_CFLAGS = @X_PRE_CFLAGS@ @X_CFLAGS@ @X_EXTRA_CFLAGS@ diff --git a/x11-misc/bbppp/metadata.xml b/x11-misc/bbppp/metadata.xml new file mode 100644 index 000000000000..5527b7f8abac --- /dev/null +++ b/x11-misc/bbppp/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + A PPP frontend/monitor for Blackbox. + </longdescription> + <upstream> + <remote-id type="sourceforge">bbtools</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bbrun/Manifest b/x11-misc/bbrun/Manifest new file mode 100644 index 000000000000..92fe60ea4ec6 --- /dev/null +++ b/x11-misc/bbrun/Manifest @@ -0,0 +1 @@ +DIST bbrun-1.6.tar.gz 21132 SHA256 d0af57276ec9191a94f8d20a2da69dc1818f410f23478f041334aef2d707559a diff --git a/x11-misc/bbrun/bbrun-1.6-r1.ebuild b/x11-misc/bbrun/bbrun-1.6-r1.ebuild new file mode 100644 index 000000000000..b1cfe533972f --- /dev/null +++ b/x11-misc/bbrun/bbrun-1.6-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="blackbox program execution dialog box" +HOMEPAGE="http://www.darkops.net/bbrun" +SRC_URI="http://www.darkops.net/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND} + x11-libs/libXpm + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch +} + +src_compile() { + emake -C ${PN} CC="$(tc-getCC)" || die +} + +src_install() { + dobin ${PN}/${PN} + dodoc Changelog README +} diff --git a/x11-misc/bbrun/files/bbrun-1.6-makefile.patch b/x11-misc/bbrun/files/bbrun-1.6-makefile.patch new file mode 100644 index 000000000000..cf89b96df6f3 --- /dev/null +++ b/x11-misc/bbrun/files/bbrun-1.6-makefile.patch @@ -0,0 +1,29 @@ +Respect {C,LD}FLAGS, fix underlinking + +http://bugs.gentoo.org/367853 + +--- bbrun/Makefile ++++ bbrun/Makefile +@@ -1,7 +1,7 @@ + CC = gcc + LIBDIR = -L/usr/lib -L/usr/X11R6/lib +-LIBS = -lXpm `pkg-config --libs gtk+-2.0` +-CFLAGS = `pkg-config --cflags gtk+-2.0` ++LIBS = `pkg-config --libs xext xpm gtk+-2.0` ++DEP_CFLAGS = `pkg-config --cflags xext xpm gtk+-2.0` + + OBJS = bbrun.o \ + ../wmgeneral/wmgeneral.o \ +@@ -11,10 +11,10 @@ + all: bbrun + + .c.o: +- $(CC) -g -c -O2 -Wall $< -o $*.o $(CFLAGS) ++ $(CC) $(CFLAGS) $(DEP_CFLAGS) -c -Wall $< -o $*.o + + bbrun: $(OBJS) +- $(CC) -Wall -g -o bbrun $^ $(LIBDIR) $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -Wall -o bbrun $^ $(LIBDIR) $(LIBS) + + install: + cp bbrun /usr/local/bin/ diff --git a/x11-misc/bbrun/files/bbrun-1.6-respectflags.patch b/x11-misc/bbrun/files/bbrun-1.6-respectflags.patch new file mode 100644 index 000000000000..d81824b0ed0f --- /dev/null +++ b/x11-misc/bbrun/files/bbrun-1.6-respectflags.patch @@ -0,0 +1,26 @@ +Respect {C,LD}FLAGS + +--- bbrun/Makefile ++++ bbrun/Makefile +@@ -1,7 +1,7 @@ + CC = gcc + LIBDIR = -L/usr/lib -L/usr/X11R6/lib + LIBS = -lXpm `pkg-config --libs gtk+-2.0` +-CFLAGS = `pkg-config --cflags gtk+-2.0` ++GTK_CFLAGS = `pkg-config --cflags gtk+-2.0` + + OBJS = bbrun.o \ + ../wmgeneral/wmgeneral.o \ +@@ -11,10 +11,10 @@ + all: bbrun + + .c.o: +- $(CC) -g -c -O2 -Wall $< -o $*.o $(CFLAGS) ++ $(CC) $(CFLAGS) $(GTK_CFLAGS) -c -Wall $< -o $*.o + + bbrun: $(OBJS) +- $(CC) -Wall -g -o bbrun $^ $(LIBDIR) $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -Wall -o bbrun $^ $(LIBDIR) $(LIBS) + + install: + cp bbrun /usr/local/bin/ diff --git a/x11-misc/bbrun/metadata.xml b/x11-misc/bbrun/metadata.xml new file mode 100644 index 000000000000..4538a68724a6 --- /dev/null +++ b/x11-misc/bbrun/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><email>maintainer-needed@gentoo.org</email></maintainer> +</pkgmetadata> diff --git a/x11-misc/bbsload/Manifest b/x11-misc/bbsload/Manifest new file mode 100644 index 000000000000..c4cd54834e8a --- /dev/null +++ b/x11-misc/bbsload/Manifest @@ -0,0 +1 @@ +DIST bbsload-0.2.9.tar.gz 127556 SHA256 9a7f626cd66fa6d04a6aee83b31652ebe2604b1b8848ff5737a3a753a98acd82 SHA512 73bdf9da03bea0253ebec6aaf2cbd1e287bf97c2e9669c05fe878b24e3d30bfb6ad9c7b0be358f89ead646f023b2f0fc0ea1cc1b153713b91c005fbfbf8f4591 WHIRLPOOL a44b672e22fbd373911570a3dc3a949512a7ee77f2e8f71b3859ccc8215116e368c5ec81453e248b750091165e0524cc14c76a556c639972784195f7eaa9d95d diff --git a/x11-misc/bbsload/bbsload-0.2.9.ebuild b/x11-misc/bbsload/bbsload-0.2.9.ebuild new file mode 100644 index 000000000000..0caf4016715c --- /dev/null +++ b/x11-misc/bbsload/bbsload-0.2.9.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +DESCRIPTION="blackbox load monitor" +HOMEPAGE="http://sourceforge.net/projects/bbtools/" +SRC_URI="mirror://sourceforge/bbtools/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="media-fonts/font-adobe-100dpi" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.2.8-as-needed.patch + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install + dodoc README AUTHORS BUGS ChangeLog NEWS TODO data/README.bbsload +} diff --git a/x11-misc/bbsload/files/bbsload-0.2.8-as-needed.patch b/x11-misc/bbsload/files/bbsload-0.2.8-as-needed.patch new file mode 100644 index 000000000000..fd3aa0a42de3 --- /dev/null +++ b/x11-misc/bbsload/files/bbsload-0.2.8-as-needed.patch @@ -0,0 +1,23 @@ +diff -NrU5 bbsload-0.2.8.orig/configure.in bbsload-0.2.8/configure.in +--- bbsload-0.2.8.orig/configure.in 2008-12-18 00:44:23.000000000 +0100 ++++ bbsload-0.2.8/configure.in 2008-12-18 00:46:33.000000000 +0100 +@@ -87,16 +87,16 @@ + AC_PATH_X + AC_PATH_XTRA + + CFLAGS="$CFLAGS $X_CFLAGS" + CXXFLAGS="$CXXFLAGS $X_CFLAGS" +-LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS" ++LIBS="$X_LIBS $X_PRE_LIBS" + dnl Checks for X libraries. +-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11", ++AC_CHECK_LIB(X11, XOpenDisplay, LIBS="$LIBS -lX11", + AC_MSG_ERROR(XOpenDisplay not found in -lX11)) + +-LDFLAGS="$LDFLAGS $X_EXTRA_LIBS" ++LIBS="$LIBS $X_EXTRA_LIBS" + + dnl Checks for header files. + AC_HEADER_STDC + AC_CHECK_HEADERS(malloc.h) + diff --git a/x11-misc/bbsload/files/bbsload-0.2.8-gcc43.patch b/x11-misc/bbsload/files/bbsload-0.2.8-gcc43.patch new file mode 100644 index 000000000000..e506ca26d808 --- /dev/null +++ b/x11-misc/bbsload/files/bbsload-0.2.8-gcc43.patch @@ -0,0 +1,14 @@ +diff -aur bbsload-0.2.8.old/resource.hh bbsload-0.2.8/resource.hh +--- bbsload-0.2.8.old/resource.hh 2008-11-25 18:09:55.000000000 +0100 ++++ bbsload-0.2.8/resource.hh 2008-11-25 18:12:49.000000000 +0100 +@@ -121,8 +121,8 @@ + { + + public: +- Resource::Resource(ToolWindow *); +- Resource::~Resource(void); ++ Resource(ToolWindow *); ++ ~Resource(void); + + struct FRAME frame; + struct LABEL label; diff --git a/x11-misc/bbsload/metadata.xml b/x11-misc/bbsload/metadata.xml new file mode 100644 index 000000000000..5da1df511b3b --- /dev/null +++ b/x11-misc/bbsload/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription>Load monitor for Blackbox.</longdescription> + <upstream> + <remote-id type="sourceforge">bbtools</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bbtime/Manifest b/x11-misc/bbtime/Manifest new file mode 100644 index 000000000000..b185758b679d --- /dev/null +++ b/x11-misc/bbtime/Manifest @@ -0,0 +1 @@ +DIST bbtime-0.1.5.tar.gz 68842 SHA256 e5ee51b43e5f7014059ae9e66b00a13410a781ecfac84774dcb66d7f3371dd00 diff --git a/x11-misc/bbtime/bbtime-0.1.5.ebuild b/x11-misc/bbtime/bbtime-0.1.5.ebuild new file mode 100644 index 000000000000..fcf4c9fc08f6 --- /dev/null +++ b/x11-misc/bbtime/bbtime-0.1.5.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +DESCRIPTION="blackbox time watcher" +HOMEPAGE="http://sourceforge.net/projects/bbtools/" +SRC_URI="mirror://sourceforge/bbtools/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="x11-libs/libX11" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-asneeded.patch + eautoreconf +} + +src_install () { + emake DESTDIR="${D}" install + dodoc README AUTHORS BUGS ChangeLog NEWS TODO data/README.bbtime + + rm "${D}"/usr/share/bbtools/README.bbtime || die + # since multiple bbtools packages provide this file, install + # it in /usr/share/doc/${PF} + mv "${D}/usr/share/bbtools/bbtoolsrc.in" \ + "${D}/usr/share/doc/${PF}/bbtoolsrc.example" || die +} diff --git a/x11-misc/bbtime/files/bbtime-0.1.5-asneeded.patch b/x11-misc/bbtime/files/bbtime-0.1.5-asneeded.patch new file mode 100644 index 000000000000..17788812d8a2 --- /dev/null +++ b/x11-misc/bbtime/files/bbtime-0.1.5-asneeded.patch @@ -0,0 +1,39 @@ +Fixing build with as-needed + +https://bugs.gentoo.org/show_bug.cgi?id=248555 + +--- configure.in ++++ configure.in +@@ -47,14 +47,9 @@ + AC_PATH_X + AC_PATH_XTRA + +-CFLAGS="$CFLAGS $X_CFLAGS" +-CXXFLAGS="$CXXFLAGS $X_CFLAGS" +-LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS" + dnl Checks for X libraries. +-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11", +- AC_MSG_ERROR(XOpenDisplay not found in -lX11)) +- +-LDFLAGS="$LDFLAGS $X_EXTRA_LIBS" ++AC_CHECK_LIB([X11], [XOpenDisplay], , ++ AC_MSG_ERROR(XOpenDisplay not found in -lX11),) + + dnl Checks for header files. + AC_HEADER_STDC +--- Makefile.am ++++ Makefile.am +@@ -1,5 +1,4 @@ +-CPPFLAGS = @CPPFLAGS@ \ +- -DDEFAULT_CONF=\"$(datadir)/bbtools/bbtime.conf\" \ ++AM_CPPFLAGS = -DDEFAULT_CONF=\"$(datadir)/bbtools/bbtime.conf\" \ + -DDEFAULT_NOBB=\"$(datadir)/bbtools/bbtime.nobb\" + + +@@ -14,4 +13,5 @@ + timemenu.cc timemenu.hh \ + blackboxstyle.hh + EXTRA_DIST = BUGS TODO +-bbtime_LDADD = @X_LIBS@ ++bbtime_LDADD = @X_PRE_LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ ++bbtime_CFLAGS = @X_PRE_CFLAGS@ @X_CGLAGS@ @X_EXTRA_CFLAGS@ diff --git a/x11-misc/bbtime/metadata.xml b/x11-misc/bbtime/metadata.xml new file mode 100644 index 000000000000..22b8da1dff67 --- /dev/null +++ b/x11-misc/bbtime/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription>A time monitor for Blackbox.</longdescription> + <upstream> + <remote-id type="sourceforge">bbtools</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/bbweather/Manifest b/x11-misc/bbweather/Manifest new file mode 100644 index 000000000000..8bd2c146d787 --- /dev/null +++ b/x11-misc/bbweather/Manifest @@ -0,0 +1 @@ +DIST bbweather-0.6.3.tar.bz2 80631 SHA256 575e0f5dd1af770490bf0f3ef9c26de5245deb91f79caa3d5db3cd9dc23b8e1e SHA512 e5bd4febf119c0f81a64fb5ff4cf3b526a84e8fd26005ff04c6297f9b50963d2d710227469f9a1cf2d1c51f3524a2bce544a07c70ca4e5beff64c954768468a6 WHIRLPOOL 7b0c2f4561f54bdf1daab217ca4ca3d26e44a377013f327668a5edeb964f189ea19f1eb413ca48f35c52e69275ed945e8843c1dfedf59b28b5dc3cacd35c5724 diff --git a/x11-misc/bbweather/bbweather-0.6.3-r1.ebuild b/x11-misc/bbweather/bbweather-0.6.3-r1.ebuild new file mode 100644 index 000000000000..c1586ad261a1 --- /dev/null +++ b/x11-misc/bbweather/bbweather-0.6.3-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit autotools eutils + +DESCRIPTION="blackbox weather monitor" +HOMEPAGE="http://www.netmeister.org/apps/bbweather/" +SRC_URI="http://www.netmeister.org/apps/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ppc x86" +IUSE="" + +DEPEND="dev-lang/perl + x11-libs/libX11" +RDEPEND="${DEPEND} + net-misc/wget + x11-apps/xmessage + !<=x11-plugins/gkrellweather-2.0.7-r1" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-asneeded.patch + gunzip doc/*.gz || die + sed -i \ + -e "s:man_DATA:man1_MANS:;s:.gz::g;/^mandir/d" \ + doc/Makefile.am || die + sed -i \ + -e 's|-helvetica-|-*-|g' \ + resource.cpp data/${PN}.{nobb,style} || die + eautoreconf +} + +src_install () { + emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" install || die + dodoc README AUTHORS ChangeLog NEWS TODO data/README.bbweather || die + + # since multiple bbtools packages provide this file, install + # it in /usr/share/doc/${PF} + mv "${D}"/usr/share/bbtools/bbtoolsrc.in \ + "${D}"/usr/share/doc/${PF}/bbtoolsrc.example +} diff --git a/x11-misc/bbweather/files/bbweather-asneeded.patch b/x11-misc/bbweather/files/bbweather-asneeded.patch new file mode 100644 index 000000000000..593e471641c8 --- /dev/null +++ b/x11-misc/bbweather/files/bbweather-asneeded.patch @@ -0,0 +1,40 @@ +Fixing build with as-needed + +https://bugs.gentoo.org/248556 + +--- configure.in ++++ configure.in +@@ -56,15 +56,10 @@ + AC_PATH_X + AC_PATH_XTRA + +-CFLAGS="$CFLAGS $X_CFLAGS" +-CXXFLAGS="$CXXFLAGS $X_CFLAGS" +-LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS" + DATADIR=$datadir + dnl Checks for X libraries. +-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11", +- AC_MSG_ERROR(XOpenDisplay not found in -lX11)) +- +-LDFLAGS="$LDFLAGS $X_EXTRA_LIBS" ++AC_CHECK_LIB([X11], [XOpenDisplay], , ++ AC_MSG_ERROR(XOpenDisplay not found in -lX11), ) + + dnl Checks for header files. + AC_HEADER_STDC +--- Makefile.am ++++ Makefile.am +@@ -1,5 +1,4 @@ +-CPPFLAGS = @CPPFLAGS@ \ +- -DDEFAULT_CONF=\"$(datadir)/bbtools/bbweather.conf\" \ ++AM_CPPFLAGS = -DDEFAULT_CONF=\"$(datadir)/bbtools/bbweather.conf\" \ + -DDEFAULT_NOBB=\"$(datadir)/bbtools/bbweather.nobb\" + + +@@ -13,4 +12,5 @@ + Basewindow.cpp Basewindow.h \ + blackboxstyle.h + EXTRA_DIST = BUGS TODO +-bbweather_LDADD = @X_LIBS@ ++bbweather_LDADD = @X_PRE_LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ ++bbweather_CFLAGS = @X_PRE_CFLAGS@ @X_CFLAGS@ @X_EXTRA_CFLAGS@ diff --git a/x11-misc/bbweather/metadata.xml b/x11-misc/bbweather/metadata.xml new file mode 100644 index 000000000000..2391229f31bf --- /dev/null +++ b/x11-misc/bbweather/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer><email>maintainer-needed@gentoo.org</email></maintainer> + <longdescription> + Weather monitor for Blackbox. + </longdescription> +</pkgmetadata> diff --git a/x11-misc/blockdpy/Manifest b/x11-misc/blockdpy/Manifest new file mode 100644 index 000000000000..f98f0e7fd351 --- /dev/null +++ b/x11-misc/blockdpy/Manifest @@ -0,0 +1 @@ +DIST blockdpy.c 10580 SHA256 32fc5c822db84d99dced36369695c64664d8075d1a7cf6cd2305f8f79cc8a004 diff --git a/x11-misc/blockdpy/blockdpy-1.ebuild b/x11-misc/blockdpy/blockdpy-1.ebuild new file mode 100644 index 000000000000..252c06355c14 --- /dev/null +++ b/x11-misc/blockdpy/blockdpy-1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="Tool to block access via the physical display while x11vnc is running" +HOMEPAGE="http://www.karlrunge.com/x11vnc/blockdpy.c" +SRC_URI="http://www.karlrunge.com/x11vnc/blockdpy.c" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="x11-libs/libX11 + x11-libs/libXext" +RDEPEND="${DEPEND}" + +S=${WORKDIR} + +src_unpack() { + cp "${DISTDIR}"/blockdpy.c blockdpy.c + + # Add includes to avoid QA warnings. + sed -i '/#include <stdio.h>/i#include <stdlib.h>' blockdpy.c + sed -i '/#include <stdio.h>/i#include <string.h>' blockdpy.c +} + +src_compile() { + $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o blockdpy blockdpy.c -lX11 -lXext || + die "compile failed" + + # Create README from head comment in source. + sed -n '1,/^ *\*\//s/^[ -]*\*[ \/]*//p' < blockdpy.c > README +} + +src_install() { + dobin blockdpy || die "install failed" + dodoc README +} + +pkg_postinst() { + # Just warn about missing xlock instead of requiring it in case + # the user wants to use something else. + if ! [ -x /usr/bin/xlock ]; then + ewarn 'The xlock executable was not found.' + ewarn 'blockdpy runs "xlock" as the screen-lock program by default.' + ewarn 'You should either install x11-misc/xlockmore or override the' + ewarn 'default by calling blockdpy with the -lock option or by' + ewarn 'setting the XLOCK_CMD environment variable.' + ewarn + ewarn " Examples: blockdpy -lock 'xscreensaver-command -lock'" + ewarn " blockdpy -lock 'kdesktop_lock --forcelock'" + ewarn + fi +} diff --git a/x11-misc/blockdpy/metadata.xml b/x11-misc/blockdpy/metadata.xml new file mode 100644 index 000000000000..a40624fba8f0 --- /dev/null +++ b/x11-misc/blockdpy/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/x11-misc/bmpanel/Manifest b/x11-misc/bmpanel/Manifest new file mode 100644 index 000000000000..ced7a35a98d9 --- /dev/null +++ b/x11-misc/bmpanel/Manifest @@ -0,0 +1 @@ +DIST bmpanel-0.9.27.tar.gz 30638 SHA256 a6976d024800b878117161174cc6ca57b21b2462666e75111cdd32eea8464557 SHA512 fc36db740ead9700156b24d1fea8fda6ac99b77db54f1a8d832a1d22075dc0f1034ad948e7b1506cec79db06a185494c2b7937dd76e220153aad0c6862ccc70d WHIRLPOOL 3e956b49854eb622cce8b4ca782e8e5427422694d9817c47b8b5763e2a1261e28b3fe24d1957ab6ea647a3d4436e910dc609c58de6335b04b0d917c6e1819804 diff --git a/x11-misc/bmpanel/bmpanel-0.9.27-r1.ebuild b/x11-misc/bmpanel/bmpanel-0.9.27-r1.ebuild new file mode 100644 index 000000000000..cce6a31cb75a --- /dev/null +++ b/x11-misc/bmpanel/bmpanel-0.9.27-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit base eutils + +DESCRIPTION="a lightweight, NETWM compliant panel for X11 Window System" +HOMEPAGE="http://nsf.110mb.com/bmpanel" +SRC_URI="http://nsf.110mb.com/${PN}/${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 ~ppc ~x86" +IUSE="debug libev libevent" + +RDEPEND=">=media-libs/imlib2-1.4.0[X] + media-libs/freetype:2 + x11-libs/libX11 + x11-libs/libXrender + x11-libs/libXcomposite + x11-libs/libXfixes + media-libs/fontconfig + libev? ( dev-libs/libev ) + libevent? ( dev-libs/libevent )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/Makefile.patch" +) + +DOCS=( AUTHORS README ) + +src_configure() { + # the provided configure script is broken. + # it doesn't provide --disable-foo, --host etc. so we can't use econf here. + local myconf="--prefix=/usr --ugly" + + use debug && myconf="${myconf} --debug" + use libev && myconf="${myconf} --with-ev" + use libevent && myconf="${myconf} --with-event" + + einfo "./configure ${myconf}" + ./configure ${myconf} || die "configure failed" +} diff --git a/x11-misc/bmpanel/files/Makefile.patch b/x11-misc/bmpanel/files/Makefile.patch new file mode 100644 index 000000000000..d9cdc8308837 --- /dev/null +++ b/x11-misc/bmpanel/files/Makefile.patch @@ -0,0 +1,14 @@ +--- src/Makefile.old 2009-02-15 16:12:16.750885874 +0100 ++++ src/Makefile 2009-02-15 16:16:24.560106442 +0100 +@@ -12,10 +12,7 @@ ifneq ($(UGLY),1) + endif + + $(APP): $(OBJS) +- $(V_L)$(LD) $(LIBS) -o $@ $(OBJS) +-ifeq ($(DEBUG),0) +- $(V_S)strip -s $(APP) +-endif ++ $(V_L)$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + + $(BUILDDIR)/src/%.o: src/%.c .mk/config.mk + $(V_C)$(CC) -c -MMD $(CFLAGS) $< -o $@ diff --git a/x11-misc/bmpanel/metadata.xml b/x11-misc/bmpanel/metadata.xml new file mode 100644 index 000000000000..87d6ecef4754 --- /dev/null +++ b/x11-misc/bmpanel/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> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <use> + <flag name='libev'>Use the libev event loop interface</flag> + <flag name='libevent'>Use the libevent event loop interface</flag> + </use> +</pkgmetadata> diff --git a/x11-misc/bumblebee/Manifest b/x11-misc/bumblebee/Manifest new file mode 100644 index 000000000000..eefc4b2817f5 --- /dev/null +++ b/x11-misc/bumblebee/Manifest @@ -0,0 +1 @@ +DIST bumblebee-3.2.1.tar.gz 143110 SHA256 1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e SHA512 6f016f75d199577215ff00c059e196829e9d3efeb0fb6eebe6c3fad6176e330332e1ef25875a22ac9892895683d95899ea44f1ec1f85d31300ad83cb1fe0310a WHIRLPOOL 0d59b205f3c57afbf3fa6c8a55964afed8684e57db045e4c333c8e94f0b5d91637963a0b9f386eb6fe655716b8854e82ae5724dacdc76a34de6eb1f99ffc4908 diff --git a/x11-misc/bumblebee/bumblebee-3.2.1.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1.ebuild new file mode 100644 index 000000000000..60d7b3413d42 --- /dev/null +++ b/x11-misc/bumblebee/bumblebee-3.2.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib readme.gentoo systemd user + +DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets" +HOMEPAGE="http://bumblebee-project.org https://github.com/Bumblebee-Project/Bumblebee" +SRC_URI="http://bumblebee-project.org/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-3" +KEYWORDS="amd64 x86" + +IUSE="+bbswitch video_cards_nouveau video_cards_nvidia" + +RDEPEND=" + dev-libs/libbsd + virtual/opengl + x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?] + x11-misc/virtualgl:= + bbswitch? ( sys-power/bbswitch ) +" +DEPEND="${RDEPEND} + dev-libs/glib:2 + sys-apps/help2man + virtual/pkgconfig + x11-libs/libX11 +" + +REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )" + +src_configure() { + DOC_CONTENTS="In order to use Bumblebee, add your user to 'bumblebee' group. + You may need to setup your /etc/bumblebee/bumblebee.conf" + + if use video_cards_nvidia ; then + # Get paths to GL libs for all ABIs + local nvlib="" + for i in $(get_all_libdirs) ; do + nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib" + done + + local nvpref="/usr/$(get_libdir)/opengl/nvidia" + local xorgpref="/usr/$(get_libdir)/xorg/modules" + ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \ + CONF_LDPATH_NVIDIA=${nvlib#:} \ + CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}" + fi + + econf \ + --docdir=/usr/share/doc/"${PF}" \ + ${ECONF_PARAMS} +} + +src_install() { + newconfd "${FILESDIR}"/bumblebee.confd bumblebee + newinitd "${FILESDIR}"/bumblebee.initd bumblebee + newenvd "${FILESDIR}"/bumblebee.envd 99bumblebee + systemd_dounit scripts/systemd/bumblebeed.service + + readme.gentoo_create_doc + + default +} + +pkg_preinst() { + use video_cards_nvidia || rm "${ED}"/etc/bumblebee/xorg.conf.nvidia + use video_cards_nouveau || rm "${ED}"/etc/bumblebee/xorg.conf.nouveau + + enewgroup bumblebee +} diff --git a/x11-misc/bumblebee/files/bumblebee.confd b/x11-misc/bumblebee/files/bumblebee.confd new file mode 100644 index 000000000000..1c70206da6bf --- /dev/null +++ b/x11-misc/bumblebee/files/bumblebee.confd @@ -0,0 +1,3 @@ +# /etc/conf.d/bumblebee + +BUMBLEBEE_EXTRA_OPTS="--use-syslog"
\ No newline at end of file diff --git a/x11-misc/bumblebee/files/bumblebee.envd b/x11-misc/bumblebee/files/bumblebee.envd new file mode 100644 index 000000000000..e19cc56a1303 --- /dev/null +++ b/x11-misc/bumblebee/files/bumblebee.envd @@ -0,0 +1,3 @@ +# Comment this out if you are using VirtualGL also for other purposes and this +# slows down things for you. +VGL_READBACK="pbo" diff --git a/x11-misc/bumblebee/files/bumblebee.initd b/x11-misc/bumblebee/files/bumblebee.initd new file mode 100644 index 000000000000..fb618305cb32 --- /dev/null +++ b/x11-misc/bumblebee/files/bumblebee.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need xdm vgl +} + +PIDFILE="${PIDFILE:-/var/run/bumblebee.pid}" + +start() { + ebegin "Starting BumbleBee Daemon" + start-stop-daemon -S -p "${PIDFILE}" -x /usr/sbin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} --pidfile "${PIDFILE}" + eend $? +} + +stop() { + + ebegin "Stopping BumbleBee Daemon" + start-stop-daemon -K -p "${PIDFILE}" -R SIGTERM/10 + eend $? +} diff --git a/x11-misc/bumblebee/metadata.xml b/x11-misc/bumblebee/metadata.xml new file mode 100644 index 000000000000..15a5547eef62 --- /dev/null +++ b/x11-misc/bumblebee/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>pacho@gentoo.org</email> + <name>Pacho Ramos</name> + </maintainer> + <maintainer> + <email>rei4dan@gmail.com</email> + <name>My Th</name> + </maintainer> + <longdescription> + A rewrite of the original Bumblebee service, providing an elegant and stable + means of managing Optimus hybrid graphics chipsets. A primary goal of this + project is to not only enable use of the discrete GPU for rendering, but + also to enable smart power management of the dGPU when it's not in use. +</longdescription> + <use> + <flag name="bbswitch">Add dependency on <pkg>sys-kernel/bbswitch</pkg> for + PM feature</flag> + </use> + <upstream> + <remote-id type="github">Bumblebee-Project/Bumblebee</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/cairo-clock/Manifest b/x11-misc/cairo-clock/Manifest new file mode 100644 index 000000000000..6990ff87cfac --- /dev/null +++ b/x11-misc/cairo-clock/Manifest @@ -0,0 +1,2 @@ +DIST cairo-clock-0.3.4.tar.gz 832968 SHA256 f310de5bc03473a190d691679a831cd305351744ccf6eb7701f43dda6cd98a8d +DIST cairo-clock_0.3.3-1.tar.gz 1248398 SHA256 812ca12792940138ce4d154d1d0d7d1e37295cf06ac7caf02935d5ebf845dc4c diff --git a/x11-misc/cairo-clock/cairo-clock-0.3.3.ebuild b/x11-misc/cairo-clock/cairo-clock-0.3.3.ebuild new file mode 100644 index 000000000000..c6f809451e99 --- /dev/null +++ b/x11-misc/cairo-clock/cairo-clock-0.3.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit autotools base + +DESCRIPTION="An analog clock displaying the system-time" +HOMEPAGE="http://macslow.thepimp.net/?page_id=23" +SRC_URI="http://macslow.thepimp.net/projects/${PN}/${PN}_${PV}-1.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~x86 ~x86-fbsd" +IUSE="" +PATCHES=( "${FILESDIR}/${P}-gcc46.patch" ) + +RDEPEND="dev-libs/glib:2 + gnome-base/libglade + gnome-base/librsvg + >=x11-libs/cairo-1.2 + x11-libs/gtk+:2 + >=x11-libs/pango-1.10" +DEPEND="${DEPEND} + virtual/pkgconfig + dev-util/intltool + sys-devel/gettext" + +src_prepare() { + base_src_prepare + intltoolize --force --copy --automake || die "intltoolize failed" + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS BUGS ChangeLog NEWS README TODO +} diff --git a/x11-misc/cairo-clock/cairo-clock-0.3.4.ebuild b/x11-misc/cairo-clock/cairo-clock-0.3.4.ebuild new file mode 100644 index 000000000000..025ee8c4ae95 --- /dev/null +++ b/x11-misc/cairo-clock/cairo-clock-0.3.4.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="An analog clock displaying the system-time" +HOMEPAGE="http://macslow.net/?page_id=23" +SRC_URI="http://macslow.thepimp.net/projects/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND=">=dev-libs/glib-2.8 + >=gnome-base/libglade-2.6 + >=gnome-base/librsvg-2.14 + >=x11-libs/cairo-1.2 + >=x11-libs/gtk+-2.10:2 + >=x11-libs/pango-1.10" +DEPEND="${DEPEND} + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext" + +DOCS=( AUTHORS NEWS README TODO ) + +src_prepare() { + # cc: error: unrecognized option '--export-dynamic' + sed -i -e '/cairo_clock_LDFLAGS/s:=.*:= -rdynamic:' src/Makefile.in || die +} diff --git a/x11-misc/cairo-clock/files/cairo-clock-0.3.3-gcc46.patch b/x11-misc/cairo-clock/files/cairo-clock-0.3.3-gcc46.patch new file mode 100644 index 000000000000..76569cc84260 --- /dev/null +++ b/x11-misc/cairo-clock/files/cairo-clock-0.3.3-gcc46.patch @@ -0,0 +1,12 @@ +diff -uNr cairo-clock-0.3.3.ORIG/src/Makefile.am cairo-clock-0.3.3/src/Makefile.am +--- cairo-clock-0.3.3.ORIG/src/Makefile.am 2011-09-24 12:42:48.862380207 +0100 ++++ cairo-clock-0.3.3/src/Makefile.am 2011-09-24 12:43:29.135381441 +0100 +@@ -1,7 +1,7 @@ + bin_PROGRAMS = cairo_clock + transform = s/_/-/g + +-cairo_clock_LDFLAGS = -Wl, --export-dynamic ++cairo_clock_LDFLAGS = -rdynamic + + cairo_clock_LDADD = \ + $(GLIB_LIBS) \ diff --git a/x11-misc/cairo-clock/metadata.xml b/x11-misc/cairo-clock/metadata.xml new file mode 100644 index 000000000000..731225048652 --- /dev/null +++ b/x11-misc/cairo-clock/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> +</pkgmetadata> diff --git a/x11-misc/calise/Manifest b/x11-misc/calise/Manifest new file mode 100644 index 000000000000..6b5807c8427b --- /dev/null +++ b/x11-misc/calise/Manifest @@ -0,0 +1 @@ +DIST calise-0.4.2.tar.gz 102792 SHA256 fdc380fea57a10a22e3fc3a61f57ee988b56e144db29ac1ce79e76d4e2971551 SHA512 b08722083447780dbfe6a3614cf0891eed791819adc6c434b878c55cbad6fa122d3c2042274fe9acbc0c68a2acb3ca7835422ec6d2d1f867d6fd9ec806a4f750 WHIRLPOOL 6399b583c024ec8c0a507de941d5d3ce4dff895f261bf127f7bc8583e2a15af1d8db965b04458beb11c5c829dad917973c49a8f4f3fc2da2497fcd9a88879398 diff --git a/x11-misc/calise/calise-0.4.2.ebuild b/x11-misc/calise/calise-0.4.2.ebuild new file mode 100644 index 000000000000..9553d4f3b515 --- /dev/null +++ b/x11-misc/calise/calise-0.4.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +inherit distutils-r1 linux-info systemd + +DESCRIPTION="Computes ambient brightness and sets screen's correct backlight using a webcam" +HOMEPAGE="http://calise.sourceforge.net/" +SRC_URI="http://sourceforge.net/projects/${PN}/files/${PN}-beta/${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +CDEPEND="${RDEPEND} + dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject[${PYTHON_USEDEP}] + sci-astronomy/pyephem[${PYTHON_USEDEP}] + x11-themes/hicolor-icon-theme" +DEPEND="${CDEPEND} + dev-python/python-distutils-extra[${PYTHON_USEDEP}] + dev-util/intltool + sys-kernel/linux-headers + x11-libs/libX11" +RDEPEND="${CDEPEND}" + +CONFIG_CHECK="~BACKLIGHT_CLASS_DEVICE" + +S="${WORKDIR}/${PN}" + +src_prepare() { + # Add missing trailing ; to desktop file. + sed -i 's/^\(Categories=Utility\)$/\1;/' \ + share/applications/calise.desktop.in || die + + # Fix up bashisms. + sed -i 's:&>/dev/null:2>\&1 >/dev/null:' \ + other/init_scripts/init.d/${PN}d || die +} + +src_install() { + doconfd other/init_scripts/conf.d/${PN}d + doinitd other/init_scripts/init.d/${PN}d + systemd_dounit other/systemd_scripts/${PN}d.service + + install -D -m755 other/pm-utils_scripts/53${PN}d "${D}"/usr/lib/pm-utils/sleep.d/53${PN}d + + distutils-r1_src_install +} + +pkg_postinst() { + einfo "Optional runtime dependency: dev-python/PyQt4 for GUI" +} diff --git a/x11-misc/calise/metadata.xml b/x11-misc/calise/metadata.xml new file mode 100644 index 000000000000..b6a99d12873d --- /dev/null +++ b/x11-misc/calise/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>alex_y_xu@yahoo.ca</email> + <name>Alex Xu</name> + </maintainer> +</pkgmetadata> diff --git a/x11-misc/cbatticon/Manifest b/x11-misc/cbatticon/Manifest new file mode 100644 index 000000000000..5ee155d7c475 --- /dev/null +++ b/x11-misc/cbatticon/Manifest @@ -0,0 +1,3 @@ +DIST cbatticon-1.3.2.tar.gz 12749 SHA256 40f5b80e9a405ce79ecca74bcd72778372729b2add63a9c4e3386908cfb8ad4c SHA512 492b0e9e16b7a14a8bf184d213af7c7366a2cd8bfe9fe91e935e95a72e8f5213029d8b32512961f142da9db3832dd5fa98f291223b0d473a133132614ed926aa WHIRLPOOL 78cc260cc9060931cea9b9fa87e0be81b33f74641cd09a4592911612ae78e3c0ee80c4e2f045c186f030f389946264e1468451068c4fe319d9247d30f227d9b5 +DIST cbatticon-1.4.1.tar.gz 14334 SHA256 ba6ef1b588530d31af41173a188d7333d68c83ea6e579e6f93e8acde854c3a26 SHA512 5b133705b7cbc6b778f677117ae3f936511a8d35eafa00de1a2fdb7901ef8b98c76b0fc5e50fb21e3592c264ce4490a35806363d4446eca6384b48572a848577 WHIRLPOOL c91116fd1962e07227dd784e3c259cdfda8c46275f19994df488130bd3b4595808b79e8440c3710d96156b960bf14dd1fc876a390d762adb9e4289a4289a9705 +DIST cbatticon-1.4.2.tar.gz 14449 SHA256 987d979c426c12d7ef6ce7856a7c0d0d0a70720cafcada9ba6a4800d048ef502 SHA512 53d0ff654758a7c40f32a86a4364ff2b57f23bec9a10d3c9964eb7afb59bfd2d8ee21c5ece9d6bb4b99c54dbfb1f6b8ab7e36e93c246d0fef4e300416b1159fe WHIRLPOOL 4db6b81e668504001b39a53ca19920c57f6d868b236805b5c3a46a769b197053507681a6ebad4d70641a90919852144176cece64e99905eb9bb9f74dc430323d diff --git a/x11-misc/cbatticon/cbatticon-1.3.2.ebuild b/x11-misc/cbatticon/cbatticon-1.3.2.ebuild new file mode 100644 index 000000000000..c8c2adcd94b1 --- /dev/null +++ b/x11-misc/cbatticon/cbatticon-1.3.2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="A GTK+ battery icon which uses libudev to be lightweight and fast" +HOMEPAGE="https://github.com/ColinJones/cbatticon" +SRC_URI="https://github.com/ColinJones/cbatticon/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="x11-libs/gtk+:2 + x11-libs/libnotify" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_compile() { + tc-export CC + emake V=1 VERSION="${PF}" +} + +src_install() { + emake DESTDIR="${D}" V=1 VERSION="${PF}" install +} diff --git a/x11-misc/cbatticon/cbatticon-1.4.1.ebuild b/x11-misc/cbatticon/cbatticon-1.4.1.ebuild new file mode 100644 index 000000000000..01840f093d8e --- /dev/null +++ b/x11-misc/cbatticon/cbatticon-1.4.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="A lightweight and fast battery icon that sits in your system tray" +HOMEPAGE="https://github.com/ColinJones/cbatticon" +SRC_URI="https://github.com/ColinJones/cbatticon/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libnotify" + +RDEPEND=" + dev-libs/glib:2 + x11-libs/gtk+:3 + libnotify? ( x11-libs/libnotify ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +src_compile() { + tc-export CC + emake \ + $(usex libnotify WITH_NOTIFY=1 WITH_NOTIFY=0) \ + V=1 \ + VERSION="${PF}" \ + WITH_GTK3=1 +} + +src_install() { + emake DESTDIR="${D}" V=1 VERSION="${PF}" install +} diff --git a/x11-misc/cbatticon/cbatticon-1.4.2.ebuild b/x11-misc/cbatticon/cbatticon-1.4.2.ebuild new file mode 100644 index 000000000000..01840f093d8e --- /dev/null +++ b/x11-misc/cbatticon/cbatticon-1.4.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="A lightweight and fast battery icon that sits in your system tray" +HOMEPAGE="https://github.com/ColinJones/cbatticon" +SRC_URI="https://github.com/ColinJones/cbatticon/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libnotify" + +RDEPEND=" + dev-libs/glib:2 + x11-libs/gtk+:3 + libnotify? ( x11-libs/libnotify ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +src_compile() { + tc-export CC + emake \ + $(usex libnotify WITH_NOTIFY=1 WITH_NOTIFY=0) \ + V=1 \ + VERSION="${PF}" \ + WITH_GTK3=1 +} + +src_install() { + emake DESTDIR="${D}" V=1 VERSION="${PF}" install +} diff --git a/x11-misc/cbatticon/metadata.xml b/x11-misc/cbatticon/metadata.xml new file mode 100644 index 000000000000..419ec4f290b0 --- /dev/null +++ b/x11-misc/cbatticon/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <upstream> + <remote-id type="github">ColinJones/cbatticon</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/cdm/Manifest b/x11-misc/cdm/Manifest new file mode 100644 index 000000000000..53066f7e3a42 --- /dev/null +++ b/x11-misc/cdm/Manifest @@ -0,0 +1,2 @@ +DIST cdm-0.5.3.tar.gz 13751 SHA256 fb9ada13d3416305828c99943698fe7df3b0ab91bd6099e7b2707e1d8dd99a23 SHA512 bdb2746c41272d47defd6fcae3ab18bc71de6aaca521d8deee82d776fe1c06ea0eb679297dc731e9ecf878bee400aabccdb3d6d044f2ffcdc5e838488b0d6799 WHIRLPOOL 90265c475acc5a41e796cef9afb2087437885ca4b52f02e908d08f4e6f78201f1d09afeb0ebf906a6b3dcf3c7be69f9d5372d3035f85ed7d090137ce70bb8dc3 +DIST cdm-0.6.1_pre20130419.tar.gz 16056 SHA256 3fabec053271c39bbca44074fd05eda0ccf8c1e320664bb6d8f23fa79aca2bca SHA512 638d92c536609b8bf1d08f4be80933e5ff23acfe412ee6b72ff924edbe1e510110b7941caea9b206136ee5a75dddd998275e89c132feba0ed3df26ab1657bf8b WHIRLPOOL 5606bc125080c74b5b49aebc26283817e03ef84bff5e671fa7df9f3f8041c3975db34a2a00ad37578419319244dc66935908df9bdd8b19f6d4b9351e5ff11f50 diff --git a/x11-misc/cdm/cdm-0.5.3.ebuild b/x11-misc/cdm/cdm-0.5.3.ebuild new file mode 100644 index 000000000000..4d5474af85eb --- /dev/null +++ b/x11-misc/cdm/cdm-0.5.3.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit base pam eutils + +DESCRIPTION="The Console Display Manager" +HOMEPAGE="https://wiki.archlinux.org/index.php/CDM" +SRC_URI="http://dev.gentoo.org/~gienah/snapshots/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pam consolekit" +REQUIRED_USE="consolekit? ( pam )" + +DEPEND="app-shells/bash" + +RDEPEND="${DEPEND} + dev-util/dialog + x11-apps/xdpyinfo + x11-apps/xinit + consolekit? ( sys-auth/consolekit + sys-apps/dbus ) + pam? ( virtual/pam )" + +PATCHES=("${FILESDIR}/${PN}-0.5.3-invalid-MIT-cookie.patch") + +src_prepare() { + base_src_prepare + if ! use consolekit; then + sed -e 's@consolekit=yes@consolekit=no@' \ + -i "${S}/src/cdmrc" || die "Could not turn off consolekit in cdmrc" + fi +} + +src_install() { + if use pam ; then + pamd_mimic system-local-login cdm auth account session + fi + + insinto /usr/bin/ + insopts -m0755 + dobin src/${PN} + + insinto /etc + insopts -Dm644 + doins src/cdmrc + + insinto /usr/share/${PN} + insopts -m644 + doins src/xinitrc* + + insinto /etc/profile.d/ + insopts -Dm755 + doins src/zzz-${PN}-profile.sh + + # Install themes + insinto /usr/share/${PN}/themes + doins src/themes/* + # Copy documentation manually + dodoc CHANGELOG +} + +pkg_postinst() { + einfo "In order to use CDM you must first edit your /etc/cdmrc" + einfo "At least these should be edited before you start using CDM:" + einfo "wmbinlist=(awesome openbox-session startkde startxfce4 gnome-session)" + einfo "wmdisplist=(Awesome Openbox KDE Xfce Gnome)" + einfo "Add whatever WM/DE you have." + einfo "Then just login with your username" + ewarn "Remove xdm from default runlevel" +} diff --git a/x11-misc/cdm/cdm-0.6.1_pre20130419.ebuild b/x11-misc/cdm/cdm-0.6.1_pre20130419.ebuild new file mode 100644 index 000000000000..5d0dcb7860e0 --- /dev/null +++ b/x11-misc/cdm/cdm-0.6.1_pre20130419.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit pam eutils + +DESCRIPTION="The Console Display Manager" +HOMEPAGE="https://wiki.archlinux.org/index.php/CDM" +SRC_URI="http://dev.gentoo.org/~gienah/snapshots/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pam consolekit" +REQUIRED_USE="consolekit? ( pam )" + +DEPEND="app-shells/bash" + +RDEPEND="${DEPEND} + dev-util/dialog + x11-apps/xdpyinfo + x11-apps/xinit + consolekit? ( sys-auth/consolekit + sys-apps/dbus ) + pam? ( virtual/pam )" + +src_prepare() { + if ! use consolekit; then + sed -e 's@consolekit=yes@consolekit=no@' \ + -i "${S}/src/cdmrc" || die "Could not turn off consolekit in cdmrc" + fi +} + +src_install() { + if use pam ; then + pamd_mimic system-local-login cdm auth account session + fi + + insinto /usr/bin/ + insopts -m0755 + dobin src/${PN} src/${PN}-xlaunch + + insinto /etc + insopts -Dm644 + doins src/cdmrc + + insinto /etc/profile.d/ + insopts -Dm755 + newins src/profile.sh zzz-${PN}.sh + + # Install themes + insinto /usr/share/${PN}/themes + doins themes/* + # Copy documentation manually + dodoc ChangeLog-0.6 ChangeLog-before-0.6 README.md +} + +pkg_postinst() { + ewarn "In order to use CDM you must first edit your /etc/cdmrc" + ewarn "At least the binlist, namelist and flaglist entries should be added or edited" + ewarn "to specify the X window managers and console shells that you want before" + ewarn "you start CDM. Something like:" + ewarn "binlist=('xmonad' 'startkde' '/bin/zsh --login' '/bin/bash --login')" + ewarn "namelist=('XMonad' 'KDE' 'Console Zsh' 'Console Bash')" + ewarn "flaglist=(X X C C)" + ewarn "Ensure the flaglist X entries correspond to the X-Windows programs, and the" + ewarn "C entries correspond to console shells. Then just login with your username." + ewarn "Remove xdm from default runlevel." +} diff --git a/x11-misc/cdm/files/cdm-0.5.3-invalid-MIT-cookie.patch b/x11-misc/cdm/files/cdm-0.5.3-invalid-MIT-cookie.patch new file mode 100644 index 000000000000..1cec2b5c44a6 --- /dev/null +++ b/x11-misc/cdm/files/cdm-0.5.3-invalid-MIT-cookie.patch @@ -0,0 +1,19 @@ +commit c4b831f919e695d1c6882fbd76900dfa0f64cab5 +Author: ShadowKyogre <shadowkyogre@aim.com> +Date: Sat Feb 11 17:44:23 2012 -0800 + + Add case for handling the Invalid MIT cookie or something. + +diff --git a/src/cdm b/src/cdm +index d5aead5..59094cc 100755 +--- a/src/cdm ++++ b/src/cdm +@@ -128,6 +128,8 @@ else + elif [[ $dpyinfo = No\ protocol\ specified* ]]; then + # Display is in use by another user + let display=display+1 ++ elif [[ $dpyinfo = Invalid\ MIT* ]];then ++ let display=display+1 + else + break + fi diff --git a/x11-misc/cdm/metadata.xml b/x11-misc/cdm/metadata.xml new file mode 100644 index 000000000000..1574d2cf1ad0 --- /dev/null +++ b/x11-misc/cdm/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>gienah@gentoo.org</email> + <name>Mark Wright</name> +</maintainer> +<longdescription lang='en'> +CDM is a minimalistic, yet full-featured replacement for +login-managers like slim, kdm, gdm and qingy that provides a fast, +dialog-based login system without the overhead of the X Window System +or the instability of qingy. Written in pure bash, CDM has no other +dependencies, yet supports multiple users/sessions and can start +virtually any DE/WM. +</longdescription> +<use> + <flag name='consolekit'>Enable native consolekit support</flag> +</use> +</pkgmetadata> diff --git a/x11-misc/chgres/Manifest b/x11-misc/chgres/Manifest new file mode 100644 index 000000000000..c752d7a362c7 --- /dev/null +++ b/x11-misc/chgres/Manifest @@ -0,0 +1 @@ +DIST chgres-0.1.tar.gz 9219 RMD160 dff610b2c712f20fe7f3bd54c7d2a14083041532 SHA1 1ad31364d62df383198fc1f01a1c923a7059fdd1 SHA256 37f76425c92c5cf8d2448c87886474348d1a05ead1ac085aa885c2533c5efb26 diff --git a/x11-misc/chgres/chgres-0.1-r1.ebuild b/x11-misc/chgres/chgres-0.1-r1.ebuild new file mode 100644 index 000000000000..75f47747139c --- /dev/null +++ b/x11-misc/chgres/chgres-0.1-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="A very simple command line utility for changing X resolutions" +HOMEPAGE="http://hpwww.ec-lyon.fr/~vincent/" +SRC_URI="http://hpwww.ec-lyon.fr/~vincent/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +RDEPEND="x11-libs/libX11 + x11-libs/libXxf86dga + x11-libs/libXext + x11-libs/libXxf86vm" +DEPEND="${RDEPEND} + x11-proto/xf86vidmodeproto + x11-proto/xf86dgaproto" + +src_prepare() { + epatch "${FILESDIR}"/${P}-{flags,includes}.patch + tc-export CC +} + +src_install() { + dobin chgres + dodoc README +} diff --git a/x11-misc/chgres/files/chgres-0.1-flags.patch b/x11-misc/chgres/files/chgres-0.1-flags.patch new file mode 100644 index 000000000000..4045175dde09 --- /dev/null +++ b/x11-misc/chgres/files/chgres-0.1-flags.patch @@ -0,0 +1,21 @@ +--- a/Makefile 2001-04-18 23:07:56.000000000 +0200 ++++ b/Makefile 2010-09-17 03:08:55.000000000 +0200 +@@ -1,9 +1,9 @@ +-CFLAGS= +-LDFLAGS= -L/usr/X11R6/lib -lXext -lX11 -lXxf86vm -lXxf86dga ++LIBS= $(shell pkg-config --libs xext x11 xxf86vm xxf86dga) ++INCLUDES= $(shell pkg-config --cflags xext x11 xxf86vm xxf86dga) + prefix=/usr + + chgres: chgres.o +- $(CC) -o $@ $< $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) + + install: chgres + install -D -m 0555 chgres $(prefix)/bin/ +@@ -12,4 +12,4 @@ + rm -f core chgres.o chgres + + .c.o: +- $(CC) $(CFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ diff --git a/x11-misc/chgres/files/chgres-0.1-includes.patch b/x11-misc/chgres/files/chgres-0.1-includes.patch new file mode 100644 index 000000000000..c972ab96fc8f --- /dev/null +++ b/x11-misc/chgres/files/chgres-0.1-includes.patch @@ -0,0 +1,15 @@ +--- a/chgres.c 2001-04-18 22:40:05.000000000 +0200 ++++ b/chgres.c 2010-09-17 03:20:37.000000000 +0200 +@@ -17,9 +17,11 @@ + */ + + #include <X11/Xlib.h> +-#include <X11/extensions/xf86dga.h> ++#include <X11/extensions/Xxf86dga.h> + #include <X11/extensions/xf86vmode.h> + #include <stdio.h> ++#include <stdlib.h> /* exit() */ ++#include <strings.h> /* strcasecmp() */ + + #define VERSION "0.1" + diff --git a/x11-misc/chgres/metadata.xml b/x11-misc/chgres/metadata.xml new file mode 100644 index 000000000000..170550f4616e --- /dev/null +++ b/x11-misc/chgres/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <longdescription>chgres is a small tool which uses the XFree86-VidModeExtension X11 extension to query and set the resolution of your XFree86 display, without restarting it. It has a simple command-line user interface which makes it suitable for use in shell scripts.</longdescription> +</pkgmetadata> diff --git a/x11-misc/colord/Manifest b/x11-misc/colord/Manifest new file mode 100644 index 000000000000..029df26c031f --- /dev/null +++ b/x11-misc/colord/Manifest @@ -0,0 +1,3 @@ +DIST colord-1.2.10.tar.xz 1203248 SHA256 1dea0453cc778326e700f6cb0a206836a57dedfb0fbdc3acaf2be02ea77a963a SHA512 fdf6f41e84fb37905e3c2e37a7d095d5271759f17e292cf5cf23f846ea6805949185c1a0548c4c4e24e2a385e655cd30609423921b0389076f5373ca1b8578e7 WHIRLPOOL d70fd0d3fde030f6c592f49ae146ccbb38c00ad0c28e2253ea8e2e00436c19fc4cf53aead6360e04eb7509a8d94bd07ffab6dde5592fd050dd37de3355b76f87 +DIST colord-1.2.11.tar.xz 1205468 SHA256 dac29c83659703a8548db561bc670832f26b30f7a88ed90a6530eb052a10df8f SHA512 fec46d295b1b4caba7c0a666eccbf3ce325fab4bd56e6a841cfdd9b7a381384dff3c71a744dda0e88ed2e99519c278c1ee495e6b8870c74cb4939dbc08d4bb96 WHIRLPOOL 7372d1a52c897e133fa75c8e06c47b3f7035cb01a3ec858f74ddc741613b11554a2d6dac6c886347f4e82baa16091cc41232a5deb3db4ae5a4930be0d1de6f41 +DIST colord-1.2.9.tar.xz 1200936 SHA256 48ce0db4f327c94c2bec11fed98a9a73f580d34c6edcd636d90831fe3bea5ae4 SHA512 d25497fa6460e5ffd7ce872bf16b60916e879cdd3aaec4c81dd4ab8446949767f3d3d49a3e654813445b049a9653334ba22d8e9a91cf6699c6063c01be382a75 WHIRLPOOL ca8edc19b162e4e97c263c1bc64d2a655d5adafeb2cb64c8bdbd7eb4e20052ce76f8ad332168088a97e654d20f0c5215d62829fed7471ac69faed3a79fc9f283 diff --git a/x11-misc/colord/colord-1.2.10.ebuild b/x11-misc/colord/colord-1.2.10.ebuild new file mode 100644 index 000000000000..a8df68ac111d --- /dev/null +++ b/x11-misc/colord/colord-1.2.10.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" +VALA_USE_DEPEND="vapigen" + +inherit autotools bash-completion-r1 check-reqs eutils gnome2 user systemd udev vala multilib-minimal + +DESCRIPTION="System service to accurately color manage input and output devices" +HOMEPAGE="http://www.freedesktop.org/software/colord/" +SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0/2" # subslot = libcolord soname version +KEYWORDS="alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" + +# We prefer policykit enabled by default, bug #448058 +IUSE="argyllcms examples extra-print-profiles +gusb +introspection +policykit scanner systemd +udev vala" +REQUIRED_USE=" + gusb? ( udev ) + scanner? ( udev ) + vala? ( introspection ) +" + +COMMON_DEPEND=" + dev-db/sqlite:3= + >=dev-libs/glib-2.36:2[${MULTILIB_USEDEP}] + >=media-libs/lcms-2.6:2=[${MULTILIB_USEDEP}] + argyllcms? ( media-gfx/argyllcms ) + gusb? ( >=dev-libs/libgusb-0.2.2[introspection?,${MULTILIB_USEDEP}] ) + introspection? ( >=dev-libs/gobject-introspection-0.9.8:= ) + policykit? ( >=sys-auth/polkit-0.103 ) + scanner? ( + media-gfx/sane-backends + sys-apps/dbus ) + systemd? ( >=sys-apps/systemd-44:0= ) + udev? ( + virtual/udev + virtual/libgudev:= + virtual/libudev:=[${MULTILIB_USEDEP}] + ) +" +RDEPEND="${COMMON_DEPEND} + !media-gfx/shared-color-profiles + !<=media-gfx/colorhug-client-0.1.13 +" +DEPEND="${COMMON_DEPEND} + dev-libs/libxslt + >=dev-util/gtk-doc-am-1.9 + >=dev-util/intltool-0.35 + >=sys-devel/gettext-0.17 + virtual/pkgconfig[${MULTILIB_USEDEP}] + extra-print-profiles? ( media-gfx/argyllcms ) + vala? ( $(vala_depend) ) +" + +# FIXME: needs pre-installed dbus service files +RESTRICT="test" + +# According to upstream comment in colord.spec.in, building the extra print +# profiles requires >=4G of memory +CHECKREQS_MEMORY="4G" + +pkg_pretend() { + use extra-print-profiles && check-reqs_pkg_pretend +} + +pkg_setup() { + use extra-print-profiles && check-reqs_pkg_setup + enewgroup colord + enewuser colord -1 -1 /var/lib/colord colord +} + +src_prepare() { + # Adapt to Gentoo paths + sed -i -e 's/spotread/argyll-spotread/' \ + src/sensors/cd-sensor-argyll.c \ + configure.ac || die + + eautoreconf + use vala && vala_src_prepare + gnome2_src_prepare +} + +multilib_src_configure() { + # Reverse tools require gusb + # bash-completion test does not work on gentoo + local myconf=( + --disable-bash-completion + --disable-examples + --disable-static + --enable-libcolordcompat + --with-daemon-user=colord + --localstatedir="${EPREFIX}"/var + $(multilib_native_use_enable argyllcms argyllcms-sensor) + $(multilib_native_use_enable extra-print-profiles print-profiles) + $(multilib_native_usex extra-print-profiles COLPROF="$(type -P argyll-colprof)" "") + $(use_enable gusb) + $(multilib_native_use_enable gusb reverse) + $(multilib_native_use_enable introspection) + $(multilib_native_use_enable policykit polkit) + $(multilib_native_use_enable scanner sane) + $(multilib_native_use_enable systemd systemd-login) + $(use_enable udev) + --with-udevrulesdir="$(get_udevdir)"/rules.d + $(multilib_native_use_enable vala) + "$(systemd_with_unitdir)" + ) + + if ! multilib_is_native_abi; then + # disable some extraneous checks + myconf+=( + SQLITE_{CFLAGS,LIBS}=' ' + GUDEV_{CFLAGS,LIBS}=' ' + ) + fi + + ECONF_SOURCE=${S} \ + gnome2_src_configure "${myconf[@]}" +} + +multilib_src_compile() { + if multilib_is_native_abi; then + gnome2_src_compile + else + emake -C lib/colord + use gusb && emake -C lib/colorhug + emake -C lib/compat + fi +} + +multilib_src_test() { + if multilib_is_native_abi; then + default + else + emake -C lib/colord check + use gusb && emake -C lib/colorhug check + emake -C lib/compat check + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + gnome2_src_install + else + gnome2_src_install -C lib/colord + use gusb && gnome2_src_install -C lib/colorhug + gnome2_src_install -C lib/compat + gnome2_src_install -C contrib/session-helper install-libcolord_includeHEADERS + fi +} + +multilib_src_install_all() { + DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README.md TODO" + einstalldocs + + newbashcomp data/colormgr colormgr + + # Ensure config and profile directories exist and /var/lib/colord/* + # is writable by colord user + keepdir /var/lib/color{,d}/icc + fowners colord:colord /var/lib/colord{,/icc} + + if use examples; then + docinto examples + dodoc examples/*.c + fi +} diff --git a/x11-misc/colord/colord-1.2.11.ebuild b/x11-misc/colord/colord-1.2.11.ebuild new file mode 100644 index 000000000000..8e4bdf785286 --- /dev/null +++ b/x11-misc/colord/colord-1.2.11.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" +VALA_USE_DEPEND="vapigen" + +inherit autotools bash-completion-r1 check-reqs eutils gnome2 user systemd udev vala multilib-minimal + +DESCRIPTION="System service to accurately color manage input and output devices" +HOMEPAGE="http://www.freedesktop.org/software/colord/" +SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0/2" # subslot = libcolord soname version +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" + +# We prefer policykit enabled by default, bug #448058 +IUSE="argyllcms examples extra-print-profiles +gusb +introspection +policykit scanner systemd +udev vala" +REQUIRED_USE=" + gusb? ( udev ) + scanner? ( udev ) + vala? ( introspection ) +" + +COMMON_DEPEND=" + dev-db/sqlite:3= + >=dev-libs/glib-2.36:2[${MULTILIB_USEDEP}] + >=media-libs/lcms-2.6:2=[${MULTILIB_USEDEP}] + argyllcms? ( media-gfx/argyllcms ) + gusb? ( >=dev-libs/libgusb-0.2.2[introspection?,${MULTILIB_USEDEP}] ) + introspection? ( >=dev-libs/gobject-introspection-0.9.8:= ) + policykit? ( >=sys-auth/polkit-0.103 ) + scanner? ( + media-gfx/sane-backends + sys-apps/dbus ) + systemd? ( >=sys-apps/systemd-44:0= ) + udev? ( + virtual/udev + virtual/libgudev:= + virtual/libudev:=[${MULTILIB_USEDEP}] + ) +" +RDEPEND="${COMMON_DEPEND} + !media-gfx/shared-color-profiles + !<=media-gfx/colorhug-client-0.1.13 +" +DEPEND="${COMMON_DEPEND} + dev-libs/libxslt + >=dev-util/gtk-doc-am-1.9 + >=dev-util/intltool-0.35 + >=sys-devel/gettext-0.17 + virtual/pkgconfig[${MULTILIB_USEDEP}] + extra-print-profiles? ( media-gfx/argyllcms ) + vala? ( $(vala_depend) ) +" + +# FIXME: needs pre-installed dbus service files +RESTRICT="test" + +# According to upstream comment in colord.spec.in, building the extra print +# profiles requires >=4G of memory +CHECKREQS_MEMORY="4G" + +pkg_pretend() { + use extra-print-profiles && check-reqs_pkg_pretend +} + +pkg_setup() { + use extra-print-profiles && check-reqs_pkg_setup + enewgroup colord + enewuser colord -1 -1 /var/lib/colord colord +} + +src_prepare() { + # Adapt to Gentoo paths + sed -i -e 's/spotread/argyll-spotread/' \ + src/sensors/cd-sensor-argyll.c \ + configure.ac || die + + eautoreconf + use vala && vala_src_prepare + gnome2_src_prepare +} + +multilib_src_configure() { + # Reverse tools require gusb + # bash-completion test does not work on gentoo + local myconf=( + --disable-bash-completion + --disable-examples + --disable-static + --enable-libcolordcompat + --with-daemon-user=colord + --localstatedir="${EPREFIX}"/var + $(multilib_native_use_enable argyllcms argyllcms-sensor) + $(multilib_native_use_enable extra-print-profiles print-profiles) + $(multilib_native_usex extra-print-profiles COLPROF="$(type -P argyll-colprof)" "") + $(use_enable gusb) + $(multilib_native_use_enable gusb reverse) + $(multilib_native_use_enable introspection) + $(multilib_native_use_enable policykit polkit) + $(multilib_native_use_enable scanner sane) + $(multilib_native_use_enable systemd systemd-login) + $(use_enable udev) + --with-udevrulesdir="$(get_udevdir)"/rules.d + $(multilib_native_use_enable vala) + "$(systemd_with_unitdir)" + ) + + if ! multilib_is_native_abi; then + # disable some extraneous checks + myconf+=( + SQLITE_{CFLAGS,LIBS}=' ' + GUDEV_{CFLAGS,LIBS}=' ' + ) + fi + + ECONF_SOURCE=${S} \ + gnome2_src_configure "${myconf[@]}" +} + +multilib_src_compile() { + if multilib_is_native_abi; then + gnome2_src_compile + else + emake -C lib/colord + use gusb && emake -C lib/colorhug + emake -C lib/compat + fi +} + +multilib_src_test() { + if multilib_is_native_abi; then + default + else + emake -C lib/colord check + use gusb && emake -C lib/colorhug check + emake -C lib/compat check + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + gnome2_src_install + else + gnome2_src_install -C lib/colord + use gusb && gnome2_src_install -C lib/colorhug + gnome2_src_install -C lib/compat + gnome2_src_install -C contrib/session-helper install-libcolord_includeHEADERS + fi +} + +multilib_src_install_all() { + DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README.md TODO" + einstalldocs + + newbashcomp data/colormgr colormgr + + # Ensure config and profile directories exist and /var/lib/colord/* + # is writable by colord user + keepdir /var/lib/color{,d}/icc + fowners colord:colord /var/lib/colord{,/icc} + + if use examples; then + docinto examples + dodoc examples/*.c + fi +} diff --git a/x11-misc/colord/colord-1.2.9.ebuild b/x11-misc/colord/colord-1.2.9.ebuild new file mode 100644 index 000000000000..7b4e1b9181f9 --- /dev/null +++ b/x11-misc/colord/colord-1.2.9.ebuild @@ -0,0 +1,172 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" +VALA_USE_DEPEND="vapigen" +VALA_MIN_API_VERSION="0.18" + +inherit autotools bash-completion-r1 check-reqs eutils gnome2 multilib-minimal user systemd udev vala + +DESCRIPTION="System service to accurately color manage input and output devices" +HOMEPAGE="http://www.freedesktop.org/software/colord/" +SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0/2" # subslot = libcolord soname version +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" + +# We prefer policykit enabled by default, bug #448058 +IUSE="argyllcms examples extra-print-profiles +gusb +introspection +policykit scanner systemd +udev vala" +REQUIRED_USE=" + gusb? ( udev ) + scanner? ( udev ) + vala? ( introspection ) +" + +COMMON_DEPEND=" + dev-db/sqlite:3= + >=dev-libs/glib-2.36:2[${MULTILIB_USEDEP}] + >=media-libs/lcms-2.6:2=[${MULTILIB_USEDEP}] + argyllcms? ( media-gfx/argyllcms ) + gusb? ( >=dev-libs/libgusb-0.2.2[introspection?,${MULTILIB_USEDEP}] ) + introspection? ( >=dev-libs/gobject-introspection-0.9.8 ) + policykit? ( >=sys-auth/polkit-0.103 ) + scanner? ( + media-gfx/sane-backends + sys-apps/dbus ) + systemd? ( >=sys-apps/systemd-44:0= ) + udev? ( + virtual/udev + virtual/libgudev:= + virtual/libudev:=[${MULTILIB_USEDEP}] + ) +" +RDEPEND="${COMMON_DEPEND} + !media-gfx/shared-color-profiles + !<=media-gfx/colorhug-client-0.1.13 +" +DEPEND="${COMMON_DEPEND} + dev-libs/libxslt + >=dev-util/gtk-doc-am-1.9 + >=dev-util/intltool-0.35 + >=sys-devel/gettext-0.17 + virtual/pkgconfig[${MULTILIB_USEDEP}] + extra-print-profiles? ( media-gfx/argyllcms ) + vala? ( $(vala_depend) ) +" + +# FIXME: needs pre-installed dbus service files +RESTRICT="test" + +# According to upstream comment in colord.spec.in, building the extra print +# profiles requires >=4G of memory +CHECKREQS_MEMORY="4G" + +pkg_pretend() { + use extra-print-profiles && check-reqs_pkg_pretend +} + +pkg_setup() { + use extra-print-profiles && check-reqs_pkg_setup + enewgroup colord + enewuser colord -1 -1 /var/lib/colord colord +} + +src_prepare() { + # Adapt to Gentoo paths + sed -i -e 's/spotread/argyll-spotread/' \ + src/sensors/cd-sensor-argyll.c \ + configure.ac || die + + eautoreconf + use vala && vala_src_prepare + gnome2_src_prepare +} + +multilib_src_configure() { + # Reverse tools require gusb + # bash-completion test does not work on gentoo + local myconf=( + --disable-bash-completion + --disable-examples + --disable-static + --enable-libcolordcompat + --with-daemon-user=colord + --localstatedir="${EPREFIX}"/var + $(multilib_native_use_enable argyllcms argyllcms-sensor) + $(multilib_native_use_enable extra-print-profiles print-profiles) + $(multilib_native_usex extra-print-profiles COLPROF="$(type -P argyll-colprof)" "") + $(use_enable gusb) + $(multilib_native_use_enable gusb reverse) + $(multilib_native_use_enable introspection) + $(multilib_native_use_enable policykit polkit) + $(multilib_native_use_enable scanner sane) + $(multilib_native_use_enable systemd systemd-login) + $(use_enable udev) + --with-udevrulesdir="$(get_udevdir)"/rules.d + $(multilib_native_use_enable vala) + "$(systemd_with_unitdir)" + ) + + if ! multilib_is_native_abi; then + # disable some extraneous checks + myconf+=( + SQLITE_{CFLAGS,LIBS}=' ' + GUDEV_{CFLAGS,LIBS}=' ' + ) + fi + + ECONF_SOURCE=${S} \ + gnome2_src_configure "${myconf[@]}" +} + +multilib_src_compile() { + if multilib_is_native_abi; then + gnome2_src_compile + else + emake -C lib/colord + use gusb && emake -C lib/colorhug + emake -C lib/compat + fi +} + +multilib_src_test() { + if multilib_is_native_abi; then + default + else + emake -C lib/colord check + use gusb && emake -C lib/colorhug check + emake -C lib/compat check + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + gnome2_src_install + else + gnome2_src_install -C lib/colord + use gusb && gnome2_src_install -C lib/colorhug + gnome2_src_install -C lib/compat + gnome2_src_install -C contrib/session-helper install-libcolord_includeHEADERS + fi +} + +multilib_src_install_all() { + DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README.md TODO" + einstalldocs + + newbashcomp data/colormgr colormgr + + # Ensure config and profile directories exist and /var/lib/colord/* + # is writable by colord user + keepdir /var/lib/color{,d}/icc + fowners colord:colord /var/lib/colord{,/icc} + + if use examples; then + docinto examples + dodoc examples/*.c + fi +} diff --git a/x11-misc/colord/metadata.xml b/x11-misc/colord/metadata.xml new file mode 100644 index 000000000000..419ce9848522 --- /dev/null +++ b/x11-misc/colord/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>gnome</herd> + <use> + <flag name="argyllcms">Enable ArgyllCMS sensor</flag> + <flag name="extra-print-profiles">Generate extra print profiles. + Warning: significant build time and memory requirements.</flag> + <flag name="gusb">Enable <pkg>dev-libs/libgusb</pkg> support, needed for + colorimeter drivers</flag> + </use> +</pkgmetadata> diff --git a/x11-misc/compton/Manifest b/x11-misc/compton/Manifest new file mode 100644 index 000000000000..d7a0fbc900f1 --- /dev/null +++ b/x11-misc/compton/Manifest @@ -0,0 +1,2 @@ +DIST compton-0.1_beta1.tar.gz 140466 SHA256 28a770e81ae9e33d759044a75cd2b57329b17bf211cf0e795bc73e56933df8d6 SHA512 fa3e9eb8d85071ac38aa2834f7a14679fce95e1367f6c58987e2d56c5d90e7dd6e3945557e91512199a78bc38eba7f22bdd6efa872d8b108cb33c4579501ae95 WHIRLPOOL faa3a2c23ab1af3f340615bb7593cbd0e81edd36398fb58293ddc543df80ecc13a7e2f2ff8f281cb478f94713896b081b39607c0918d524dfa931a4a1b1c412f +DIST compton-0.1_beta2.tar.gz 144239 SHA256 7b9cd52a57326116fb5db3f5f89b7d50e17715252d9fd79b70b45ace30a6b009 SHA512 c3a019d90e32559d44e3a4969bcc15a15837db9c9519ce8cc70b1bd3d0cb16d29449f68cc2f6a8d834569c9620ec6533ab85c1586da957c69b1ae341d9584535 WHIRLPOOL 39ca9718bc79d4542d73cce39bb51fc9b9c0497a30914ab044b920f72a3c2f8cbd315c5dc97c999c1f0ca798ae692ada4626f069914b6835f0c225638b486422 diff --git a/x11-misc/compton/compton-0.1_beta1.ebuild b/x11-misc/compton/compton-0.1_beta1.ebuild new file mode 100644 index 000000000000..9d39d7360ddd --- /dev/null +++ b/x11-misc/compton/compton-0.1_beta1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python3_3 ) +inherit toolchain-funcs python-r1 + +DESCRIPTION="A compositor for X, and a fork of xcompmgr-dana" +HOMEPAGE="http://github.com/chjj/compton" +SRC_URI="https://github.com/chjj/compton/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dbus +drm opengl +pcre" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +COMMON_DEPEND="${PYTHON_DEPS} + dev-libs/libconfig + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXrender + dbus? ( sys-apps/dbus ) + opengl? ( virtual/opengl ) + pcre? ( dev-libs/libpcre:3 )" +RDEPEND="${COMMON_DEPEND} + x11-apps/xprop + x11-apps/xwininfo" +DEPEND="${COMMON_DEPEND} + app-text/asciidoc + virtual/pkgconfig + x11-proto/xproto + drm? ( x11-libs/libdrm )" + +nobuildit() { use $1 || echo yes ; } + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]]; then + tc-export CC + fi +} + +src_compile() { + emake docs + NO_DBUS=$(nobuildit dbus) \ + NO_VSYNC_DRM=$(nobuildit drm) \ + NO_VSYNC_OPENGL=$(nobuildit opengl) \ + NO_REGEX_PCRE=$(nobuildit pcre) \ + emake compton +} + +src_install() { + NO_DBUS=$(nobuildit dbus) \ + NO_VSYNC_DRM=$(nobuildit drm) \ + NO_VSYNC_OPENGL=$(nobuildit opengl) \ + NO_REGEX_PCRE=$(nobuildit pcre) \ + default + docinto examples + dodoc compton.sample.conf dbus-examples/* + python_foreach_impl python_newscript bin/compton-convgen.py compton-convgen +} diff --git a/x11-misc/compton/compton-0.1_beta2.ebuild b/x11-misc/compton/compton-0.1_beta2.ebuild new file mode 100644 index 000000000000..dbfcd55efbfd --- /dev/null +++ b/x11-misc/compton/compton-0.1_beta2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python3_3 python3_4 ) +inherit toolchain-funcs python-r1 + +DESCRIPTION="A compositor for X, and a fork of xcompmgr-dana" +HOMEPAGE="http://github.com/chjj/compton" +SRC_URI="https://github.com/chjj/compton/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="dbus +drm opengl +pcre xinerama" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +COMMON_DEPEND="${PYTHON_DEPS} + dev-libs/libconfig + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXrender + dbus? ( sys-apps/dbus ) + opengl? ( virtual/opengl ) + pcre? ( dev-libs/libpcre:3 ) + xinerama? ( x11-libs/libXinerama )" +RDEPEND="${COMMON_DEPEND} + x11-apps/xprop + x11-apps/xwininfo" +DEPEND="${COMMON_DEPEND} + app-text/asciidoc + virtual/pkgconfig + x11-proto/xproto + drm? ( x11-libs/libdrm )" + +nobuildit() { use $1 || echo yes ; } + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]]; then + tc-export CC + fi +} + +src_compile() { + emake docs + + NO_DBUS=$(nobuildit dbus) \ + NO_XINERAMA=$(nobuildit xinerama) \ + NO_VSYNC_DRM=$(nobuildit drm) \ + NO_VSYNC_OPENGL=$(nobuildit opengl) \ + NO_REGEX_PCRE=$(nobuildit pcre) \ + emake compton +} + +src_install() { + NO_DBUS=$(nobuildit dbus) \ + NO_VSYNC_DRM=$(nobuildit drm) \ + NO_VSYNC_OPENGL=$(nobuildit opengl) \ + NO_REGEX_PCRE=$(nobuildit pcre) \ + default + docinto examples + dodoc compton.sample.conf dbus-examples/* + python_foreach_impl python_newscript bin/compton-convgen.py compton-convgen +} diff --git a/x11-misc/compton/compton-9999.ebuild b/x11-misc/compton/compton-9999.ebuild new file mode 100644 index 000000000000..5d1ce4566d32 --- /dev/null +++ b/x11-misc/compton/compton-9999.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python3_3 python3_4 ) +inherit toolchain-funcs python-r1 git-2 + +DESCRIPTION="A compositor for X, and a fork of xcompmgr-dana" +HOMEPAGE="http://github.com/chjj/compton" +SRC_URI="" + +EGIT_REPO_URI="git://github.com/chjj/compton.git" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="dbus +drm opengl +pcre xinerama" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +COMMON_DEPEND="${PYTHON_DEPS} + dev-libs/libconfig + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXrender + dbus? ( sys-apps/dbus ) + opengl? ( virtual/opengl ) + pcre? ( dev-libs/libpcre:3 ) + xinerama? ( x11-libs/libXinerama )" +RDEPEND="${COMMON_DEPEND} + x11-apps/xprop + x11-apps/xwininfo" +DEPEND="${COMMON_DEPEND} + app-text/asciidoc + virtual/pkgconfig + x11-proto/xproto + drm? ( x11-libs/libdrm )" + +nobuildit() { use $1 || echo yes ; } + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]]; then + tc-export CC + fi +} + +src_compile() { + emake docs + + NO_DBUS=$(nobuildit dbus) \ + NO_XINERAMA=$(nobuildit xinerama) \ + NO_VSYNC_DRM=$(nobuildit drm) \ + NO_VSYNC_OPENGL=$(nobuildit opengl) \ + NO_REGEX_PCRE=$(nobuildit pcre) \ + emake compton +} + +src_install() { + NO_DBUS=$(nobuildit dbus) \ + NO_VSYNC_DRM=$(nobuildit drm) \ + NO_VSYNC_OPENGL=$(nobuildit opengl) \ + NO_REGEX_PCRE=$(nobuildit pcre) \ + default + docinto examples + dodoc compton.sample.conf dbus-examples/* + python_foreach_impl python_newscript bin/compton-convgen.py compton-convgen +} diff --git a/x11-misc/compton/metadata.xml b/x11-misc/compton/metadata.xml new file mode 100644 index 000000000000..bad8680cf41c --- /dev/null +++ b/x11-misc/compton/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <use> + <flag name="drm">Enable VSync with DRM_IOCTL_WAIT_VBLANK</flag> + <flag name="opengl">Enable VSync with SGI_swap_control OpenGL extension</flag> + </use> + <upstream> + <remote-id type="github">chjj/compton</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/dclock/Manifest b/x11-misc/dclock/Manifest new file mode 100644 index 000000000000..b32bb93c9c5a --- /dev/null +++ b/x11-misc/dclock/Manifest @@ -0,0 +1,2 @@ +DIST dclock_2.2.2-4.debian.tar.gz 6576 SHA256 259aa8e1d9b0b0ca813285c295246921bedb9ff047db01facbf0a49d4f513f34 SHA512 9b1c61c9ad4ac19b9bd128915ccb846b658ecdad8af8cb7197cef49a75f8e6abefd2375b1814364889af3c29b095cdf8dc1cf40b36683842f1d0a272bd9e188f WHIRLPOOL be9cd64af1390a28aacf9cd48ec602fad1fc9fb2b4fc86673060966559b96611b0e03be229a1b0de10769b3bdd747e9d6b06f30e43b5067cbea9faddc8a91ae7 +DIST dclock_2.2.2.orig.tar.gz 63583 SHA256 d14ebc107b4b837ac3ee79ea639c32d7cec658df653687e665979640cd339c3c SHA512 c43ba031fd0d9ba2bc7e8fe9becc73591bfc47cd4ca931df03fa55207cfb148e24e5d702a7de5af8b67e188c561eae2fb7da14162f6a982d0abbb3251c32372c WHIRLPOOL 5f0dc1acd97c22b42aee274d963f6ddc687d648ab43861a8b862567a37adce036e8e662d5b5dc4aac7e26625d4de019fab85d5005c2a89f27580b8ca494277b5 diff --git a/x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild b/x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild new file mode 100644 index 000000000000..7560bec1bffb --- /dev/null +++ b/x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="Digital clock for the X window system" +HOMEPAGE="http://packages.qa.debian.org/d/dclock.html" +SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p*/}.orig.tar.gz + mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p/-}.debian.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="xft" + +RDEPEND=" + xft? ( + media-libs/freetype + x11-libs/libXft + ) + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXt +" +DEPEND=" + ${RDEPEND} + app-text/rman + x11-misc/imake + xft? ( virtual/pkgconfig ) +" + +S=${WORKDIR}/${P/_p*/} + +src_prepare() { + EPATCH_FORCE=yes EPATCH_SUFFIX=diff epatch "${WORKDIR}"/debian/patches + epatch "${FILESDIR}"/${P}-include.patch +} + +src_configure() { + if use xft; then + append-cppflags \ + -DXFT_SUPPORT \ + $( $(tc-getPKG_CONFIG) --cflags freetype2) + else + append-cppflags -UXFT_SUPPORT + sed -i -e '/EXTRA_LIBRARIES/s|^|#|g' Imakefile || die + fi + + xmkmf || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" install{,.man} + + insinto /usr/share/sounds + doins sounds/* + + insinto /usr/share/X11/app-defaults + newins Dclock.ad DClock + + dodoc README TODO +} diff --git a/x11-misc/dclock/dclock-2.2.2_p4.ebuild b/x11-misc/dclock/dclock-2.2.2_p4.ebuild new file mode 100644 index 000000000000..ae6ac54df88b --- /dev/null +++ b/x11-misc/dclock/dclock-2.2.2_p4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils toolchain-funcs + +DESCRIPTION="Digital clock for the X window system" +HOMEPAGE="http://packages.qa.debian.org/d/dclock.html" +SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p*/}.orig.tar.gz + mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p/-}.debian.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXt" +DEPEND="${RDEPEND} + app-text/rman + x11-misc/imake" + +S=${WORKDIR}/${P/_p*/} + +src_prepare() { + EPATCH_FORCE=yes EPATCH_SUFFIX=diff epatch "${WORKDIR}"/debian/patches + epatch "${FILESDIR}"/${P}-include.patch +} + +src_configure() { + xmkmf || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" install{,.man} + + insinto /usr/share/sounds + doins sounds/* + + insinto /usr/share/X11/app-defaults + newins Dclock.ad DClock + + dodoc README TODO +} diff --git a/x11-misc/dclock/files/dclock-2.2.2_p4-include.patch b/x11-misc/dclock/files/dclock-2.2.2_p4-include.patch new file mode 100644 index 000000000000..2fbdd884fafb --- /dev/null +++ b/x11-misc/dclock/files/dclock-2.2.2_p4-include.patch @@ -0,0 +1,10 @@ +--- dclock.c ++++ dclock.c +@@ -7,6 +7,7 @@ + * manager: *Dclock.seconds: on + */ + #include <stdio.h> ++#include <stdlib.h> /* exit() */ + #include <locale.h> + #include <X11/Intrinsic.h> + #include "Dclock.h" diff --git a/x11-misc/dclock/metadata.xml b/x11-misc/dclock/metadata.xml new file mode 100644 index 000000000000..2518313f5241 --- /dev/null +++ b/x11-misc/dclock/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> +</pkgmetadata> diff --git a/x11-misc/denu/Manifest b/x11-misc/denu/Manifest new file mode 100644 index 000000000000..ce0e9e35feeb --- /dev/null +++ b/x11-misc/denu/Manifest @@ -0,0 +1 @@ +DIST denu-2.3.2.tar.bz2 19644 SHA256 948c88d4c66bf9477d2e7185dce0b1cf58f96d75ebf289415610b16ac1c5e094 diff --git a/x11-misc/denu/denu-2.3.2-r1.ebuild b/x11-misc/denu/denu-2.3.2-r1.ebuild new file mode 100644 index 000000000000..7f276ca25f79 --- /dev/null +++ b/x11-misc/denu/denu-2.3.2-r1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" +PYTHON_DEPEND="2:2.6" +inherit python + +DESCRIPTION="A menu generation program for fluxbox, waimea, openbox, icewm, gnome and kde" +HOMEPAGE="http://denu.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ppc ~ppc64 x86" +IUSE="" + +RDEPEND=">=dev-python/pygtk-2.4.1" +DEPEND="${RDEPEND}" + +src_install() { + ./install.sh "${D}" || die "./install.sh failed" + python_convert_shebangs -r 2 "${D}" +} diff --git a/x11-misc/denu/metadata.xml b/x11-misc/denu/metadata.xml new file mode 100644 index 000000000000..ef925213c21d --- /dev/null +++ b/x11-misc/denu/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">denu</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/devilspie/Manifest b/x11-misc/devilspie/Manifest new file mode 100644 index 000000000000..1fa8ccc5027e --- /dev/null +++ b/x11-misc/devilspie/Manifest @@ -0,0 +1 @@ +DIST devilspie-0.22.tar.gz 192646 RMD160 0e35409bdbf0e0a29df59e16ab9fd3774a001b62 SHA1 6bf8d04b373dd301497c5acdcde3dbb45309f59d SHA256 e06aba1d96889e1b58bd1b0ba4d3015f50adc3ade2824b5cb37a0ee7f2490aaf diff --git a/x11-misc/devilspie/devilspie-0.22.ebuild b/x11-misc/devilspie/devilspie-0.22.ebuild new file mode 100644 index 000000000000..ded3a2746a8f --- /dev/null +++ b/x11-misc/devilspie/devilspie-0.22.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit autotools + +DESCRIPTION="A Window Matching utility similar to Sawfish's Matched Windows feature" +HOMEPAGE="http://www.burtonini.com/blog/computers/devilspie" +SRC_URI="http://www.burtonini.com/computing/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ppc sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2.10 + x11-libs/gtk+:2 + >=x11-libs/libwnck-2.10:1 + x11-libs/libX11 +" +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-util/intltool + sys-devel/gettext + gnome-base/gnome-common" # Required by eautoreconf + +src_prepare() { + sed -i -e "s:\(/usr/share/doc/devilspie\):\1-${PVR}:" devilspie.1 || die + sed -i -e '/-DG.*_DISABLE_DEPRECATED/d' src/Makefile.am || die + eautoreconf + export LIBS="-lX11" +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog NEWS README TODO + keepdir /etc/devilspie +} diff --git a/x11-misc/devilspie/metadata.xml b/x11-misc/devilspie/metadata.xml new file mode 100644 index 000000000000..731225048652 --- /dev/null +++ b/x11-misc/devilspie/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> +</pkgmetadata> diff --git a/x11-misc/devilspie2/Manifest b/x11-misc/devilspie2/Manifest new file mode 100644 index 000000000000..8e47f635d466 --- /dev/null +++ b/x11-misc/devilspie2/Manifest @@ -0,0 +1,2 @@ +DIST devilspie2_0.36-src.tar.gz 44818 SHA256 7d0c2982d65f4dfc9d64f29f72252cce3354231938bc79da8034edfb3394ae11 SHA512 5ab755e7b2f12c0d6304a7ce4a25c95f1cb5d11eec42da0902239e37e2f637663706a21b2d69643f423b8fd597761283fc7a0efc8c201e1f07e503a2057fefd6 WHIRLPOOL 2a6aac66c8fe9e5a0eb8099eca835bc1a7382627e662fdbd70f598a4ead478ca9d8a8510a6ce353f2a186ac94f71a5df67375dd91a3dbd4c9cc001854d1cc6fa +DIST devilspie2_0.37-src.tar.gz 44722 SHA256 463db05b85723f571e16034b3c9281bdcc3a2cffcaa2cf056580575ee8a421b6 SHA512 1eaf7d6a5074179d1a3b356ed25e0243bb177e8d408797a8efe230ae1b737d18f52442a69f92a3f47cece2d91c70b4c7d9cb378183eb353f0e163ac772f9478e WHIRLPOOL a58c6137415108c10e603e4c095309038801b2a82dfa0ea1befd8a03b62d341fdf3015314df0ebb0f81f43b481c3661b6904ef28a1899bd52aeb98922dcd509a diff --git a/x11-misc/devilspie2/devilspie2-0.36.ebuild b/x11-misc/devilspie2/devilspie2-0.36.ebuild new file mode 100644 index 000000000000..10c913be0070 --- /dev/null +++ b/x11-misc/devilspie2/devilspie2-0.36.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# check locales on version bump! +PLOCALES="fi fr ja nl pt_BR ru sv" +inherit flag-o-matic toolchain-funcs l10n + +DESCRIPTION="Devilspie like window matching utility, using LUA for scripting" +HOMEPAGE="http://devilspie2.gusnan.se" +SRC_URI="http://devilspie2.gusnan.se/download/${PN}_${PV}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug" + +RDEPEND=">=dev-libs/glib-2.32.4:2 + >=dev-lang/lua-5.1.5 + >=x11-libs/gtk+-3.4.4:3 + >=x11-libs/libwnck-3.4.4:3 + x11-libs/libX11" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig + x11-proto/xproto" + +src_prepare() { + use debug && append-cflags -D_DEBUG +} + +src_compile() { + emake CC=$(tc-getCC) PREFIX="/usr" LANGUAGES="$(l10n_get_locales)" +} + +src_install() { + emake PREFIX="/usr" DESTDIR="${D}" LANGUAGES="$(l10n_get_locales)" install + + dodoc AUTHORS ChangeLog README README.translators TODO VERSION + doman devilspie2.1 +} + +pkg_postinst() { + elog "Default directory for scripts is ~/.config/devilspie2/" +} diff --git a/x11-misc/devilspie2/devilspie2-0.37.ebuild b/x11-misc/devilspie2/devilspie2-0.37.ebuild new file mode 100644 index 000000000000..815fe9329187 --- /dev/null +++ b/x11-misc/devilspie2/devilspie2-0.37.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# check locales on version bump! +PLOCALES="fi fr ja nl pt_BR ru sv" +inherit flag-o-matic toolchain-funcs l10n + +DESCRIPTION="Devilspie like window matching utility, using LUA for scripting" +HOMEPAGE="http://devilspie2.gusnan.se" +SRC_URI="http://devilspie2.gusnan.se/download/${PN}_${PV}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +RDEPEND=">=dev-libs/glib-2.32.4:2 + >=dev-lang/lua-5.1.5 + >=x11-libs/gtk+-3.4.4:3 + >=x11-libs/libwnck-3.4.4:3 + x11-libs/libX11" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig + x11-proto/xproto" + +src_prepare() { + use debug && append-cflags -D_DEBUG +} + +src_compile() { + emake CC=$(tc-getCC) PREFIX="/usr" LANGUAGES="$(l10n_get_locales)" +} + +src_install() { + emake PREFIX="/usr" DESTDIR="${D}" LANGUAGES="$(l10n_get_locales)" install + + dodoc AUTHORS ChangeLog README README.translators TODO VERSION + doman devilspie2.1 +} + +pkg_postinst() { + elog "Default directory for scripts is ~/.config/devilspie2/" +} diff --git a/x11-misc/devilspie2/metadata.xml b/x11-misc/devilspie2/metadata.xml new file mode 100644 index 000000000000..9360f354d02a --- /dev/null +++ b/x11-misc/devilspie2/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> +</pkgmetadata> + diff --git a/x11-misc/dex/Manifest b/x11-misc/dex/Manifest new file mode 100644 index 000000000000..f78ab2ccadc8 --- /dev/null +++ b/x11-misc/dex/Manifest @@ -0,0 +1,2 @@ +DIST dex-0.6.tar.gz 7389 SHA256 8e31bdde6b2450244c9b0a8e337997cb08b3e65626d2bf7a4dadddb19ceef0f1 SHA512 d479c51a758f9bae513c7a8f0ca0e19004f954f6ea7284b077c3602a660bd2d0ddcb3866d84b04b6bf46e64a5c7d55e1d220044034d9bb88d12ed1599d99fd6a WHIRLPOOL 409e9092781a6e31e3d41710099622fd8c41cba138b3235f796983a2e3fa45391fd7b0b1ae3cd638ddeb35990b36e88e3d729daa113dd78a68b789ba7712c947 +DIST dex-0.7.tar.gz 7679 SHA256 2b0c98832c4b894486807a9ac0417ca127425013e0f07da352621065cb36adc6 SHA512 ee1f8c6ef0b374aadf6ad0ee6482bb23f740f67888994839c381b71b3655d0cbd7d3d5c99abe5f3bce856cb767a1b4bffdbcdf6c70969226b44a59ee76943bce WHIRLPOOL 18606fe1f7f82010101c4998126505530bf7eb0e4fccfc5f9ce7d4c3d48375424d824af484d8927f2f245ee455994c91fc0772a7b47dc2e165cc38eed1917031 diff --git a/x11-misc/dex/dex-0.6.ebuild b/x11-misc/dex/dex-0.6.ebuild new file mode 100644 index 000000000000..328b233a0f38 --- /dev/null +++ b/x11-misc/dex/dex-0.6.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{3_3,3_4} ) +inherit eutils python-r1 + +DESCRIPTION="DesktopEntry eXecution - tool to manage and launch autostart entries" +HOMEPAGE="http://e-jc.de/" +SRC_URI="https://github.com/jceb/dex/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux" + +IUSE="" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch_user +} + +src_install() { + dobin dex + python_replicate_script "${ED}/usr/bin/dex" + dodoc README + doman dex.1 +} diff --git a/x11-misc/dex/dex-0.7.ebuild b/x11-misc/dex/dex-0.7.ebuild new file mode 100644 index 000000000000..46b1c6d1c26a --- /dev/null +++ b/x11-misc/dex/dex-0.7.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{3_3,3_4} ) +inherit eutils python-r1 + +DESCRIPTION="DesktopEntry eXecution - tool to manage and launch autostart entries" +HOMEPAGE="http://e-jc.de/" +SRC_URI="https://github.com/jceb/dex/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch_user +} + +src_install() { + dobin dex + python_replicate_script "${ED}/usr/bin/dex" + dodoc README + doman dex.1 +} diff --git a/x11-misc/dex/metadata.xml b/x11-misc/dex/metadata.xml new file mode 100644 index 000000000000..7b0ac3cd3a83 --- /dev/null +++ b/x11-misc/dex/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> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> + <upstream> + <remote-id type="github">jceb/dex</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/dmenu/Manifest b/x11-misc/dmenu/Manifest new file mode 100644 index 000000000000..a1177f5fa0cb --- /dev/null +++ b/x11-misc/dmenu/Manifest @@ -0,0 +1 @@ +DIST dmenu-4.5.tar.gz 11543 SHA256 082cd698d82125ca0b3989006fb84ac4675c2a5585bf5bb8af0ea09cfb95a850 SHA512 872dee68c35a93c663eb0a941653eaaa4aa83d8379e05b4dbca089a2c9335036b496de85d8ddf7af1228a5625490a06a89031fb1aac726236b608b952962c248 WHIRLPOOL b91660f3028d314f1a10b994af73e6239c4aaabda6c9ab269bda7e37e0cd22c0eaf3b93998c4cb0fe1f9d8f2fd198afc2e70c237a46921ece9fd9a697f58c869 diff --git a/x11-misc/dmenu/dmenu-4.5-r3.ebuild b/x11-misc/dmenu/dmenu-4.5-r3.ebuild new file mode 100644 index 000000000000..2b209722c411 --- /dev/null +++ b/x11-misc/dmenu/dmenu-4.5-r3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System" +HOMEPAGE="http://tools.suckless.org/dmenu/" +SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 hppa ppc ppc64 x86 ~x86-fbsd" +IUSE="xft xinerama" + +RDEPEND=" + x11-libs/libX11 + xft? ( x11-libs/libXft ) + xinerama? ( x11-libs/libXinerama ) +" +DEPEND="${RDEPEND} + xft? ( virtual/pkgconfig ) + xinerama? ( virtual/pkgconfig ) +" + +src_prepare() { + # Respect our flags + sed -i \ + -e '/^CFLAGS/{s|=.*|+= -ansi -pedantic -Wall $(INCS) $(CPPFLAGS)|}' \ + -e '/^LDFLAGS/s|= -s|+=|' \ + config.mk || die + # Make make verbose + sed -i \ + -e 's|^ @| |g' \ + -e '/^ echo/d' \ + Makefile || die + use xft && epatch "${FILESDIR}"/${PN}-4.5-xft-2.patch + + epatch_user +} + +src_compile() { + emake CC=$(tc-getCC) \ + "XFTINC=$( $(tc-getPKG_CONFIG) --cflags xft 2>/dev/null )" \ + "XFTLIBS=$( $(tc-getPKG_CONFIG) --libs xft 2>/dev/null )" \ + "XINERAMAFLAGS=$( + usex xinerama "-DXINERAMA $( + $(tc-getPKG_CONFIG) --cflags xinerama 2>/dev/null + )" '' + )" \ + "XINERAMALIBS=$( + usex xinerama "$( $(tc-getPKG_CONFIG) --libs xinerama 2>/dev/null)" '' + )" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install +} diff --git a/x11-misc/dmenu/dmenu-4.5-r4.ebuild b/x11-misc/dmenu/dmenu-4.5-r4.ebuild new file mode 100644 index 000000000000..7844730f9c80 --- /dev/null +++ b/x11-misc/dmenu/dmenu-4.5-r4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System" +HOMEPAGE="http://tools.suckless.org/dmenu/" +SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="xft xinerama" + +RDEPEND=" + x11-libs/libX11 + xft? ( x11-libs/libXft ) + xinerama? ( x11-libs/libXinerama ) +" +DEPEND="${RDEPEND} + xft? ( virtual/pkgconfig ) + xinerama? ( virtual/pkgconfig ) +" + +src_prepare() { + # Respect our flags + sed -i \ + -e '/^CFLAGS/{s|=.*|+= -ansi -pedantic -Wall $(INCS) $(CPPFLAGS)|}' \ + -e '/^LDFLAGS/s|= -s|+=|' \ + config.mk || die + # Make make verbose + sed -i \ + -e 's|^ @| |g' \ + -e '/^ echo/d' \ + Makefile || die + use xft && epatch "${FILESDIR}"/${PN}-4.5-xft-3.patch + + epatch_user +} + +src_compile() { + emake CC=$(tc-getCC) \ + "XFTINC=$( $(tc-getPKG_CONFIG) --cflags xft 2>/dev/null )" \ + "XFTLIBS=$( $(tc-getPKG_CONFIG) --libs xft 2>/dev/null )" \ + "XINERAMAFLAGS=$( + usex xinerama "-DXINERAMA $( + $(tc-getPKG_CONFIG) --cflags xinerama 2>/dev/null + )" '' + )" \ + "XINERAMALIBS=$( + usex xinerama "$( $(tc-getPKG_CONFIG) --libs xinerama 2>/dev/null)" '' + )" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install +} diff --git a/x11-misc/dmenu/dmenu-9999.ebuild b/x11-misc/dmenu/dmenu-9999.ebuild new file mode 100644 index 000000000000..fcb7bf49def9 --- /dev/null +++ b/x11-misc/dmenu/dmenu-9999.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils git-r3 savedconfig toolchain-funcs + +DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System" +HOMEPAGE="http://tools.suckless.org/dmenu/" +EGIT_REPO_URI="git://git.suckless.org/dmenu" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="xinerama" + +RDEPEND=" + x11-libs/libX11 + xinerama? ( x11-libs/libXinerama ) +" +DEPEND="${RDEPEND} + xinerama? ( virtual/pkgconfig ) +" + +src_prepare() { + # Respect our flags + sed -i \ + -e '/^CFLAGS/{s|=.*|+= -ansi -pedantic -Wall $(INCS) $(CPPFLAGS)|}' \ + -e '/^LDFLAGS/s|= -s|+=|' \ + config.mk || die + # Make make verbose + sed -i \ + -e 's|^ @| |g' \ + -e '/^ echo/d' \ + Makefile || die + + restore_config config.def.h + epatch_user +} + +src_configure() { + tc-export PKG_CONFIG +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + "XINERAMAFLAGS=$( + usex xinerama "-DXINERAMA $( + ${PKG_CONFIG} --cflags xinerama 2>/dev/null + )" '' + )" \ + "XINERAMALIBS=$( + usex xinerama "$( + ${PKG_CONFIG} --libs xinerama 2>/dev/null + )" '' + )" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install + + save_config config.def.h +} diff --git a/x11-misc/dmenu/files/dmenu-4.5-xft-2.patch b/x11-misc/dmenu/files/dmenu-4.5-xft-2.patch new file mode 100644 index 000000000000..4e3f32c6aabb --- /dev/null +++ b/x11-misc/dmenu/files/dmenu-4.5-xft-2.patch @@ -0,0 +1,410 @@ +--- a/config.mk ++++ b/config.mk +@@ -12,9 +12,13 @@ + XINERAMALIBS = -lXinerama + XINERAMAFLAGS = -DXINERAMA + ++# Xft, comment if you don't want it ++XFTINC = $(shell pkg-config --cflags xft) ++XFTLIBS = $(shell pkg-config --libs xft) ++ + # includes and libs +-INCS = -I${X11INC} +-LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ++INCS = -I${X11INC} ${XFTINC} ++LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${XFTLIBS} + + # flags + CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +--- a/dmenu.1 ++++ b/dmenu.1 +@@ -53,7 +53,7 @@ + defines the prompt to be displayed to the left of the input field. + .TP + .BI \-fn " font" +-defines the font or font set used. ++defines the font or font set used. eg. "fixed" or "Monospace-12:normal" (an xft font) + .TP + .BI \-nb " color" + defines the normal background color. +--- a/dmenu.c ++++ b/dmenu.c +@@ -17,6 +17,7 @@ + * MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org))) + #define MIN(a,b) ((a) < (b) ? (a) : (b)) + #define MAX(a,b) ((a) > (b) ? (a) : (b)) ++#define DEFFONT "fixed" /* xft example: "Monospace-11" */ + + typedef struct Item Item; + struct Item { +@@ -26,6 +27,7 @@ + + static void appenditem(Item *item, Item **list, Item **last); + static void calcoffsets(void); ++static void cleanup(void); + static char *cistrstr(const char *s, const char *sub); + static void drawmenu(void); + static void grabkeyboard(void); +@@ -50,10 +52,12 @@ + static const char *selbgcolor = "#005577"; + static const char *selfgcolor = "#eeeeee"; + static unsigned int lines = 0; +-static unsigned long normcol[ColLast]; +-static unsigned long selcol[ColLast]; ++static ColorSet *normcol; ++static ColorSet *selcol; + static Atom clip, utf8; + static Bool topbar = True; ++static Bool running = True; ++static int ret = 0; + static DC *dc; + static Item *items = NULL; + static Item *matches, *matchend; +@@ -104,7 +108,9 @@ + usage(); + + dc = initdc(); +- initfont(dc, font); ++ initfont(dc, font ? font : DEFFONT); ++ normcol = initcolor(dc, normfgcolor, normbgcolor); ++ selcol = initcolor(dc, selfgcolor, selbgcolor); + + if(fast) { + grabkeyboard(); +@@ -117,7 +123,8 @@ + setup(); + run(); + +- return 1; /* unreachable */ ++ cleanup(); ++ return ret; + } + + void +@@ -160,6 +167,15 @@ + } + + void ++cleanup(void) { ++ freecol(dc, normcol); ++ freecol(dc, selcol); ++ XDestroyWindow(dc->dpy, win); ++ XUngrabKeyboard(dc->dpy, CurrentTime); ++ freedc(dc); ++} ++ ++void + drawmenu(void) { + int curpos; + Item *item; +@@ -167,7 +183,7 @@ + dc->x = 0; + dc->y = 0; + dc->h = bh; +- drawrect(dc, 0, 0, mw, mh, True, BG(dc, normcol)); ++ drawrect(dc, 0, 0, mw, mh, True, normcol->BG); + + if(prompt) { + dc->w = promptw; +@@ -178,7 +194,7 @@ + dc->w = (lines > 0 || !matches) ? mw - dc->x : inputw; + drawtext(dc, text, normcol); + if((curpos = textnw(dc, text, cursor) + dc->h/2 - 2) < dc->w) +- drawrect(dc, curpos, 2, 1, dc->h - 4, True, FG(dc, normcol)); ++ drawrect(dc, curpos, 2, 1, dc->h - 4, True, normcol->FG); + + if(lines > 0) { + /* draw vertical list */ +@@ -321,7 +337,8 @@ + sel = matchend; + break; + case XK_Escape: +- exit(EXIT_FAILURE); ++ ret = EXIT_FAILURE; ++ running = False; + case XK_Home: + if(sel == matches) { + cursor = 0; +@@ -359,7 +376,8 @@ + case XK_Return: + case XK_KP_Enter: + puts((sel && !(ev->state & ShiftMask)) ? sel->text : text); +- exit(EXIT_SUCCESS); ++ ret = EXIT_SUCCESS; ++ running = False; + case XK_Right: + if(text[cursor] != '\0') { + cursor = nextrune(+1); +@@ -490,7 +508,7 @@ + run(void) { + XEvent ev; + +- while(!XNextEvent(dc->dpy, &ev)) { ++ while(running && !XNextEvent(dc->dpy, &ev)) { + if(XFilterEvent(&ev, win)) + continue; + switch(ev.type) { +@@ -524,11 +542,6 @@ + XineramaScreenInfo *info; + #endif + +- normcol[ColBG] = getcolor(dc, normbgcolor); +- normcol[ColFG] = getcolor(dc, normfgcolor); +- selcol[ColBG] = getcolor(dc, selbgcolor); +- selcol[ColFG] = getcolor(dc, selfgcolor); +- + clip = XInternAtom(dc->dpy, "CLIPBOARD", False); + utf8 = XInternAtom(dc->dpy, "UTF8_STRING", False); + +@@ -582,7 +595,7 @@ + + /* create menu window */ + swa.override_redirect = True; +- swa.background_pixel = normcol[ColBG]; ++ swa.background_pixel = normcol->BG; + swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask; + win = XCreateWindow(dc->dpy, root, x, y, mw, mh, 0, + DefaultDepth(dc->dpy, screen), CopyFromParent, +--- a/draw.c ++++ b/draw.c +@@ -9,9 +9,6 @@ + + #define MAX(a, b) ((a) > (b) ? (a) : (b)) + #define MIN(a, b) ((a) < (b) ? (a) : (b)) +-#define DEFAULTFN "fixed" +- +-static Bool loadfont(DC *dc, const char *fontstr); + + void + drawrect(DC *dc, int x, int y, unsigned int w, unsigned int h, Bool fill, unsigned long color) { +@@ -23,7 +20,7 @@ + } + + void +-drawtext(DC *dc, const char *text, unsigned long col[ColLast]) { ++drawtext(DC *dc, const char *text, ColorSet *col) { + char buf[BUFSIZ]; + size_t mn, n = strlen(text); + +@@ -35,19 +32,24 @@ + if(mn < n) + for(n = MAX(mn-3, 0); n < mn; buf[n++] = '.'); + +- drawrect(dc, 0, 0, dc->w, dc->h, True, BG(dc, col)); ++ drawrect(dc, 0, 0, dc->w, dc->h, True, col->BG); + drawtextn(dc, buf, mn, col); + } + + void +-drawtextn(DC *dc, const char *text, size_t n, unsigned long col[ColLast]) { ++drawtextn(DC *dc, const char *text, size_t n, ColorSet *col) { + int x = dc->x + dc->font.height/2; + int y = dc->y + dc->font.ascent+1; + +- XSetForeground(dc->dpy, dc->gc, FG(dc, col)); +- if(dc->font.set) ++ XSetForeground(dc->dpy, dc->gc, col->FG); ++ if(dc->font.xft_font) { ++ if (!dc->xftdraw) ++ eprintf("error, xft drawable does not exist"); ++ XftDrawStringUtf8(dc->xftdraw, &col->FG_xft, ++ dc->font.xft_font, x, y, (unsigned char*)text, n); ++ } else if(dc->font.set) { + XmbDrawString(dc->dpy, dc->canvas, dc->font.set, dc->gc, x, y, text, n); +- else { ++ } else { + XSetFont(dc->dpy, dc->gc, dc->font.xfont->fid); + XDrawString(dc->dpy, dc->canvas, dc->gc, x, y, text, n); + } +@@ -69,16 +71,33 @@ + } + + void ++freecol(DC *dc, ColorSet *col) { ++ if(col) { ++ if(&col->FG_xft) ++ XftColorFree(dc->dpy, DefaultVisual(dc->dpy, DefaultScreen(dc->dpy)), ++ DefaultColormap(dc->dpy, DefaultScreen(dc->dpy)), &col->FG_xft); ++ free(col); ++ } ++} ++ ++void + freedc(DC *dc) { ++ if(dc->font.xft_font) { ++ XftFontClose(dc->dpy, dc->font.xft_font); ++ XftDrawDestroy(dc->xftdraw); ++ } + if(dc->font.set) + XFreeFontSet(dc->dpy, dc->font.set); +- if(dc->font.xfont) ++ if(dc->font.xfont) + XFreeFont(dc->dpy, dc->font.xfont); +- if(dc->canvas) ++ if(dc->canvas) + XFreePixmap(dc->dpy, dc->canvas); +- XFreeGC(dc->dpy, dc->gc); +- XCloseDisplay(dc->dpy); +- free(dc); ++ if(dc->gc) ++ XFreeGC(dc->dpy, dc->gc); ++ if(dc->dpy) ++ XCloseDisplay(dc->dpy); ++ if(dc) ++ free(dc); + } + + unsigned long +@@ -91,6 +110,20 @@ + return color.pixel; + } + ++ColorSet * ++initcolor(DC *dc, const char * foreground, const char * background) { ++ ColorSet * col = (ColorSet *)malloc(sizeof(ColorSet)); ++ if(!col) ++ eprintf("error, cannot allocate memory for color set"); ++ col->BG = getcolor(dc, background); ++ col->FG = getcolor(dc, foreground); ++ if(dc->font.xft_font) ++ if(!XftColorAllocName(dc->dpy, DefaultVisual(dc->dpy, DefaultScreen(dc->dpy)), ++ DefaultColormap(dc->dpy, DefaultScreen(dc->dpy)), foreground, &col->FG_xft)) ++ eprintf("error, cannot allocate xft font color '%s'\n", foreground); ++ return col; ++} ++ + DC * + initdc(void) { + DC *dc; +@@ -109,23 +142,11 @@ + + void + initfont(DC *dc, const char *fontstr) { +- if(!loadfont(dc, fontstr ? fontstr : DEFAULTFN)) { +- if(fontstr != NULL) +- fprintf(stderr, "cannot load font '%s'\n", fontstr); +- if(fontstr == NULL || !loadfont(dc, DEFAULTFN)) +- eprintf("cannot load font '%s'\n", DEFAULTFN); +- } +- dc->font.height = dc->font.ascent + dc->font.descent; +-} +- +-Bool +-loadfont(DC *dc, const char *fontstr) { + char *def, **missing, **names; + int i, n; + XFontStruct **xfonts; + +- if(!*fontstr) +- return False; ++ missing = NULL; + if((dc->font.set = XCreateFontSet(dc->dpy, fontstr, &missing, &n, &def))) { + n = XFontsOfFontSet(dc->font.set, &xfonts, &names); + for(i = 0; i < n; i++) { +@@ -133,15 +154,21 @@ + dc->font.descent = MAX(dc->font.descent, xfonts[i]->descent); + dc->font.width = MAX(dc->font.width, xfonts[i]->max_bounds.width); + } +- } +- else if((dc->font.xfont = XLoadQueryFont(dc->dpy, fontstr))) { +- dc->font.ascent = dc->font.xfont->ascent; ++ } else if((dc->font.xfont = XLoadQueryFont(dc->dpy, fontstr))) { ++ dc->font.ascent = dc->font.xfont->ascent; + dc->font.descent = dc->font.xfont->descent; + dc->font.width = dc->font.xfont->max_bounds.width; ++ } else if((dc->font.xft_font = XftFontOpenName(dc->dpy, DefaultScreen(dc->dpy), fontstr))) { ++ dc->font.ascent = dc->font.xft_font->ascent; ++ dc->font.descent = dc->font.xft_font->descent; ++ dc->font.width = dc->font.xft_font->max_advance_width; ++ } else { ++ eprintf("cannot load font '%s'\n", fontstr); + } + if(missing) + XFreeStringList(missing); +- return dc->font.set || dc->font.xfont; ++ dc->font.height = dc->font.ascent + dc->font.descent; ++ return; + } + + void +@@ -151,20 +178,29 @@ + + void + resizedc(DC *dc, unsigned int w, unsigned int h) { ++ int screen = DefaultScreen(dc->dpy); + if(dc->canvas) + XFreePixmap(dc->dpy, dc->canvas); + + dc->w = w; + dc->h = h; + dc->canvas = XCreatePixmap(dc->dpy, DefaultRootWindow(dc->dpy), w, h, +- DefaultDepth(dc->dpy, DefaultScreen(dc->dpy))); ++ DefaultDepth(dc->dpy, screen)); ++ if(dc->font.xft_font && !(dc->xftdraw)) { ++ dc->xftdraw = XftDrawCreate(dc->dpy, dc->canvas, DefaultVisual(dc->dpy,screen), DefaultColormap(dc->dpy,screen)); ++ if(!(dc->xftdraw)) ++ eprintf("error, cannot create xft drawable\n"); ++ } + } + + int + textnw(DC *dc, const char *text, size_t len) { +- if(dc->font.set) { ++ if(dc->font.xft_font) { ++ XGlyphInfo gi; ++ XftTextExtentsUtf8(dc->dpy, dc->font.xft_font, (const FcChar8*)text, len, &gi); ++ return gi.width; ++ } else if(dc->font.set) { + XRectangle r; +- + XmbTextExtents(dc->font.set, text, len, NULL, &r); + return r.width; + } +--- a/draw.h ++++ b/draw.h +@@ -1,9 +1,6 @@ + /* See LICENSE file for copyright and license details. */ + +-#define FG(dc, col) ((col)[(dc)->invert ? ColBG : ColFG]) +-#define BG(dc, col) ((col)[(dc)->invert ? ColFG : ColBG]) +- +-enum { ColBG, ColFG, ColBorder, ColLast }; ++#include <X11/Xft/Xft.h> + + typedef struct { + int x, y, w, h; +@@ -11,6 +8,7 @@ + Display *dpy; + GC gc; + Pixmap canvas; ++ XftDraw *xftdraw; + struct { + int ascent; + int descent; +@@ -18,15 +16,24 @@ + int width; + XFontSet set; + XFontStruct *xfont; ++ XftFont *xft_font; + } font; + } DC; /* draw context */ + ++typedef struct { ++ unsigned long FG; ++ XftColor FG_xft; ++ unsigned long BG; ++} ColorSet; ++ + void drawrect(DC *dc, int x, int y, unsigned int w, unsigned int h, Bool fill, unsigned long color); +-void drawtext(DC *dc, const char *text, unsigned long col[ColLast]); +-void drawtextn(DC *dc, const char *text, size_t n, unsigned long col[ColLast]); ++void drawtext(DC *dc, const char *text, ColorSet *col); ++void drawtextn(DC *dc, const char *text, size_t n, ColorSet *col); ++void freecol(DC *dc, ColorSet *col); + void eprintf(const char *fmt, ...); + void freedc(DC *dc); + unsigned long getcolor(DC *dc, const char *colstr); ++ColorSet *initcolor(DC *dc, const char *foreground, const char *background); + DC *initdc(void); + void initfont(DC *dc, const char *fontstr); + void mapdc(DC *dc, Window win, unsigned int w, unsigned int h); diff --git a/x11-misc/dmenu/files/dmenu-4.5-xft-3.patch b/x11-misc/dmenu/files/dmenu-4.5-xft-3.patch new file mode 100644 index 000000000000..e97629a69871 --- /dev/null +++ b/x11-misc/dmenu/files/dmenu-4.5-xft-3.patch @@ -0,0 +1,412 @@ +--- a/config.mk ++++ b/config.mk +@@ -12,9 +12,13 @@ + XINERAMALIBS = -lXinerama + XINERAMAFLAGS = -DXINERAMA + ++# Xft, comment if you don't want it ++XFTINC = $(shell pkg-config --cflags xft) ++XFTLIBS = $(shell pkg-config --libs xft) ++ + # includes and libs +-INCS = -I${X11INC} +-LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ++INCS = -I${X11INC} ${XFTINC} ++LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${XFTLIBS} + + # flags + CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +--- a/dmenu.1 ++++ b/dmenu.1 +@@ -53,7 +53,7 @@ + defines the prompt to be displayed to the left of the input field. + .TP + .BI \-fn " font" +-defines the font or font set used. ++defines the font or font set used. eg. "fixed" or "Monospace-12:normal" (an xft font) + .TP + .BI \-nb " color" + defines the normal background color. +--- a/dmenu.c ++++ b/dmenu.c +@@ -17,6 +17,7 @@ + * MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org))) + #define MIN(a,b) ((a) < (b) ? (a) : (b)) + #define MAX(a,b) ((a) > (b) ? (a) : (b)) ++#define DEFFONT "fixed" /* xft example: "Monospace-11" */ + + typedef struct Item Item; + struct Item { +@@ -26,6 +27,7 @@ + + static void appenditem(Item *item, Item **list, Item **last); + static void calcoffsets(void); ++static void cleanup(void); + static char *cistrstr(const char *s, const char *sub); + static void drawmenu(void); + static void grabkeyboard(void); +@@ -50,10 +52,12 @@ + static const char *selbgcolor = "#005577"; + static const char *selfgcolor = "#eeeeee"; + static unsigned int lines = 0; +-static unsigned long normcol[ColLast]; +-static unsigned long selcol[ColLast]; ++static ColorSet *normcol; ++static ColorSet *selcol; + static Atom clip, utf8; + static Bool topbar = True; ++static Bool running = True; ++static int ret = 0; + static DC *dc; + static Item *items = NULL; + static Item *matches, *matchend; +@@ -104,7 +108,9 @@ + usage(); + + dc = initdc(); +- initfont(dc, font); ++ initfont(dc, font ? font : DEFFONT); ++ normcol = initcolor(dc, normfgcolor, normbgcolor); ++ selcol = initcolor(dc, selfgcolor, selbgcolor); + + if(fast) { + grabkeyboard(); +@@ -117,7 +123,8 @@ + setup(); + run(); + +- return 1; /* unreachable */ ++ cleanup(); ++ return ret; + } + + void +@@ -160,6 +167,15 @@ + } + + void ++cleanup(void) { ++ freecol(dc, normcol); ++ freecol(dc, selcol); ++ XDestroyWindow(dc->dpy, win); ++ XUngrabKeyboard(dc->dpy, CurrentTime); ++ freedc(dc); ++} ++ ++void + drawmenu(void) { + int curpos; + Item *item; +@@ -167,7 +183,7 @@ + dc->x = 0; + dc->y = 0; + dc->h = bh; +- drawrect(dc, 0, 0, mw, mh, True, BG(dc, normcol)); ++ drawrect(dc, 0, 0, mw, mh, True, normcol->BG); + + if(prompt) { + dc->w = promptw; +@@ -178,7 +194,7 @@ + dc->w = (lines > 0 || !matches) ? mw - dc->x : inputw; + drawtext(dc, text, normcol); + if((curpos = textnw(dc, text, cursor) + dc->h/2 - 2) < dc->w) +- drawrect(dc, curpos, 2, 1, dc->h - 4, True, FG(dc, normcol)); ++ drawrect(dc, curpos, 2, 1, dc->h - 4, True, normcol->FG); + + if(lines > 0) { + /* draw vertical list */ +@@ -321,7 +337,9 @@ + sel = matchend; + break; + case XK_Escape: +- exit(EXIT_FAILURE); ++ ret = EXIT_FAILURE; ++ running = False; ++ break; + case XK_Home: + if(sel == matches) { + cursor = 0; +@@ -359,7 +377,9 @@ + case XK_Return: + case XK_KP_Enter: + puts((sel && !(ev->state & ShiftMask)) ? sel->text : text); +- exit(EXIT_SUCCESS); ++ ret = EXIT_SUCCESS; ++ running = False; ++ break; + case XK_Right: + if(text[cursor] != '\0') { + cursor = nextrune(+1); +@@ -490,7 +510,7 @@ + run(void) { + XEvent ev; + +- while(!XNextEvent(dc->dpy, &ev)) { ++ while(running && !XNextEvent(dc->dpy, &ev)) { + if(XFilterEvent(&ev, win)) + continue; + switch(ev.type) { +@@ -524,11 +544,6 @@ + XineramaScreenInfo *info; + #endif + +- normcol[ColBG] = getcolor(dc, normbgcolor); +- normcol[ColFG] = getcolor(dc, normfgcolor); +- selcol[ColBG] = getcolor(dc, selbgcolor); +- selcol[ColFG] = getcolor(dc, selfgcolor); +- + clip = XInternAtom(dc->dpy, "CLIPBOARD", False); + utf8 = XInternAtom(dc->dpy, "UTF8_STRING", False); + +@@ -582,7 +597,7 @@ + + /* create menu window */ + swa.override_redirect = True; +- swa.background_pixel = normcol[ColBG]; ++ swa.background_pixel = normcol->BG; + swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask; + win = XCreateWindow(dc->dpy, root, x, y, mw, mh, 0, + DefaultDepth(dc->dpy, screen), CopyFromParent, +--- a/draw.c ++++ b/draw.c +@@ -9,9 +9,6 @@ + + #define MAX(a, b) ((a) > (b) ? (a) : (b)) + #define MIN(a, b) ((a) < (b) ? (a) : (b)) +-#define DEFAULTFN "fixed" +- +-static Bool loadfont(DC *dc, const char *fontstr); + + void + drawrect(DC *dc, int x, int y, unsigned int w, unsigned int h, Bool fill, unsigned long color) { +@@ -23,7 +20,7 @@ + } + + void +-drawtext(DC *dc, const char *text, unsigned long col[ColLast]) { ++drawtext(DC *dc, const char *text, ColorSet *col) { + char buf[BUFSIZ]; + size_t mn, n = strlen(text); + +@@ -35,19 +32,24 @@ + if(mn < n) + for(n = MAX(mn-3, 0); n < mn; buf[n++] = '.'); + +- drawrect(dc, 0, 0, dc->w, dc->h, True, BG(dc, col)); ++ drawrect(dc, 0, 0, dc->w, dc->h, True, col->BG); + drawtextn(dc, buf, mn, col); + } + + void +-drawtextn(DC *dc, const char *text, size_t n, unsigned long col[ColLast]) { ++drawtextn(DC *dc, const char *text, size_t n, ColorSet *col) { + int x = dc->x + dc->font.height/2; + int y = dc->y + dc->font.ascent+1; + +- XSetForeground(dc->dpy, dc->gc, FG(dc, col)); +- if(dc->font.set) ++ XSetForeground(dc->dpy, dc->gc, col->FG); ++ if(dc->font.xft_font) { ++ if (!dc->xftdraw) ++ eprintf("error, xft drawable does not exist"); ++ XftDrawStringUtf8(dc->xftdraw, &col->FG_xft, ++ dc->font.xft_font, x, y, (unsigned char*)text, n); ++ } else if(dc->font.set) { + XmbDrawString(dc->dpy, dc->canvas, dc->font.set, dc->gc, x, y, text, n); +- else { ++ } else { + XSetFont(dc->dpy, dc->gc, dc->font.xfont->fid); + XDrawString(dc->dpy, dc->canvas, dc->gc, x, y, text, n); + } +@@ -69,16 +71,33 @@ + } + + void ++freecol(DC *dc, ColorSet *col) { ++ if(col) { ++ if(&col->FG_xft) ++ XftColorFree(dc->dpy, DefaultVisual(dc->dpy, DefaultScreen(dc->dpy)), ++ DefaultColormap(dc->dpy, DefaultScreen(dc->dpy)), &col->FG_xft); ++ free(col); ++ } ++} ++ ++void + freedc(DC *dc) { ++ if(dc->font.xft_font) { ++ XftFontClose(dc->dpy, dc->font.xft_font); ++ XftDrawDestroy(dc->xftdraw); ++ } + if(dc->font.set) + XFreeFontSet(dc->dpy, dc->font.set); +- if(dc->font.xfont) ++ if(dc->font.xfont) + XFreeFont(dc->dpy, dc->font.xfont); +- if(dc->canvas) ++ if(dc->canvas) + XFreePixmap(dc->dpy, dc->canvas); +- XFreeGC(dc->dpy, dc->gc); +- XCloseDisplay(dc->dpy); +- free(dc); ++ if(dc->gc) ++ XFreeGC(dc->dpy, dc->gc); ++ if(dc->dpy) ++ XCloseDisplay(dc->dpy); ++ if(dc) ++ free(dc); + } + + unsigned long +@@ -91,6 +110,20 @@ + return color.pixel; + } + ++ColorSet * ++initcolor(DC *dc, const char * foreground, const char * background) { ++ ColorSet * col = (ColorSet *)malloc(sizeof(ColorSet)); ++ if(!col) ++ eprintf("error, cannot allocate memory for color set"); ++ col->BG = getcolor(dc, background); ++ col->FG = getcolor(dc, foreground); ++ if(dc->font.xft_font) ++ if(!XftColorAllocName(dc->dpy, DefaultVisual(dc->dpy, DefaultScreen(dc->dpy)), ++ DefaultColormap(dc->dpy, DefaultScreen(dc->dpy)), foreground, &col->FG_xft)) ++ eprintf("error, cannot allocate xft font color '%s'\n", foreground); ++ return col; ++} ++ + DC * + initdc(void) { + DC *dc; +@@ -109,23 +142,11 @@ + + void + initfont(DC *dc, const char *fontstr) { +- if(!loadfont(dc, fontstr ? fontstr : DEFAULTFN)) { +- if(fontstr != NULL) +- fprintf(stderr, "cannot load font '%s'\n", fontstr); +- if(fontstr == NULL || !loadfont(dc, DEFAULTFN)) +- eprintf("cannot load font '%s'\n", DEFAULTFN); +- } +- dc->font.height = dc->font.ascent + dc->font.descent; +-} +- +-Bool +-loadfont(DC *dc, const char *fontstr) { + char *def, **missing, **names; + int i, n; + XFontStruct **xfonts; + +- if(!*fontstr) +- return False; ++ missing = NULL; + if((dc->font.set = XCreateFontSet(dc->dpy, fontstr, &missing, &n, &def))) { + n = XFontsOfFontSet(dc->font.set, &xfonts, &names); + for(i = 0; i < n; i++) { +@@ -133,15 +154,21 @@ + dc->font.descent = MAX(dc->font.descent, xfonts[i]->descent); + dc->font.width = MAX(dc->font.width, xfonts[i]->max_bounds.width); + } +- } +- else if((dc->font.xfont = XLoadQueryFont(dc->dpy, fontstr))) { +- dc->font.ascent = dc->font.xfont->ascent; ++ } else if((dc->font.xfont = XLoadQueryFont(dc->dpy, fontstr))) { ++ dc->font.ascent = dc->font.xfont->ascent; + dc->font.descent = dc->font.xfont->descent; + dc->font.width = dc->font.xfont->max_bounds.width; ++ } else if((dc->font.xft_font = XftFontOpenName(dc->dpy, DefaultScreen(dc->dpy), fontstr))) { ++ dc->font.ascent = dc->font.xft_font->ascent; ++ dc->font.descent = dc->font.xft_font->descent; ++ dc->font.width = dc->font.xft_font->max_advance_width; ++ } else { ++ eprintf("cannot load font '%s'\n", fontstr); + } + if(missing) + XFreeStringList(missing); +- return dc->font.set || dc->font.xfont; ++ dc->font.height = dc->font.ascent + dc->font.descent; ++ return; + } + + void +@@ -151,20 +178,29 @@ + + void + resizedc(DC *dc, unsigned int w, unsigned int h) { ++ int screen = DefaultScreen(dc->dpy); + if(dc->canvas) + XFreePixmap(dc->dpy, dc->canvas); + + dc->w = w; + dc->h = h; + dc->canvas = XCreatePixmap(dc->dpy, DefaultRootWindow(dc->dpy), w, h, +- DefaultDepth(dc->dpy, DefaultScreen(dc->dpy))); ++ DefaultDepth(dc->dpy, screen)); ++ if(dc->font.xft_font && !(dc->xftdraw)) { ++ dc->xftdraw = XftDrawCreate(dc->dpy, dc->canvas, DefaultVisual(dc->dpy,screen), DefaultColormap(dc->dpy,screen)); ++ if(!(dc->xftdraw)) ++ eprintf("error, cannot create xft drawable\n"); ++ } + } + + int + textnw(DC *dc, const char *text, size_t len) { +- if(dc->font.set) { ++ if(dc->font.xft_font) { ++ XGlyphInfo gi; ++ XftTextExtentsUtf8(dc->dpy, dc->font.xft_font, (const FcChar8*)text, len, &gi); ++ return gi.width; ++ } else if(dc->font.set) { + XRectangle r; +- + XmbTextExtents(dc->font.set, text, len, NULL, &r); + return r.width; + } +--- a/draw.h ++++ b/draw.h +@@ -1,9 +1,6 @@ + /* See LICENSE file for copyright and license details. */ + +-#define FG(dc, col) ((col)[(dc)->invert ? ColBG : ColFG]) +-#define BG(dc, col) ((col)[(dc)->invert ? ColFG : ColBG]) +- +-enum { ColBG, ColFG, ColBorder, ColLast }; ++#include <X11/Xft/Xft.h> + + typedef struct { + int x, y, w, h; +@@ -11,6 +8,7 @@ + Display *dpy; + GC gc; + Pixmap canvas; ++ XftDraw *xftdraw; + struct { + int ascent; + int descent; +@@ -18,15 +16,24 @@ + int width; + XFontSet set; + XFontStruct *xfont; ++ XftFont *xft_font; + } font; + } DC; /* draw context */ + ++typedef struct { ++ unsigned long FG; ++ XftColor FG_xft; ++ unsigned long BG; ++} ColorSet; ++ + void drawrect(DC *dc, int x, int y, unsigned int w, unsigned int h, Bool fill, unsigned long color); +-void drawtext(DC *dc, const char *text, unsigned long col[ColLast]); +-void drawtextn(DC *dc, const char *text, size_t n, unsigned long col[ColLast]); ++void drawtext(DC *dc, const char *text, ColorSet *col); ++void drawtextn(DC *dc, const char *text, size_t n, ColorSet *col); ++void freecol(DC *dc, ColorSet *col); + void eprintf(const char *fmt, ...); + void freedc(DC *dc); + unsigned long getcolor(DC *dc, const char *colstr); ++ColorSet *initcolor(DC *dc, const char *foreground, const char *background); + DC *initdc(void); + void initfont(DC *dc, const char *fontstr); + void mapdc(DC *dc, Window win, unsigned int w, unsigned int h); diff --git a/x11-misc/dmenu/metadata.xml b/x11-misc/dmenu/metadata.xml new file mode 100644 index 000000000000..9c37c491d29b --- /dev/null +++ b/x11-misc/dmenu/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <maintainer> + <email>jer@gentoo.org</email> + </maintainer> + <use> + <flag name="xft">Enable unofficial <pkg>x11-libs/libXft</pkg> support</flag> + </use> +</pkgmetadata> diff --git a/x11-misc/dockmanager/Manifest b/x11-misc/dockmanager/Manifest new file mode 100644 index 000000000000..ffb01b590ed6 --- /dev/null +++ b/x11-misc/dockmanager/Manifest @@ -0,0 +1 @@ +DIST dockmanager-0.1.0.tar.gz 532346 SHA256 7afbf43f9e1a14b0b7d8f34ae8c017d5ab58bacdf26481082a489c10953e74f3 SHA512 4379e21b5bb42d8a0e58edf02991a4a3f9c8eefc08321cbeb91db45718fdbfe155894e57b46356b07c43e4ce70266357ef84bc4c79280175cc724c9ddb550f4f WHIRLPOOL 670ec892d9ed0759849a258a1017bc58276bb3ca1faec7717e7fc4b4c8d5d1205a0999913d37092540f8029ed9ede08f5b0dfc2514e1d7cf32de805d90aedffd diff --git a/x11-misc/dockmanager/dockmanager-0.1.0-r1.ebuild b/x11-misc/dockmanager/dockmanager-0.1.0-r1.ebuild new file mode 100644 index 000000000000..a877f26ad8ca --- /dev/null +++ b/x11-misc/dockmanager/dockmanager-0.1.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +GCONF_DEBUG="no" + +inherit gnome2 python-single-r1 vala + +DESCRIPTION="dock-independent helper scripts" +HOMEPAGE="https://launchpad.net/dockmanager" +SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="debug" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-libs/dbus-glib + dev-libs/glib:2 + x11-libs/gtk+:2 + x11-libs/libdesktop-agnostic +" +DEPEND="${RDEPEND} + $(vala_depend) + virtual/pkgconfig +" + +src_prepare() { + rm -f {scripts,metadata}/pidgin_control.* || die + sed -i -e "/pidgin_control/d" {scripts,metadata}/Makefile.* || die + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + $(use_enable debug) \ + $(use_enable !debug release) +} diff --git a/x11-misc/dockmanager/metadata.xml b/x11-misc/dockmanager/metadata.xml new file mode 100644 index 000000000000..f24c2b1e2db9 --- /dev/null +++ b/x11-misc/dockmanager/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> + <email>angelos@gentoo.org</email> + <name>Christoph Mende</name> + </maintainer> + <upstream> + <remote-id type="launchpad">dockmanager</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/dragbox/Manifest b/x11-misc/dragbox/Manifest new file mode 100644 index 000000000000..28fb3f9a837a --- /dev/null +++ b/x11-misc/dragbox/Manifest @@ -0,0 +1 @@ +DIST dragbox-0.4.0.tar.gz 88019 RMD160 741fdb9cd4e489df6a4d014f44b80469ca2e1181 SHA1 880deea590bb656e4c61360e83001b677546e5e5 SHA256 ba5dc05818cc991b4581e2b3987148043df786a60da1cf88e119d0dd4e4cd77f diff --git a/x11-misc/dragbox/dragbox-0.4.0.ebuild b/x11-misc/dragbox/dragbox-0.4.0.ebuild new file mode 100644 index 000000000000..b46f9a054ad1 --- /dev/null +++ b/x11-misc/dragbox/dragbox-0.4.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +PYTHON_DEPEND="2" +inherit python + +DESCRIPTION="GTK tool for connecting the commandline with the desktop environment" +HOMEPAGE="http://kaizer.se/wiki/dragbox/" +SRC_URI="http://kaizer.se/publicfiles/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-python/pygtk:2 + gnome-base/libglade:2.0 + dev-python/gnome-vfs-python:2 + dev-python/libgnome-python:2 + dev-python/gconf-python:2 + sys-apps/dbus + x11-libs/gtk+:2" +RDEPEND="${DEPEND}" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + python_clean_py-compile_files + python_convert_shebangs 2 dragbox +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS ChangeLog NEWS README TODO +} + +pkg_postinst() { + python_mod_optimize Dragbox +} + +pkg_postrm() { + python_mod_cleanup Dragbox +} diff --git a/x11-misc/dragbox/metadata.xml b/x11-misc/dragbox/metadata.xml new file mode 100644 index 000000000000..92b31095ea4a --- /dev/null +++ b/x11-misc/dragbox/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> diff --git a/x11-misc/driconf/Manifest b/x11-misc/driconf/Manifest new file mode 100644 index 000000000000..2fc475ee7c3d --- /dev/null +++ b/x11-misc/driconf/Manifest @@ -0,0 +1 @@ +DIST driconf-0.9.1.tar.gz 112529 SHA256 4849a43f6324498e943c03777bce571229b5446985b1cec596b365505e76f73f diff --git a/x11-misc/driconf/driconf-0.9.1-r1.ebuild b/x11-misc/driconf/driconf-0.9.1-r1.ebuild new file mode 100644 index 000000000000..300bbc62de7b --- /dev/null +++ b/x11-misc/driconf/driconf-0.9.1-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" +PYTHON_DEPEND="2" +PYTHON_USE_WITH="xml" + +inherit distutils eutils + +DESCRIPTION="driconf is a GTK+2 GUI configurator for DRI" +HOMEPAGE="http://dri.freedesktop.org/wiki/DriConf" +SRC_URI="http://freedesktop.org/~fxkuehl/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 ~sparc x86" +IUSE="" + +RDEPEND=">=x11-libs/gtk+-2.4:2 + >=dev-python/pygtk-2.4:2 + x11-apps/xdriinfo" +DEPEND="${RDEPEND}" + +DOCS="CHANGELOG COPYING PKG-INFO README TODO" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-glxinfo-unicode.patch \ + "${FILESDIR}"/${P}-update-toolbar-methods.patch \ + "${FILESDIR}"/${P}-driconf_simpleui.py.patch + + # Fix install locations which breaks location policy - Josh_B + sed -i \ + -e 's-/usr/local-/usr-g' \ + driconf \ + driconf.desktop \ + driconf.py \ + setup.cfg \ + setup.py \ + || die "Sed failed!" +} + +src_install() { + distutils_src_install + domenu driconf.desktop +} + +pkg_postinst() { + python_mod_optimize /usr/lib/driconf +} + +pkg_postrm() { + python_mod_cleanup /usr/lib/driconf +} diff --git a/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch b/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch new file mode 100644 index 000000000000..fb661c819be2 --- /dev/null +++ b/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch @@ -0,0 +1,16 @@ +http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/ + +--- driconf_simpleui.py ++++ driconf_simpleui.py +@@ -266,8 +266,8 @@ + j = i + break + i = i - 1 +- if i < chars/3: +- i = chars ++ else: ++ i = j = chars + head, tail = head + tail[:i] + '\n', tail[j:] + return head + + diff --git a/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch b/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch new file mode 100644 index 000000000000..df4155025255 --- /dev/null +++ b/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch @@ -0,0 +1,22 @@ +http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/ + +--- driconf_simpleui.py ++++ driconf_simpleui.py +@@ -450,11 +450,13 @@ class MainWindow (gtk.Window): + else: + screen = self.screens[0] + if screen.glxInfo: +- text = "%s (%s)" % ( +- screen.glxInfo.renderer, screen.glxInfo.vendor) ++ text = u"%s (%s)" % ( ++ unicode(screen.glxInfo.renderer, "utf-8", "replace"), ++ unicode(screen.glxInfo.vendor, "utf-8", "replace")) + else: +- text = _("Screen") + " %d: %s" % ( +- screen.num, screen.driver.name.capitalize()) ++ text = _(u"Screen") + u" %d: %s" % (screen.num, ++ unicode(screen.driver.name, "utf-8", ++ "replace").capitalize()) + deviceHBox = gtk.HBox() + deviceLabel = gtk.Label() + deviceLabel.set_justify(gtk.JUSTIFY_LEFT) diff --git a/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch b/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch new file mode 100644 index 000000000000..d6ce7e5c73e9 --- /dev/null +++ b/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch @@ -0,0 +1,108 @@ +http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/ + +--- driconf_complexui.py ++++ driconf_complexui.py +@@ -838,42 +838,73 @@ class MainWindow (gtk.Window): + self.paned.show() + self.toolbar = gtk.Toolbar () + iconSize = self.toolbar.get_icon_size() +- self.saveButton = self.toolbar.insert_stock ( +- "gtk-save", _("Save selected configuration file"), +- "priv", self.configTree.saveConfig, None, -1) +- self.reloadButton = self.toolbar.insert_stock ( +- "gtk-revert-to-saved", _("Reload selected configuration file"), +- "priv", self.configTree.reloadConfig, None, -1) +- self.toolbar.append_space() +- self.newButton = self.toolbar.insert_stock ( +- "gtk-new", _("Create a new device or application"), +- "priv", self.configTree.newItem, None, -1) +- self.removeButton = self.toolbar.insert_stock ( +- "gtk-delete", _("Remove selected device or application"), +- "priv", self.configTree.removeItem, None, -1) +- self.upButton = self.toolbar.insert_stock ( +- "gtk-go-up", _("Move selected item up"), +- "priv", self.configTree.moveUp, None, -1) +- self.downButton = self.toolbar.insert_stock ( +- "gtk-go-down", _("Move selected item down"), +- "priv", self.configTree.moveDown, None, -1) +- self.propertiesButton = self.toolbar.insert_stock ( +- "gtk-properties", _("Properties of selected device or application"), +- "priv", self.configTree.properties, None, -1) +- self.toolbar.append_space() ++ ++ self.saveButton = gtk.ToolButton("gtk-save") ++ self.saveButton.set_tooltip_text(_("Save selected configuration file")) ++ self.saveButton.connect("clicked", self.configTree.saveConfig) ++ self.saveButton.show() ++ self.toolbar.insert(self.saveButton, -1) ++ self.reloadButton = gtk.ToolButton("gtk-revert-to-saved") ++ self.reloadButton.set_tooltip_text(_("Reload selected configuration file")) ++ self.reloadButton.connect("clicked", self.configTree.reloadConfig) ++ self.reloadButton.show() ++ self.toolbar.insert(self.reloadButton, -1) ++ ++ separator = gtk.SeparatorToolItem() ++ separator.show() ++ self.toolbar.insert(separator, -1) ++ ++ self.newButton = gtk.ToolButton("gtk-new") ++ self.newButton.set_tooltip_text(_("Create a new device or application")) ++ self.newButton.connect("clicked", self.configTree.newItem) ++ self.newButton.show() ++ self.toolbar.insert(self.newButton, -1) ++ self.removeButton = gtk.ToolButton("gtk-delete") ++ self.removeButton.set_tooltip_text(_("Remove selected device or application")) ++ self.removeButton.connect("clicked", self.configTree.removeItem) ++ self.removeButton.show() ++ self.toolbar.insert(self.removeButton, -1) ++ self.upButton = gtk.ToolButton("gtk-go-up") ++ self.upButton.set_tooltip_text(_("Move selected item up")) ++ self.upButton.connect("clicked", self.configTree.moveUp) ++ self.upButton.show() ++ self.toolbar.insert(self.upButton, -1) ++ self.downButton = gtk.ToolButton("gtk-go-down") ++ self.downButton.set_tooltip_text(_("Move selected item down")) ++ self.downButton.connect("clicked", self.configTree.moveDown) ++ self.downButton.show() ++ self.toolbar.insert(self.downButton, -1) ++ self.propertiesButton = gtk.ToolButton("gtk-properties") ++ self.propertiesButton.set_tooltip_text(_("Properties of selected device or application")) ++ self.propertiesButton.connect("clicked", self.configTree.properties) ++ self.propertiesButton.show() ++ self.toolbar.insert(self.propertiesButton, -1) ++ ++ separator = gtk.SeparatorToolItem() ++ separator.show() ++ self.toolbar.insert(separator, -1) ++ + # The gtk-about stock item is available with gtk >= 2.6. + # It's definitely not available with gtk 2.2. Not sure about 2.4. + if gtk.gtk_version[0] == 2 and gtk.gtk_version[1] < 6: + aboutStock = "gtk-dialog-info" + else: + aboutStock = "gtk-about" +- self.aboutButton = self.toolbar.insert_stock ( +- aboutStock, _("About DRIconf"), "priv", +- self.aboutHandler, None, -1) +- self.toolbar.append_space() +- self.exitButton = self.toolbar.insert_stock ( +- "gtk-quit", _("Exit DRIconf"), "priv", +- self.exitHandler, None, -1) ++ self.aboutButton = gtk.ToolButton(aboutStock) ++ self.aboutButton.set_tooltip_text(_("About DRIconf")) ++ self.aboutButton.connect("clicked", self.aboutHandler) ++ self.aboutButton.show() ++ self.toolbar.insert(self.aboutButton, -1) ++ ++ separator = gtk.SeparatorToolItem() ++ separator.show() ++ self.toolbar.insert(separator, -1) ++ ++ self.exitButton = gtk.ToolButton("gtk-quit") ++ self.exitButton.set_tooltip_text(_("Exit DRIconf")) ++ self.exitButton.connect("clicked", self.exitHandler) ++ self.exitButton.show() ++ self.toolbar.insert(self.exitButton, -1) + if len(configList) != 0: + self.activateConfigButtons (configList[0]) + self.toolbar.show() diff --git a/x11-misc/driconf/metadata.xml b/x11-misc/driconf/metadata.xml new file mode 100644 index 000000000000..6cc3982431f8 --- /dev/null +++ b/x11-misc/driconf/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>x11</herd> +</pkgmetadata> diff --git a/x11-misc/dsx/dsx-0.1.ebuild b/x11-misc/dsx/dsx-0.1.ebuild new file mode 100644 index 000000000000..cd59bd7b8538 --- /dev/null +++ b/x11-misc/dsx/dsx-0.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +PYTHON_DEPEND="2" + +inherit python + +DESCRIPTION="command line selection of your X desktop environment" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86" +IUSE="" + +RDEPEND="x11-apps/xinit" +DEPEND="" + +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + cp "${FILESDIR}"/${P} "${T}" + python_convert_shebangs -r 2 "${T}" +} + +src_install() { + newbin "${T}"/${P} dsx +} diff --git a/x11-misc/dsx/files/dsx-0.1 b/x11-misc/dsx/files/dsx-0.1 new file mode 100644 index 000000000000..d8f5e7192928 --- /dev/null +++ b/x11-misc/dsx/files/dsx-0.1 @@ -0,0 +1,72 @@ +#!/usr/bin/env python +# dsx is Mandrakesoft's Xtart modified to work with a Gentoo Linux system. +# Gentoo doesn't use a wmsession.d directory, so we're going to accept the +# /etc/X11/Sessions executables as our menu and our command parameters. +# I also tried to increase the robustness of the entry checking and make the +# error messages less condescending. +# The 0 option for "no wm" was removed. I altered it to run option 1 instead. + +### Original copyright / license message from Xtart... ### +# This is an official linux-mandrake extension of the X windowing system for +# the benefit of Declan Moriarty Copyright 2001 by civileme@mandrakesoft all +# rights reserved. Use is hereby granted under the GNU General Publoic +# License version 2 or any future version of said license at the user's option +# +# No Warranty of course. +# This program is designed for those who want to work in concole and +# occasionally boot into window managers or who want to avoid theme +# persistence from one WM to another. +################ +import sys +import os +import popen2 +import string +import math +def complain(): + print 'X initiation aborted on invalid selection.' + sys.exit(0) + return +print +print 'Welcome to the Desktop Selector for X' +print +fspc=os.path.expanduser('~')+'/' +io=popen2.Popen3('ls /etc/X11/Sessions',1) +L=io.fromchild.readlines() +Sessions={} +Sessionkeys=[] +primekey=0 +for k in L: + primekey+=1 + name=k[:-1] + command='/etc/X11/Sessions/'+k[:-1] + Sessions[primekey]=(name, command) +Sessionkeys=Sessions.keys() +Sessionkeys.sort() +for j in Sessionkeys: + if os.system('[ -x '+Sessions[j][1]+' ]') == 0: + print j, Sessions[j][0] + pass +print +sys.stdin.flush() +s=raw_input('Enter the number of your desired desktop envi |