Created attachment 398018 [details] quitcount-3.1.3.ebuild Hi ! I've made an ebuild for the quitcount application which is a tiny system tray applet to keep track of how many days you've spend away from smoking as well as money saved and other variables. The ebuild works fine and the application runs flawlessly but I'm still unsure about the DEPEND/RDEPEND part (newbie ebuild writer here), I've used scanelf to inspect to binary and I've put what I thought would be the proper variables. Please let me know if I need to fix something, I'm willing to finish my work on it :) Have a nice day !
Created attachment 398020 [details] emerge --info
Created attachment 401856 [details] Updated ebuild Updated ebuild to remove unneeded dependencies
This is close to standard. Requires: 1. The ebuild requires a version in its name. The ebuild indicate vn. 3.1 but there is a choice of 3 minor vns. I have tested on the most recent; quitcount-3.1.3.ebuild 2. http://sourceforge.net/projects/quitcount/files/quitcount/3.1/${P}.tar.gz is odd since it doesn't correspond to the normal conventions. In ebuild writing it is convention to do something like; MV="3.1" SRC_URI="mirror://sourceforge/${PN}/${MV}/${P}.tar.gz". There is more than one right way here. 3. while pkg_postinst() { gtk-update-icon-cache; } works, it is better form to use the eclass to call gtk-update-icon-cache, in this case gnome2-utils. For a sample ebuild, see media-video/mpv/mpv-0.11.0.ebuild. Otherwise, I get the ebuild with above changes to build and install
Hi Ian ! A warm thanks for your time on this bug report, your explanation was very clear, this is helpful and really appreciated ! I did the needed changes on the ebuild, I think we're pretty close to what it should look like. Laurent
Created attachment 418750 [details] quitcount-3.1.3.ebuild (updated 08/12/2015)
looks fine. Well done. Will likely add tomorrow.
DESCRIPTION is generally kept <= 80 chars, and also is meant not to contain the name of its own package. This crosses both rules. Also re-position MV="3.1" to be before DESCRIPTION. Rest looks fine
Created attachment 418938 [details] quitcount-3.1.3.ebuild (fixed) Hi Ian, Thank you for your feedback ! Here's the updated version, fixing the two errors listed above. Kind regards, Laurent
commit 508f2577f3ebf0bf400302746bac89242878a287 Author: Ian Delaney <idella4@gentoo.org> Date: Tue Dec 15 14:14:22 2015 +0800 x11-misc/quitcount: New ebuild submitted via buzilla bug #542072 A tiny system tray applet, author set as proxy maintainer under the proxy-maintainers project, fixes the gentoo bug Gentoo bug: #542072