diff options
author | Justin Lecher <jlec@gentoo.org> | 2009-08-23 18:02:26 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2009-08-23 18:02:26 +0000 |
commit | 7aff97599b3a9c4f0cced17737d058f02d1288f8 (patch) | |
tree | f745e4e9d4e72f89a72ba55417eef8ff8c500797 /app-office | |
parent | dev-libs/libwiimote: fixed for include path - upstream contacted (diff) | |
download | sunrise-reviewed-7aff97599b3a9c4f0cced17737d058f02d1288f8.tar.gz sunrise-reviewed-7aff97599b3a9c4f0cced17737d058f02d1288f8.tar.bz2 sunrise-reviewed-7aff97599b3a9c4f0cced17737d058f02d1288f8.zip |
app-office/wiipresent: New ebuild -- written by me
svn path=/sunrise/; revision=9099
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/wiipresent/ChangeLog | 9 | ||||
-rw-r--r-- | app-office/wiipresent/Manifest | 6 | ||||
-rw-r--r-- | app-office/wiipresent/files/0.7.5.2-LDFLAGS.patch | 20 | ||||
-rw-r--r-- | app-office/wiipresent/files/0.7.5.2-include.patch | 11 | ||||
-rw-r--r-- | app-office/wiipresent/metadata.xml | 5 | ||||
-rw-r--r-- | app-office/wiipresent/wiipresent-0.7.5.2.ebuild | 36 |
6 files changed, 87 insertions, 0 deletions
diff --git a/app-office/wiipresent/ChangeLog b/app-office/wiipresent/ChangeLog new file mode 100644 index 000000000..f28103494 --- /dev/null +++ b/app-office/wiipresent/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for app-office/wiipresent +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 23 Aug 2009; Justin Lecher (jlec) <jlec@j-schmitz.net> + +wiipresent-0.7.5.2.ebuild, +files/0.7.5.2-LDFLAGS.patch, + +files/0.7.5.2-include.patch, +metadata.xml: + New ebuild -- written by me + diff --git a/app-office/wiipresent/Manifest b/app-office/wiipresent/Manifest new file mode 100644 index 000000000..5599e9d85 --- /dev/null +++ b/app-office/wiipresent/Manifest @@ -0,0 +1,6 @@ +AUX 0.7.5.2-LDFLAGS.patch 711 RMD160 57ac86ec7d45499ea1058c12c8fc0e4d0b67c49d SHA1 a141c686e0523028a436914cfd3ee407686e75aa SHA256 e74317108854e208d9949779f1d52e4757d3b43a405b470ad1bb83b65ae51cf9 +AUX 0.7.5.2-include.patch 352 RMD160 106b43ba7f490725faca5576b7d0cba9711ede2f SHA1 de28fff73cc4a5f24d1f240677c788267316dd3d SHA256 e5c3056952a1e06764fad35bc3f714dc6b25cf223ad031c7f0e85afc0c298c5c +DIST wiipresent-0.7.5.2.tar.bz2 28375 RMD160 5f04acc48b1e0d5e62362a14c251caa43cf3b6af SHA1 5912e25b1e7b3b86309cca3d52b83b2a789f6c17 SHA256 d948a359982d26292e456e22ddf8515bd8f445eada47eb62fcb3ed4cd8843049 +EBUILD wiipresent-0.7.5.2.ebuild 834 RMD160 3d7fa7d5ab4b1bdb40d6ebd794bf0aef4206efab SHA1 30d5d411f8a06d31099b1162fb70c403e94329d7 SHA256 7811f29b5fa70a5de924bd3254454442312d1d5bbec6a458f25c9b823cd2421e +MISC ChangeLog 317 RMD160 e32d161a861f22c555f0d3bc839b8564304cfc8c SHA1 ac58b2f5fd0b9daa9a779ef961eb3b4bf3ca26f0 SHA256 66d4c837f6037932e80735d1f74967729baed542570357c58eb08bcc97613ba7 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/app-office/wiipresent/files/0.7.5.2-LDFLAGS.patch b/app-office/wiipresent/files/0.7.5.2-LDFLAGS.patch new file mode 100644 index 000000000..66d67a0b1 --- /dev/null +++ b/app-office/wiipresent/files/0.7.5.2-LDFLAGS.patch @@ -0,0 +1,20 @@ +--- Makefile 2009-08-20 18:51:40.000000000 +0200 ++++ Makefile.new 2009-08-23 15:37:19.000000000 +0200 +@@ -11,14 +11,15 @@ + CC = cc + CFLAGS = -Wall -O2 + OPTFLAGS = -I /usr/include/libcwiimote -D_ENABLE_TILT -D_ENABLE_FORCE -D_DISABLE_BLOCKING_UPDATE +-LDFLAGS= -lm -lX11 -lXtst -lcwiimote -lbluetooth -L/usr/X11R6/$(lib) ++LIBS= -lm -lX11 -lXtst -lcwiimote -lbluetooth -L/usr/X11R6/$(lib) + + .PHONY: all install docs clean + + all: wiipresent docs + + wiipresent: wiipresent.c +- $(CC) $(CFLAGS) $(OPTFLAGS) $(LDFLAGS) wiipresent.c -o wiipresent ++ $(CC) $(CFLAGS) $(OPTFLAGS) -c $< ++ $(CC) $(CFLAGS) $(OPTFLAGS) $(LDFLAGS) $@.o -o $@ $(LIBS) + + install: + install -Dp -m0755 wiipresent $(DESTDIR)$(bindir)/wiipresent diff --git a/app-office/wiipresent/files/0.7.5.2-include.patch b/app-office/wiipresent/files/0.7.5.2-include.patch new file mode 100644 index 000000000..3e03f3998 --- /dev/null +++ b/app-office/wiipresent/files/0.7.5.2-include.patch @@ -0,0 +1,11 @@ +--- wiipresent.c 2009-08-22 07:43:18.000000000 +0200 ++++ wiipresent.c.new 2009-08-23 15:25:40.000000000 +0200 +@@ -40,7 +40,7 @@ + #include <X11/XF86keysym.h> + #include <X11/keysym.h> // Needed for older X releases + +-#include "wiimote_api.h" ++#include "libcwiimote/wiimote_api.h" + + Status XQueryCommand(Display *display, Window window, char **name); + diff --git a/app-office/wiipresent/metadata.xml b/app-office/wiipresent/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/app-office/wiipresent/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>maintainer-wanted</herd> +</pkgmetadata> diff --git a/app-office/wiipresent/wiipresent-0.7.5.2.ebuild b/app-office/wiipresent/wiipresent-0.7.5.2.ebuild new file mode 100644 index 000000000..4de599db0 --- /dev/null +++ b/app-office/wiipresent/wiipresent-0.7.5.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Small program that enables you to use a Nintendo Wiimote for giving presentations" +HOMEPAGE="http://dag.wieers.com/home-made/wiipresent/" +SRC_URI="http://dag.wieers.com/home-made/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-libs/libwiimote[tilt,force]" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-include.patch \ + "${FILESDIR}"/${PV}-LDFLAGS.patch +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + CFLAGS="${CFLAGS}" || \ + die "compilation failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "installation failed" + dodoc AUTHORS ChangeLog README TODO || die "nothing to read" +} |