commit:     28bf78317cf5f57bd7e4875826a2d51d52fa7524
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 20 19:04:38 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Apr 20 19:06:56 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28bf7831

dev-util/geany: Bumped live ebuild top EAPI-7

replaced gnome2-utils eclass with xdg eclass

Bug: https://bugs.gentoo.org/588570
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 dev-util/geany/geany-9999.ebuild | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/dev-util/geany/geany-9999.ebuild b/dev-util/geany/geany-9999.ebuild
index f07d539b727..79034d53feb 100644
--- a/dev-util/geany/geany-9999.ebuild
+++ b/dev-util/geany/geany-9999.ebuild
@@ -1,9 +1,10 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit gnome2-utils xdg-utils
+# eutils required for strip-linguas
+inherit eutils xdg
 
 LANGS="ar ast be bg ca cs de el en_GB es et eu fa fi fr gl he hi hu id it ja 
kk ko lb lt mn nl nn pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN ZH_TW"
 NOSHORTLANGS="en_GB zh_CN zh_TW"
@@ -14,6 +15,7 @@ if [[ "${PV}" = 9999* ]] ; then
        inherit autotools git-r3
        EGIT_REPO_URI="https://github.com/geany/geany.git";
 else
+       [[ "${PV}" == *_pre* ]] && inherit autotools
        SRC_URI="https://download.geany.org/${P}.tar.bz2";
        KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd 
~amd64-linux ~x86-linux"
 fi
@@ -41,7 +43,7 @@ pkg_setup() {
 }
 
 src_prepare() {
-       default
+       xdg_src_prepare #588570
 
        # Syntax highlighting for Portage
        sed -i -e "s:*.sh;:*.sh;*.ebuild;*.eclass;:" \
@@ -56,7 +58,6 @@ src_configure() {
        local myeconfargs=(
                --disable-html-docs
                --disable-dependency-tracking
-               --docdir="${EPREFIX}/usr/share/doc/${PF}"
                $(use_enable gtk3)
                $(use_enable vte)
        )
@@ -68,14 +69,14 @@ src_install() {
        find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
 }
 
-pkg_preinst() { gnome2_icon_savelist; }
+pkg_preinst() {
+       xdg_pkg_preinst
+}
 
 pkg_postinst() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
+       xdg_pkg_postinst
 }
 
 pkg_postrm() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
+       xdg_pkg_postrm
 }

Reply via email to