1 |
commit: 79f89dbd01e97c279c4ccf0d2453b1834d97934c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 29 22:05:46 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 29 22:22:12 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79f89dbd |
7 |
|
8 |
x11-libs/libtinynotify-cli: Modernize to EAPI=6 |
9 |
|
10 |
.../libtinynotify-cli-1.2.1.ebuild | 19 +++++++----- |
11 |
.../libtinynotify-cli-9999.ebuild | 35 +++++++++++----------- |
12 |
2 files changed, 28 insertions(+), 26 deletions(-) |
13 |
|
14 |
diff --git a/x11-libs/libtinynotify-cli/libtinynotify-cli-1.2.1.ebuild b/x11-libs/libtinynotify-cli/libtinynotify-cli-1.2.1.ebuild |
15 |
index 589149d0761..d71dbc25ec9 100644 |
16 |
--- a/x11-libs/libtinynotify-cli/libtinynotify-cli-1.2.1.ebuild |
17 |
+++ b/x11-libs/libtinynotify-cli/libtinynotify-cli-1.2.1.ebuild |
18 |
@@ -1,9 +1,7 @@ |
19 |
-# Copyright 1999-2012 Gentoo Foundation |
20 |
+# Copyright 1999-2017 Gentoo Foundation |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
-EAPI=4 |
24 |
- |
25 |
-inherit autotools-utils |
26 |
+EAPI=6 |
27 |
|
28 |
MY_P=tinynotify-send-${PV} |
29 |
DESCRIPTION="Common CLI routines for tinynotify-send & sw-notify-send" |
30 |
@@ -15,20 +13,25 @@ SLOT="0" |
31 |
KEYWORDS="~amd64 ~x86" |
32 |
IUSE="doc static-libs" |
33 |
|
34 |
-RDEPEND="x11-libs/libtinynotify" |
35 |
+RDEPEND="x11-libs/libtinynotify:0=" |
36 |
DEPEND="${RDEPEND} |
37 |
virtual/pkgconfig |
38 |
doc? ( dev-util/gtk-doc )" |
39 |
|
40 |
-DOCS=( README ) |
41 |
S=${WORKDIR}/${MY_P} |
42 |
|
43 |
src_configure() { |
44 |
- local myeconfargs=( |
45 |
+ local myconf=( |
46 |
$(use_enable doc gtk-doc) |
47 |
+ $(use_enable static-libs static) |
48 |
--disable-regular |
49 |
--disable-system-wide |
50 |
) |
51 |
|
52 |
- autotools-utils_src_configure |
53 |
+ econf "${myconf[@]}" |
54 |
+} |
55 |
+ |
56 |
+src_install() { |
57 |
+ default |
58 |
+ find "${D}" -name '*.la' -delete || die |
59 |
} |
60 |
|
61 |
diff --git a/x11-libs/libtinynotify-cli/libtinynotify-cli-9999.ebuild b/x11-libs/libtinynotify-cli/libtinynotify-cli-9999.ebuild |
62 |
index d8bd6197d4b..101e5c63616 100644 |
63 |
--- a/x11-libs/libtinynotify-cli/libtinynotify-cli-9999.ebuild |
64 |
+++ b/x11-libs/libtinynotify-cli/libtinynotify-cli-9999.ebuild |
65 |
@@ -1,45 +1,44 @@ |
66 |
# Copyright 1999-2017 Gentoo Foundation |
67 |
# Distributed under the terms of the GNU General Public License v2 |
68 |
|
69 |
-EAPI=5 |
70 |
+EAPI=6 |
71 |
|
72 |
-#if LIVE |
73 |
-AUTOTOOLS_AUTORECONF=yes |
74 |
EGIT_REPO_URI="https://github.com/mgorny/tinynotify-send.git" |
75 |
- |
76 |
-inherit git-r3 |
77 |
-#endif |
78 |
- |
79 |
-inherit autotools-utils |
80 |
+inherit autotools git-r3 |
81 |
|
82 |
MY_P=tinynotify-send-${PV} |
83 |
DESCRIPTION="Common CLI routines for tinynotify-send & sw-notify-send" |
84 |
HOMEPAGE="https://github.com/mgorny/tinynotify-send/" |
85 |
-SRC_URI="https://github.com/mgorny/tinynotify-send/releases/download/${MY_P}/${MY_P}.tar.bz2" |
86 |
+SRC_URI="" |
87 |
|
88 |
LICENSE="BSD" |
89 |
SLOT="0" |
90 |
-KEYWORDS="~amd64 ~x86" |
91 |
+KEYWORDS="" |
92 |
IUSE="doc static-libs" |
93 |
|
94 |
RDEPEND="x11-libs/libtinynotify:0=" |
95 |
DEPEND="${RDEPEND} |
96 |
+ >=dev-util/gtk-doc-1.18 |
97 |
virtual/pkgconfig |
98 |
doc? ( dev-util/gtk-doc )" |
99 |
|
100 |
-#if LIVE |
101 |
-KEYWORDS= |
102 |
-SRC_URI= |
103 |
-DEPEND="${DEPEND} |
104 |
- >=dev-util/gtk-doc-1.18" |
105 |
-#endif |
106 |
+src_prepare() { |
107 |
+ default |
108 |
+ eautoreconf |
109 |
+} |
110 |
|
111 |
src_configure() { |
112 |
- local myeconfargs=( |
113 |
+ local myconf=( |
114 |
$(use_enable doc gtk-doc) |
115 |
+ $(use_enable static-libs static) |
116 |
--disable-regular |
117 |
--disable-system-wide |
118 |
) |
119 |
|
120 |
- autotools-utils_src_configure |
121 |
+ econf "${myconf[@]}" |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ default |
126 |
+ find "${D}" -name '*.la' -delete || die |
127 |
} |