commit:     0cd86bb13856ebf091011a300fdf4d0fe1839002
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  7 21:25:27 2014 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Sun Dec  7 21:27:38 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=0cd86bb1

dev-libs/libinput: 0.6.0 → 0.7.0

More ebuild corrections:
* always install docs, they are pre-built and handling is kinda weird if
  we want to make it switchable with USE=doc
* do not built test GUI anymore, it is not installed anyway
* add subslot
* prune useless libtool file.

---
 ...libinput-0.6.0.ebuild => libinput-0.7.0.ebuild} | 31 +++++++++++++++-------
 1 file changed, 21 insertions(+), 10 deletions(-)

diff --git a/dev-libs/libinput/libinput-0.6.0.ebuild 
b/dev-libs/libinput/libinput-0.7.0.ebuild
similarity index 57%
rename from dev-libs/libinput/libinput-0.6.0.ebuild
rename to dev-libs/libinput/libinput-0.7.0.ebuild
index f3d48ef..337b861 100644
--- a/dev-libs/libinput/libinput-0.6.0.ebuild
+++ b/dev-libs/libinput/libinput-0.7.0.ebuild
@@ -4,34 +4,45 @@
 
 EAPI="5"
 
+inherit eutils
+
 DESCRIPTION="Library to handle input devices in Wayland"
 HOMEPAGE="http://www.freedesktop.org/wiki/Software/libinput/";
 SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz";
 
 # License appears to be a variant of libtiff
 LICENSE="libtiff"
-SLOT="0"
+SLOT="0/5"
 KEYWORDS="~amd64"
-IUSE="doc gtk test"
+IUSE="test"
 
 RDEPEND="
        >=dev-libs/libevdev-0.4
        >=sys-libs/mtdev-1.1
        virtual/libudev
-       gtk? (
-               dev-libs/glib:2
-               x11-libs/cairo
-               x11-libs/gtk+:3 )
 "
 DEPEND="${RDEPEND}
-       doc? ( app-doc/doxygen )
+       virtual/pkgconfig
        test? ( >=dev-libs/check-0.9.10 )
 "
 # tests can even use: dev-util/valgrind
 
+src_prepare() {
+       # Doc handling in kinda strange but everything
+       # is available in the tarball already.
+       sed -e 's/^\(SUBDIRS =.*\)doc\(.*\)$/\1\2/' \
+               -i Makefile.am Makefile.in || die
+}
+
 src_configure() {
+       # gui can be built but will not be installed
        econf \
-               $(use_enable gtk event-gui) \
-               $(use_enable test tests) \
-               DOXYGEN=$(usex doc $(type -P doxygen) "")
+               --disable-event-gui \
+               $(use_enable test tests)
+}
+
+src_install() {
+       emake install DESTDIR="${D}" || die
+       dodoc -r doc/html
+       prune_libtool_files
 }

Reply via email to