From 3aac6151659f7122cdd1fe12b59cfd2fef0b526b Mon Sep 17 00:00:00 2001 From: Justin Riley Date: Mon, 30 Dec 2013 15:03:28 -0500 Subject: add gizmod live ebuild --- app-misc/gizmod/ChangeLog | 61 ++++++++++++++++++++++++++++++ app-misc/gizmod/files/gizmod.rc | 21 +++++++++++ app-misc/gizmod/gizmod-9999.ebuild | 77 ++++++++++++++++++++++++++++++++++++++ app-misc/gizmod/metadata.xml | 9 +++++ 4 files changed, 168 insertions(+) create mode 100644 app-misc/gizmod/ChangeLog create mode 100644 app-misc/gizmod/files/gizmod.rc create mode 100644 app-misc/gizmod/gizmod-9999.ebuild create mode 100644 app-misc/gizmod/metadata.xml diff --git a/app-misc/gizmod/ChangeLog b/app-misc/gizmod/ChangeLog new file mode 100644 index 0000000..a63cea2 --- /dev/null +++ b/app-misc/gizmod/ChangeLog @@ -0,0 +1,61 @@ +# ChangeLog for app-misc/gizmod +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 12 Dec 2009; Justin Riley gizmod-3.5.ebuild, + +files/gizmod-3.5-gcc44.patch: + Added patch for gcc 4.4.2, bug submitted upstream + + 27 Nov 2009; Justin Riley gizmod-3.5.ebuild, + +files/gizmod-3.5-libvisual.patch: + Added patch to enforce libvisual USE flag. Thanks to Tommy[D] for the catch + + 25 Nov 2009; Justin Riley gizmod-3.5.ebuild, + +files/gizmod.rc: + Added init script, changed LIB_INSTALL_DIR to LIB_SUFFIX which removed need + to inherit multilib, fixed boost DEPEND/RDEPEND for older versions of boost + which did not have python use flag, removed version specific dep on + libvisual. Thanks to ohnobikini, ABCD_, bonsaikitten, and Tommy[D] for + review. + + 18 Nov 2009; Thomas Sachau (Tommy[D]) + -gizmod-3.3.ebuild, gizmod-3.5.ebuild: + Nuke old version, add missing multilib eclass + + 15 Nov 2009; Justin Riley +gizmod-3.5.ebuild: + New Ebuild for bug 134016, thanks to ak for initial ebuild and Tommy, + ohnobikini, and dilfridge for review + + 16 Mar 2009; Nick Fortino (nfortino) + gizmod-3.3.ebuild: + Update ebuild to use EAPI 2. Thanks to Cristian Ruppert and Thomas Sachau + for review + + 23 Aug 2008; Thomas Beierlein (TomJBE) metadata.xml: + Added USE flag description wrt GLEP 56 + + 18 Jan 2008; (Tommy[D]) tommy100@gmx.de gizmod-3.3.ebuild: + Shorten DESCRIPTION + + 28 Jun 2007; Tim Burrell -gizmod-3.2.ebuild, + ,gizmod-3.3.ebuild: + Fix Manifest and Digest for tarball on sourceforge, and remove old ebuild + + 27 Jun 2007; Tim Burrell +gizmod-3.3.ebuild: + New Ebuild for bug 134016 + + 20 Jun 2007; Jakub Moc gizmod-3.2.ebuild: + Fix built_with_use check for newer boost versions + + 04 Jun 2007; Tim Burrell -gizmod-3.1.ebuild, + +gizmod-3.2.ebuild: + New Ebuild for bug 134016 + + 17 May 2007; Tim Burrell -gizmod-3.0.ebuild, + +gizmod-3.1.ebuild: + New Ebuild for bug 134016 + + 09 May 2007; Your Name (flithm) +gizmod-3.0.ebuild, + +metadata.xml: + New Ebuild for bug 134016 + diff --git a/app-misc/gizmod/files/gizmod.rc b/app-misc/gizmod/files/gizmod.rc new file mode 100644 index 0000000..86f27d3 --- /dev/null +++ b/app-misc/gizmod/files/gizmod.rc @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + after alsasound +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --background --make-pidfile --pidfile /var/run/gizmod.pid \ + --exec /usr/bin/gizmod -- ${GIZMOD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --pidfile /var/run/gizmod.pid + eend $? +} diff --git a/app-misc/gizmod/gizmod-9999.ebuild b/app-misc/gizmod/gizmod-9999.ebuild new file mode 100644 index 0000000..b20a2f9 --- /dev/null +++ b/app-misc/gizmod/gizmod-9999.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit git-2 python cmake-utils linux-info + +DESCRIPTION="Input event scripting utility that has special support for fancy keyboards, mice, USB dials and more" +HOMEPAGE="http://gizmod.sourceforge.net" +SRC_URI="" +EGIT_REPO_URI="https://github.com/jtriley/gizmod.git" +EGIT_BRANCH="develop" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libvisual" +RDEPEND="x11-libs/libXext + amd64? ( >=dev-libs/boost-1.36[python] ) + || ( dev-libs/boost:0 dev-libs/boost[python] ) + x11-libs/libICE + media-libs/alsa-lib + libvisual? ( media-libs/libvisual )" +DEPEND="${RDEPEND}" + +CONFIG_CHECK="INPUT_EVDEV INOTIFY_USER" + +ERROR_INPUT_EVDEV=" +Gizmo Daemon needs input evdev support from the kernel. +Please select \"Event interface\" (CONFIG_INPUT_EVDEV) under +\"Device Drivers->Input Device Support->Event interface\". +This option can be built directly into the kernel or as +a module. +" + +ERROR_INOTIFY=" +Gizmo Daemon needs inotify support built into the kernel. +Please select \"Inotify file change notifification\" +(CONFIG_INOTIFY) under \"Device Drivers->File systems\". This +option can only be built directly into the kernel. +" + +ERROR_INOTIFY_USER=" +Gizmo Daemon needs userspace inotify support built into the kernel. +Please select \"Inotify file change notifification\" +(CONFIG_INOTIFY) followed by \"Inotify support for userspace\" +(CONFIG_INOTIFY_USER) under \"Device Drivers->File systems\". These +options can only be built directly into the kernel. +" + +src_unpack() { + git-2_src_unpack +} + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + sed -i CMakeLists.txt -e /DefineInstallationPaths/d || die "sed: removal of DefineInstallationPaths failed" + sed -i libGizmod/CMakeLists.txt -e 's:lib$:lib${LIB_SUFFIX}:' || die "sed: replacing lib with LIB_INSTALL_DIR failed" +} + +src_configure() { + local mycmakeargs=" + -DSYSCONF_INSTALL_DIR=${EPREFIX}/etc + -DBOOST_PYTHON_LIBRARY=${EPREFIX}/usr/$(get_libdir)/libboost_python-${PYTHON_ABI}-mt.so + $(cmake-utils_use_build libvisual VIS_PLUGIN) + " + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}/gizmod.rc" gizmod || die "init script install failed" +} diff --git a/app-misc/gizmod/metadata.xml b/app-misc/gizmod/metadata.xml new file mode 100644 index 0000000..f6d454f --- /dev/null +++ b/app-misc/gizmod/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + maintainer-wanted@gentoo.org + + Enable the media-libs/libvisual (Amarok) plugin + + -- cgit v1.2.3-65-gdbad