summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /x11-plugins/wmxres
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'x11-plugins/wmxres')
-rw-r--r--x11-plugins/wmxres/Manifest1
-rw-r--r--x11-plugins/wmxres/files/wmxres-debian-1.1-1.2.patch55
-rw-r--r--x11-plugins/wmxres/metadata.xml5
-rw-r--r--x11-plugins/wmxres/wmxres-1.2.ebuild42
4 files changed, 103 insertions, 0 deletions
diff --git a/x11-plugins/wmxres/Manifest b/x11-plugins/wmxres/Manifest
new file mode 100644
index 000000000000..25590824a262
--- /dev/null
+++ b/x11-plugins/wmxres/Manifest
@@ -0,0 +1 @@
+DIST wmxres-1.1-0.tar.gz 9948 RMD160 7e492e5ac958d0467bdbdbba94eb4c008b97d55e SHA1 160589ea8acd74a2e0c7152a02c463d5d20a57fa SHA256 c6d1e0fbc1dce2aa9d35f1558b8d561c12677229a89b7f0a062679096f8a3b33
diff --git a/x11-plugins/wmxres/files/wmxres-debian-1.1-1.2.patch b/x11-plugins/wmxres/files/wmxres-debian-1.1-1.2.patch
new file mode 100644
index 000000000000..ef7438e5e973
--- /dev/null
+++ b/x11-plugins/wmxres/files/wmxres-debian-1.1-1.2.patch
@@ -0,0 +1,55 @@
+diff -Naur wmxres.app/wmxres/wmxres.c wmxres-1.2/wmxres/wmxres.c
+--- wmxres.app/wmxres/wmxres.c 1999-11-13 22:43:12.000000000 +0000
++++ wmxres-1.2/wmxres/wmxres.c 2004-04-19 01:27:19.000000000 +0000
+@@ -29,7 +29,7 @@
+ int res_selected;
+ int res_i_active=-1;
+ char res_active[10];
+-char res_list[10][20];
++char res_list[100][20];
+ XF86VidModeModeInfo **res_modelines;
+ XEvent Event;
+
+@@ -139,7 +139,12 @@
+ }
+ }
+
+- for(c=0; c < res_count; c++) {
++ /* fix bounds on res_count -- Todd Troxell <ttroxell@debian.org */
++ if(res_count > 100) {
++ res_count =100;
++ }
++
++ for(c=0; c < res_count ; c++) {
+ sprintf(res_list[c], "%dx%d", res_modelines[c]->hdisplay, res_modelines[c]->vdisplay);
+ }
+ }
+diff -Naur wmxres.app/wmxres.1 wmxres-1.2/wmxres.1
+--- wmxres.app/wmxres.1 1970-01-01 00:00:00.000000000 +0000
++++ wmxres-1.2/wmxres.1 2004-04-19 01:02:46.000000000 +0000
+@@ -0,0 +1,25 @@
++.\" Hey, EMACS: -*- nroff -*-
++.\" wmxres.1 is copyright 2001 by
++.\" Todd Troxell <ttroxell@debian.org>
++.\"
++.\" This is free documentation, see the latest version of the GNU
++.\" General Public License for copying conditions. There is NO warranty.
++.TH WMXRES 1 "May 5, 2001"
++
++.SH NAME
++wmxres \- dockable application to change X modes
++
++.SH SYNOPSIS
++.B wmxres
++
++.SH DESCRIPTION
++dockable application to select your display mode from those available. It is written in C.
++
++.SH INFO
++This manual page was written for the Debian GNU/Linux distribution
++because the original program does not have a manual page.
++.PP
++
++.SH AUTHOR
++This manual page was written by Todd Troxell <ttroxell@debian.org>,
++for the Debian GNU/Linux system (but may be used by others).
diff --git a/x11-plugins/wmxres/metadata.xml b/x11-plugins/wmxres/metadata.xml
new file mode 100644
index 000000000000..b1a9efc4f2f0
--- /dev/null
+++ b/x11-plugins/wmxres/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-dock</herd>
+</pkgmetadata>
diff --git a/x11-plugins/wmxres/wmxres-1.2.ebuild b/x11-plugins/wmxres/wmxres-1.2.ebuild
new file mode 100644
index 000000000000..075039f367db
--- /dev/null
+++ b/x11-plugins/wmxres/wmxres-1.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Dock application to select your display mode among those possible"
+HOMEPAGE="http://yalla.free.fr/wn"
+SRC_URI="http://yalla.free.fr/wn/${PN}-1.1-0.tar.gz"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="~amd64 x86 ~ppc"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXpm
+ x11-libs/libXxf86vm"
+DEPEND="${RDEPEND}
+ x11-libs/libXxf86dga
+ x11-proto/xextproto
+ x11-proto/xf86vidmodeproto"
+
+S=${WORKDIR}/${PN}.app
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-debian-1.1-1.2.patch
+ sed -e "s:-g -c -O2:${CFLAGS} -c:" \
+ -e "s:\tcc :\t $(tc-getCC) \$(LDFLAGS) :g" \
+ -i Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake INCDIR="-I/usr/include" LIBDIR="-L/usr/$(get_libdir)"
+}
+
+src_install() {
+ dobin ${PN}/${PN}
+ doman ${PN}.1
+}