Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/keybinder/
Date: Wed, 14 Feb 2018 16:40:14
Message-Id: 1518615290.0894a9ed3b93862ab541bc6525eb5abd4d5294f7.mgorny@gentoo
1 commit: 0894a9ed3b93862ab541bc6525eb5abd4d5294f7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 14 13:16:06 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 14 13:34:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0894a9ed
7
8 dev-libs/keybinder: Bump to EAPI=6
9
10 dev-libs/keybinder/keybinder-0.3.1-r201.ebuild | 50 ++++++++++++++++++++++++++
11 dev-libs/keybinder/keybinder-0.3.2-r300.ebuild | 13 ++++---
12 2 files changed, 56 insertions(+), 7 deletions(-)
13
14 diff --git a/dev-libs/keybinder/keybinder-0.3.1-r201.ebuild b/dev-libs/keybinder/keybinder-0.3.1-r201.ebuild
15 new file mode 100644
16 index 00000000000..4557421f67e
17 --- /dev/null
18 +++ b/dev-libs/keybinder/keybinder-0.3.1-r201.ebuild
19 @@ -0,0 +1,50 @@
20 +# Copyright 1999-2018 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +
23 +EAPI=6
24 +
25 +PYTHON_COMPAT=( python2_7 )
26 +inherit python-single-r1
27 +
28 +DESCRIPTION="A library for registering global keyboard shortcuts"
29 +HOMEPAGE="https://github.com/engla/keybinder"
30 +SRC_URI="https://github.com/engla/keybinder/releases/download/v${PV}/${P}.tar.gz"
31 +
32 +LICENSE="GPL-2"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86"
35 +IUSE="+introspection lua python"
36 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
37 +
38 +RDEPEND=">=x11-libs/gtk+-2.20:2
39 + x11-libs/libX11
40 + x11-libs/libXext
41 + x11-libs/libXrender
42 + introspection? ( dev-libs/gobject-introspection )
43 + lua? ( >=dev-lang/lua-5.1 )
44 + python? ( ${PYTHON_DEPS}
45 + >=dev-python/pygobject-2.15.3:2[${PYTHON_USEDEP}]
46 + >=dev-python/pygtk-2.12[${PYTHON_USEDEP}]
47 + )"
48 +DEPEND="${RDEPEND}
49 + virtual/pkgconfig"
50 +
51 +pkg_setup() {
52 + use python && python-single-r1_pkg_setup
53 +}
54 +
55 +src_configure() {
56 + local myconf=(
57 + $(use_enable introspection)
58 + $(use_enable python)
59 + )
60 + # upstream failed at AC_ARG_ENABLE
61 + use lua || myconf+=( --disable-lua )
62 +
63 + econf "${myconf[@]}"
64 +}
65 +
66 +src_install() {
67 + default
68 + find "${D}" -name '*.la' -delete || die
69 +}
70
71 diff --git a/dev-libs/keybinder/keybinder-0.3.2-r300.ebuild b/dev-libs/keybinder/keybinder-0.3.2-r300.ebuild
72 index d12fc21e838..074df4a9047 100644
73 --- a/dev-libs/keybinder/keybinder-0.3.2-r300.ebuild
74 +++ b/dev-libs/keybinder/keybinder-0.3.2-r300.ebuild
75 @@ -1,11 +1,9 @@
76 # Copyright 1999-2018 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78
79 -EAPI=5
80 -inherit eutils
81 +EAPI=6
82
83 MY_P=${PN}-3.0-${PV}
84 -
85 DESCRIPTION="A library for registering global keyboard shortcuts"
86 HOMEPAGE="https://github.com/engla/keybinder"
87 SRC_URI="https://github.com/engla/keybinder/releases/download/${PN}-3.0-v${PV}/${MY_P}.tar.gz"
88 @@ -23,18 +21,19 @@ RDEPEND="x11-libs/gtk+:3
89 DEPEND="${RDEPEND}
90 virtual/pkgconfig"
91
92 -DOCS="AUTHORS NEWS README"
93 -
94 S=${WORKDIR}/${MY_P}
95
96 src_configure() {
97 - econf \
98 + local myconf=(
99 $(use_enable introspection)
100 + )
101 +
102 + econf "${myconf[@]}"
103 }
104
105 src_install() {
106 default
107 - prune_libtool_files --all
108 + find "${D}" -name '*.la' -delete || die
109 }
110
111 pkg_preinst() {