commit:     7059ab2775a9106f8466751eab43b0eb18cf670d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 29 22:09:57 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun 29 22:22:13 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7059ab27

x11-misc/tinynotify-send: Modernize to EAPI=6

 .../tinynotify-send-1.2.1-r1.ebuild                | 10 +++-----
 .../tinynotify-send/tinynotify-send-9999.ebuild    | 29 ++++++++--------------
 2 files changed, 15 insertions(+), 24 deletions(-)

diff --git a/x11-misc/tinynotify-send/tinynotify-send-1.2.1-r1.ebuild 
b/x11-misc/tinynotify-send/tinynotify-send-1.2.1-r1.ebuild
index 01cae8d3fad..c6c4bc1676d 100644
--- a/x11-misc/tinynotify-send/tinynotify-send-1.2.1-r1.ebuild
+++ b/x11-misc/tinynotify-send/tinynotify-send-1.2.1-r1.ebuild
@@ -1,9 +1,7 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-
-inherit autotools-utils
+EAPI=6
 
 DESCRIPTION="A notification sending utility (using libtinynotify)"
 HOMEPAGE="https://github.com/mgorny/tinynotify-send/";
@@ -15,20 +13,20 @@ KEYWORDS="~amd64 ~x86"
 IUSE=""
 
 RDEPEND="app-eselect/eselect-notify-send
-       x11-libs/libtinynotify
+       x11-libs/libtinynotify:0=
        ~x11-libs/libtinynotify-cli-${PV}"
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
 src_configure() {
-       myeconfargs=(
+       local myconf=(
                --disable-library
                --enable-regular
                --disable-system-wide
                --with-system-wide-exec=/usr/bin/sw-notify-send
        )
 
-       autotools-utils_src_configure
+       econf "${myconf[@]}"
 }
 
 pkg_postinst() {

diff --git a/x11-misc/tinynotify-send/tinynotify-send-9999.ebuild 
b/x11-misc/tinynotify-send/tinynotify-send-9999.ebuild
index aa6765a9d17..7f7ee4ddbf6 100644
--- a/x11-misc/tinynotify-send/tinynotify-send-9999.ebuild
+++ b/x11-misc/tinynotify-send/tinynotify-send-9999.ebuild
@@ -1,48 +1,41 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-#if LIVE
-AUTOTOOLS_AUTORECONF=yes
 EGIT_REPO_URI="https://github.com/mgorny/${PN}.git";
-
-inherit git-r3
-#endif
-
-inherit autotools-utils
+inherit autotools git-r3
 
 DESCRIPTION="A notification sending utility (using libtinynotify)"
 HOMEPAGE="https://github.com/mgorny/tinynotify-send/";
-SRC_URI="https://github.com/mgorny/tinynotify-send/releases/download/${P}/${P}.tar.bz2";
+SRC_URI=""
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS=""
 IUSE=""
 
 RDEPEND="app-eselect/eselect-notify-send
        x11-libs/libtinynotify:0=
        ~x11-libs/libtinynotify-cli-${PV}"
 DEPEND="${RDEPEND}
+       dev-util/gtk-doc
        virtual/pkgconfig"
 
-#if LIVE
-KEYWORDS=
-SRC_URI=
-DEPEND="${DEPEND}
-       dev-util/gtk-doc"
-#endif
+src_prepare() {
+       default
+       eautoreconf
+}
 
 src_configure() {
-       myeconfargs=(
+       local myconf=(
                --disable-library
                --enable-regular
                --disable-system-wide
                --with-system-wide-exec=/usr/bin/sw-notify-send
        )
 
-       autotools-utils_src_configure
+       econf "${myconf[@]}"
 }
 
 pkg_postinst() {

Reply via email to