Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681830 - media-gfx/flameshot-0.6.0 - Powerful yet simple to use screenshot software
Summary: media-gfx/flameshot-0.6.0 - Powerful yet simple to use screenshot software
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/lupoDharkael/flame...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2019-03-27 01:01 UTC by Ryan El Kochta
Modified: 2020-05-28 18:39 UTC (History)
1 user (show)

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


Attachments
flameshot-0.6.0.diff (flameshot-0.6.0.diff,1.78 KB, patch)
2019-03-27 01:01 UTC, Ryan El Kochta
Details | Diff
flameshot-0.6.0.diff (flameshot-0.6.0-r1.diff,1.90 KB, patch)
2019-03-27 22:21 UTC, Ryan El Kochta
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan El Kochta 2019-03-27 01:01:48 UTC
Created attachment 570908 [details, diff]
flameshot-0.6.0.diff

Attached is an ebuild for lupoDharkael's Flameshot screenshot application (version 0.6.0).

Flameshot is a powerful, simple, customizable screenshot application written in C++ using Qt. As such, it depends on the base Qt libraries. It is licensed under the GNU General Public License version 3 or higher.

The appropriate place for this package is most likely media-gfx.

- Ryan El Kochta

P.S. this is my first time doing this, so if I'm doing something wrong, please let me know :-)
Comment 1 Ryan El Kochta 2019-03-27 22:21:15 UTC
Created attachment 570948 [details, diff]
flameshot-0.6.0.diff
Comment 2 Ryan El Kochta 2019-03-27 22:22:12 UTC
Created new ebuild with GCC version check (flameshot-0.6.0-r1.ebuild).
Comment 3 Joonas Niilola gentoo-dev 2019-03-28 06:12:12 UTC
Hey, 

it's become quite rare to merge ebuilds from bugzilla. You'd have more success by filing a PR in Github, which you can then link to close this bug.

You need to add a metadata.xml file with someone from Gentoo to commit for you. If you don't have a dedicated developer to commit for you, it's most likely going to be the proxy-maint project. Check examples from ebuilds in the tree how it's added to a metadata.xml file. 

https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
https://wiki.gentoo.org/wiki/Gentoo_GitHub

Then, about your ebuild. You should use xdg-utils.eclass with EAPI-7 instead of gnome2-utils.eclass to do the icon_cache_update. It's called xdg_icon_cache_update. I don't think the gnome2_icon_cache_update even works with EAPI-7, did you test this? With EAPI-6 you should still use gnome2_icon_cache_update.

Then your GCC check is a bit wrong, because $(gcc-version) returns a string, and it only returns the major.minor version. For this one you should use "$(gcc-fullversion) -lt 4.9.2"

Good luck :)
Comment 4 Ryan El Kochta 2019-03-30 02:51:15 UTC
(In reply to Joonas Niilola from comment #3)
> Hey, 
> 
> it's become quite rare to merge ebuilds from bugzilla. You'd have more
> success by filing a PR in Github, which you can then link to close this bug.
> 
> You need to add a metadata.xml file with someone from Gentoo to commit for
> you. If you don't have a dedicated developer to commit for you, it's most
> likely going to be the proxy-maint project. Check examples from ebuilds in
> the tree how it's added to a metadata.xml file. 
> 
> https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
> https://wiki.gentoo.org/wiki/Gentoo_GitHub
> 
> Then, about your ebuild. You should use xdg-utils.eclass with EAPI-7 instead
> of gnome2-utils.eclass to do the icon_cache_update. It's called
> xdg_icon_cache_update. I don't think the gnome2_icon_cache_update even works
> with EAPI-7, did you test this? With EAPI-6 you should still use
> gnome2_icon_cache_update.
> 
> Then your GCC check is a bit wrong, because $(gcc-version) returns a string,
> and it only returns the major.minor version. For this one you should use
> "$(gcc-fullversion) -lt 4.9.2"
> 
> Good luck :)

Thank you for the advice - it is very much appreciated.

I have followed your committing advice and opened a PR (https://github.com/gentoo/gentoo/pull/11539).

I have also addressed the issues you mentioned about the ebuild, and cleaned up some unset variables. It now uses xdg-utils and gcc-fullversion.

Thanks again!
Comment 5 Maxim Koltsov (RETIRED) gentoo-dev 2020-05-28 18:39:11 UTC
Added.

commit c8519f723d963b46b3ff2137d9ac7d498af94a57 (HEAD -> master, origin/master)
Author: Pavel Kalugin <38429428+pavel-the-best@users.noreply.github.com>
Date:   Mon May 25 21:48:18 2020 +0300

    media-gfx/flameshot: new package
    
    Signed-off-by: Pavel Kalugin <paul.kalug@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/15968
    Signed-off-by: Maxim Koltsov <maksbotan@gentoo.org>