net-im/ekg2: Bump to EAPI 7
authorMichał Górny <mgorny@gentoo.org>
Fri, 15 Mar 2019 07:44:52 +0000 (08:44 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 15 Mar 2019 07:56:16 +0000 (08:56 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
net-im/ekg2/ekg2-9999.ebuild

index 53faab6d8f54f6f7c4790e36d1e646fca74a3381..8c458e0a9e4362539dd58f500de0ffce1aa934c4 100644 (file)
@@ -1,33 +1,27 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-
-#if LIVE
-AUTOTOOLS_AUTORECONF=yes
-EGIT_REPO_URI="https://github.com/ekg2/${PN}.git"
-
-inherit git-r3
-#endif
+EAPI=7
 
 PYTHON_COMPAT=( python2_7 )
-inherit autotools-utils python-single-r1
+inherit autotools git-r3 python-single-r1
 
 DESCRIPTION="Text-based, multi-protocol instant messenger"
 HOMEPAGE="https://github.com/ekg2/ekg2/"
-SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.gz"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/ekg2/${PN}.git"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS=""
 IUSE="gadu gpm gpg gtk minimal ncurses nls nntp openssl
        perl python readline rss spell sqlite ssl xmpp unicode zlib"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
-RDEPEND="dev-libs/glib:2=
+RDEPEND="dev-libs/glib:2
        gadu? ( <net-libs/libgadu-1.12:0= )
        gpg? ( app-crypt/gpgme:1= )
-       gtk? ( x11-libs/gtk+:2= )
+       gtk? ( x11-libs/gtk+:2 )
        nls? ( virtual/libintl:0= )
        openssl? ( dev-libs/openssl:0= )
        perl? ( dev-lang/perl:0= )
@@ -53,11 +47,6 @@ DOCS=(
        docs/ui-ncurses.txt docs/ui-ncurses-en.txt
 )
 
-#if LIVE
-KEYWORDS=
-SRC_URI=
-#endif
-
 pkg_pretend() {
        if ! use gtk && ! use ncurses && ! use readline; then
                ewarn 'ekg2 is being compiled without any frontend. You should consider'
@@ -66,8 +55,13 @@ pkg_pretend() {
        fi
 }
 
+src_prepare() {
+       default
+       eautoreconf
+}
+
 src_configure() {
-       myeconfargs=(
+       local myconf=(
                # direct plugin references
                $(use_enable gadu gg)
                $(use_enable gpg)
@@ -104,5 +98,10 @@ src_configure() {
                --with-perl-module-build-flags='INSTALLDIRS=vendor'
                --enable-fast-configure
        )
-       autotools-utils_src_configure
+       econf "${myconf[@]}"
+}
+
+src_install() {
+       default
+       find "${D}" -name '*.la' -delete || die
 }