Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665026 - app-admin/gtkdiskfree-2.0.3: use EAPI 7
Summary: app-admin/gtkdiskfree-2.0.3: use EAPI 7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Samuel Bauer
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2018-09-01 12:37 UTC by Samuel Bauer
Modified: 2020-08-15 09:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gtkdiskfree-2.0.3.ebuild (gtkdiskfree-2.0.3.ebuild,660 bytes, text/plain)
2018-09-01 12:37 UTC, Samuel Bauer
Details
/mnt/win/e/gtkdiskfree-2.0.3.ebuild.patch (gtkdiskfree-2.0.3.ebuild.patch,1021 bytes, patch)
2018-09-13 12:57 UTC, Samuel Bauer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bauer 2018-09-01 12:37:28 UTC
Created attachment 545722 [details]
gtkdiskfree-2.0.3.ebuild

Updated SRC_URI:
       No need to inherit vcs-snapshot
Use EAPI 7
Fix headers to make repoman happy
Comment 1 Andreas Sturmlechner gentoo-dev 2018-09-01 12:43:46 UTC
Thanks, please always attach unified diffs rather than full ebuilds to make easy review possible.
Comment 2 Samuel Bauer 2018-09-13 12:57:46 UTC
Created attachment 546804 [details, diff]
/mnt/win/e/gtkdiskfree-2.0.3.ebuild.patch

Patch to current gtkdiskfree-2.0.3 version

The old-color-selector flag allows one to use gtk2 color selector with gtk3
For now it is a compile time option, it'll soon be a runtime option.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-17 11:06:31 UTC
Comment on attachment 546804 [details, diff]
/mnt/win/e/gtkdiskfree-2.0.3.ebuild.patch

I'm sorry that nobody looked at this before.

>--- /usr/portage/app-admin/gtkdiskfree/gtkdiskfree-2.0.3.ebuild	2017-03-01 18:35:46.000000000 +0100
>+++ /mnt/gentoo/overlay/sam/app-admin/gtkdiskfree/gtkdiskfree-2.0.3.ebuild	2018-09-13 14:54:22.778399526 +0200
>@@ -1,18 +1,16 @@
>-# Copyright 1999-2016 Gentoo Foundation
>+# Copyright 1999-2018 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> 
>-EAPI=6
>-
>-inherit vcs-snapshot
>+EAPI=7
> 
> DESCRIPTION="Graphical tool to show free disk space like df"
> HOMEPAGE="https://gitlab.com/mazes_80/gtkdiskfree"
>-SRC_URI="https://gitlab.com/mazes_80/${PN}/repository/archive.tar.bz2?ref=${PV} -> ${P}.tar.bz2"
>+SRC_URI="https://gitlab.com/mazes_80/${PN}/-/archive/${PV}/${P}.tar.bz2"
> 
> LICENSE="GPL-2+"
> SLOT="0"
> KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
>-IUSE="gtk2"
>+IUSE="gtk2 old-color-selector"

You also need to describe this flag in metadata.xml.

> 
> RDEPEND="
> 	gtk2? ( x11-libs/gtk+:2 )
>@@ -24,5 +22,6 @@
> "
> 
> src_configure() {
>-	econf $(use_with gtk2)
>+	econf $(use_with gtk2) \
>+		$(! use gtk2 && use_enable old-color-selector)

'use gtk2 ||' is generally considered more obvious.

> }
Comment 4 Larry the Git Cow gentoo-dev 2020-08-15 09:30:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faca8e5bf131adecf368e32a329ac725c65ae307

commit faca8e5bf131adecf368e32a329ac725c65ae307
Author:     Henrik Pihl <ahvenas@gmail.com>
AuthorDate: 2020-08-01 09:53:53 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-08-15 09:29:45 +0000

    app-admin/gtkdiskfree: version bump, move to EAPI 7
    
    - Use the latest commit for this release, fixes lot of
    UI related visual issues not in a release yet.
    - Not using a separate USE flag for gtk 3 and the old
    color selector, as initially suggested in the bug.
    
    Closes: https://bugs.gentoo.org/665026
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Henrik Pihl <ahvenas@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/16925
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-admin/gtkdiskfree/Manifest                     |  1 +
 .../gtkdiskfree/gtkdiskfree-2.0.4_p20200224.ebuild | 33 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)