x11-misc/tinynotify-send: Modernize to EAPI=6
authorMichał Górny <mgorny@gentoo.org>
Thu, 29 Jun 2017 22:09:57 +0000 (00:09 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 29 Jun 2017 22:22:13 +0000 (00:22 +0200)
x11-misc/tinynotify-send/tinynotify-send-1.2.1-r1.ebuild
x11-misc/tinynotify-send/tinynotify-send-9999.ebuild

index 01cae8d3fad362b1e4de28678aa9f2fc10e95b64..c6c4bc1676d7186e5de7fc951346562f5337ee09 100644 (file)
@@ -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() {
index aa6765a9d17f4bdcfd7f8c1176c3c6950ab3a293..7f7ee4ddbf61b23f2e7f0e26cc86ad8a03bfe282 100644 (file)
@@ -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() {