summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-05-18 07:48:32 +0000
committerTim Harder <radhermit@gentoo.org>2014-05-18 07:48:32 +0000
commit8bc01f0e1ac609a5a5b06491854ecc6f717bcbc6 (patch)
tree5fd16a186d4bd0a9e2f75f598783a0b4591a9e7b /app-misc
parentMask GCC 4.9 for testing. (diff)
downloadgentoo-2-8bc01f0e1ac609a5a5b06491854ecc6f717bcbc6.tar.gz
gentoo-2-8bc01f0e1ac609a5a5b06491854ecc6f717bcbc6.tar.bz2
gentoo-2-8bc01f0e1ac609a5a5b06491854ecc6f717bcbc6.zip
Install man pages when generation deps aren't installed (bug #510602).
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/evemu/ChangeLog10
-rw-r--r--app-misc/evemu/evemu-1.2.0-r1.ebuild43
-rw-r--r--app-misc/evemu/files/evemu-1.2.0-install-man.patch43
3 files changed, 94 insertions, 2 deletions
diff --git a/app-misc/evemu/ChangeLog b/app-misc/evemu/ChangeLog
index ae8dae97fdd9..5f1c3eb2873e 100644
--- a/app-misc/evemu/ChangeLog
+++ b/app-misc/evemu/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/evemu
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/evemu/ChangeLog,v 1.3 2013/12/22 11:10:12 radhermit Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/evemu/ChangeLog,v 1.4 2014/05/18 07:48:32 radhermit Exp $
+
+*evemu-1.2.0-r1 (18 May 2014)
+
+ 18 May 2014; Tim Harder <radhermit@gentoo.org> +evemu-1.2.0-r1.ebuild,
+ +files/evemu-1.2.0-install-man.patch:
+ Install man pages when generation deps aren't installed (bug #510602).
*evemu-1.2.0 (22 Dec 2013)
diff --git a/app-misc/evemu/evemu-1.2.0-r1.ebuild b/app-misc/evemu/evemu-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..be21485e0c30
--- /dev/null
+++ b/app-misc/evemu/evemu-1.2.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/evemu/evemu-1.2.0-r1.ebuild,v 1.1 2014/05/18 07:48:32 radhermit Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_{6,7} )
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils python-single-r1
+
+DESCRIPTION="Tools and bindings for kernel input event device emulation, data capture, and replay"
+HOMEPAGE="http://www.freedesktop.org/wiki/Evemu/"
+SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
+
+LICENSE="LGPL-3 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+DEPEND="app-arch/xz-utils
+ ${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-install-man.patch )
+
+src_prepare() {
+ if ! use python ; then
+ sed '/SUBDIRS/s/python//' -i Makefile.am || die
+ fi
+ autotools-utils_src_prepare
+}
+
+src_test() {
+ if use python ; then
+ if [[ ! ${EUID} -eq 0 ]] || has sandbox $FEATURES || has usersandbox $FEATURES ; then
+ ewarn "Tests require userpriv, sandbox, and usersandbox to be disabled in FEATURES."
+ else
+ emake check
+ fi
+ fi
+}
diff --git a/app-misc/evemu/files/evemu-1.2.0-install-man.patch b/app-misc/evemu/files/evemu-1.2.0-install-man.patch
new file mode 100644
index 000000000000..73d18d7c7e0f
--- /dev/null
+++ b/app-misc/evemu/files/evemu-1.2.0-install-man.patch
@@ -0,0 +1,43 @@
+--- evemu-1.2.0/configure.ac
++++ evemu-1.2.0/configure.ac
+@@ -39,9 +39,6 @@
+ AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
+ AC_PATH_PROG([ASCIIDOC], [asciidoc])
+ AM_CONDITIONAL([HAVE_DOCTOOLS], [test "x$XMLTO" != "x" && test "x$ASCIIDOC" != "x"])
+-if test "x$XMLTO" = "x" || test "x$ASCIIDOC" = "x"; then
+- AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it])
+-fi
+
+ AC_SUBST(AM_CFLAGS,
+ "-Wall -Wextra -pedantic")
+--- evemu-1.2.0/tools/Makefile.am
++++ evemu-1.2.0/tools/Makefile.am
+@@ -15,8 +15,6 @@
+ evemu_describe_SOURCES = evemu-record.c find_event_devices.c find_event_devices.h
+ evemu_record_SOURCES = evemu-record.c find_event_devices.c find_event_devices.h
+
+-# man page generation
+-if HAVE_DOCTOOLS
+ # actual man pages
+ man_pages_sources = evemu-describe.txt evemu-device.txt
+ # shadow man pages
+@@ -24,6 +22,8 @@
+
+ man_pages = $(man_pages_sources:.txt=.1) $(man_pages_shadows)
+
++# man page generation
++if HAVE_DOCTOOLS
+ $(man_pages_shadows): $(man_pages_sources:.txt=.1)
+
+ SUFFIXES = .1 .txt .xml
+@@ -33,9 +33,9 @@
+
+ .txt.xml:
+ $(AM_V_GEN)$(ASCIIDOC) -b docbook -d manpage -o $@ $<
++endif
+
+ EXTRA_DIST = $(man_pages_sources)
+ dist_man_MANS = $(man_pages)
+ CLEANFILES = $(dist_man_MANS)
+ MAINTAINERCLEANFILES = $(man_pages) *.xml
+-endif