Hi! I am submitting a new ebuild for gourmet-0.6.5.ebuild. Gourmet Recipe Manager is a simple but powerful recipe-managing application. Gourmet allows you to collect, search and organize your recipes, and to automatically generate shopping lists from your collection. It is built on python, gtk and the metakit database. I suggest app-misc/gourmet, since there is already a recipe program there. Apologies in advance, this is my first ever ebuild. I'm sure it's not perfect, but it seems to work. Chris
Created attachment 45114 [details] gourmet-0.6.5.ebuild
Created attachment 45118 [details] gourmet-0.6.5.ebuild Cleaned up some spacing issues after learning about the existence of repoman.
This ebuild works for me. Haven't done any extensive testing, but program compiles and runs without problem. It works for version 0.6.7 as well, but you have to replace the SRC_URI line due to a wierd filename with this version: SRC_URI="mirror://sourceforge/grecipe-manager/${PN}_${PV}-2.tgz"
I'm on leave of absence for the next 45-90 days, sorry :/
has anyone tried this with 0.7.0? I used the 6.5 ebuild and it appears to install fine but when I try to run I get an error about not being able to import gdebug. Does anyone know what provides this module? Traceback (most recent call last): File "/usr/bin/gourmet", line 12, in ? from gourmet.OptionParser import * File "/usr/lib/python2.3/site-packages/gourmet/__init__.py", line 10, in ? import convert File "/usr/lib/python2.3/site-packages/gourmet/convert.py", line 4, in ? from gdebug import * ImportError: No module named gdebug
The original 0.7.0 tarball was faulty; a tarball numbered 0.7.0-2 was released which fixed that problem. To make it more interesting, just today 0.7.1 was released, but I've tried downloading several times in different ways, and each time gzip says that it's not a valid gzipped archive. Looks like they need to spend just a bit more time before making a new release. In any case, the one problem with this ebuild as originally posted is that it won't work without an open X display; 'setup.py install' has an install_modules_check step which tries to import gtk.glade in order to test its presence. I'm attaching my modified ebuild for 0.7.0 below.
Created attachment 48700 [details] gourmet-0.7.0.ebuild
Created attachment 49085 [details] gourmet-0.7.1.ebuild There's finally a working tarball for 0.7.1, so here's a working ebuild for it.
Created attachment 52681 [details] gourmet-0.8.0_pre.ebuild
Created attachment 52780 [details] gourmet-0.8.0.ebuild 0.8.0 Release available now...
Gourmet Recipe Manager 0.8.1.2 has been released! When could we have it in the portage tree ? It's a great application.
version 0.8.3.1 is available.
Created attachment 57476 [details] gourmet-0.8.3.4.ebuild 0.8.3.4 is the current version.
Hey all, 0.8.4.3 is released - the last ebuild up there - simply renaming it works. Just did that in my own overlay, and everything is working great.
The last ebuild also works great for version 0.8.4.4. It installed fine on my amd64, so please add ~amd64 as a supported arch.
Created attachment 65714 [details] gourmet 0.8.5.10 ebuild 0.8.5.10 ebuild. Added pyrtf dependency as required, though it could be optional. Another optional dependency was python bindings for gnome print, but I couldn't see what package had the necessary libs.
Created attachment 65715 [details] updated 0.8.5.10 ebuild Added in ~amd64
Please fix the following and reopen (based upon attachment #65715 [details]): * DESCRIPTION is too long. * You're missing an inherit of eutils for built_with_use. Don't rely upon nested eclasses working, distutils may change at some point.
Created attachment 67430 [details] gourmet-0.8.5.10.ebuild (updated) OK, could the reporter reopen?
*** Bug 107203 has been marked as a duplicate of this bug. ***
Reopen.
Throws warning/error during compile: >>> /usr/lib/python2.4/site-packages/gourmet/exporters/pdf_exporter.py >>> /usr/lib/python2.4/site-packages/gourmet/exporters/gxml_exporter.py >>> /usr/lib/python2.4/site-packages/gourmet/exporters/gxml2_exporter.py >>> /usr/lib/python2.4/site-packages/gourmet/GourmetThreads.py * Byte compiling python modules for python-2.4 .. ... /usr/lib/python2.4/site-packages/gourmet/exporters/printer.py:29: SyntaxWarning: name 'RecRenderer' is assigned to before global declaration def load_lprprint (): /usr/lib/python2.4/site-packages/gourmet/exporters/printer.py:29: SyntaxWarning: name 'SimpleWriter' is assigned to before global declaration def load_lprprint (): /usr/lib/python2.4/site-packages/gourmet/exporters/printer.py:29: SyntaxWarning: name 'RecRenderer' is assigned to before global declaration def load_lprprint (): /usr/lib/python2.4/site-packages/gourmet/exporters/printer.py:29: SyntaxWarning: name 'SimpleWriter' is assigned to before global declaration def load_lprprint (): [ ok ] >>> Regenerating /etc/ld.so.cache... >>> app-misc/gourmet-0.8.5.10 merged. >>> Recording app-misc/gourmet in "world" favorites file... >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. Does not start: christoph@king ~ $ gourmet Traceback (most recent call last): File "/usr/bin/gourmet", line 13, in ? from gourmet.OptionParser import * File "/usr/lib/python2.4/site-packages/gourmet/__init__.py", line 10, in ? import gglobals File "/usr/lib/python2.4/site-packages/gourmet/gglobals.py", line 220, in ? import GourmetFauxThreads as gt File "/usr/lib/python2.4/site-packages/gourmet/GourmetFauxThreads.py", line 7, in ? import dialog_extras as de File "/usr/lib/python2.4/site-packages/gourmet/dialog_extras.py", line 2, in ? import gtk, gobject, os.path, optionTable, thumbnail, cb_extras, fnmatch File "/usr/lib/python2.4/site-packages/gourmet/optionTable.py", line 4, in ? class OptionTable (gtk.Table): AttributeError: 'module' object has no attribute 'Table'
Created attachment 73416 [details] This is version 0.8.5.12 I made this ebuild whithout knowing that there were allready one down here. Since it's my first ebuild, it may be ugly but compilation and program works just fine.
Created attachment 81396 [details] gourmet-0.10.0 ebuild (unstable) Gourmet-0.10.0 ebuild. Ebuild changes include: 1) Removes metakit and uses sqlite2 (should be made optional) 2) Added gnome-python-extras for printing (should be made optional) Software: Add new automated backup script into setup.py. This is less than ideal, but there's no real way to import smoothly from the old system to the new. * Make editing of recipe card a separate dialog from viewing recipe card. This allows the recipe card itself to lose the toolbar and look much cleaner. * Make text in recipe card reflow properly when resizing. * Improve import speed drastically by not inserting auto-generated keys into key table. * Only add keys to ingkey table (used for automatic key-guessing) when the user has modified something. This means we actually learn from the user rather than generating our own random noise. * Add support for typing "or" in a search instead of using the or bar (|). * Import sorting of USDA DB searches (in the nutritional info druid) to bring you better results faster. * Many, many more bugfixes along the way.
Created attachment 83126 [details] Ebuild for 0.10.1 New ebuild with few modifications. Works ok here. It would be cool to include this software into portage.
Created attachment 85312 [details] Ebuild for gourmet 0.11.1
(In reply to comment #26) > Created an attachment (id=85312) [edit] > Ebuild for gourmet 0.11.1 > This ebuild also works for gourmet 0.12.2 (new stable). However, there are some errors about printing when I start it which I haven't investigated yet: Loading gnomeprint failed: trying win Loading win failed: trying lpr
Created attachment 138968 [details] Support latest release and fixes ebuild bugs
Comment on attachment 138968 [details] Support latest release and fixes ebuild bugs I made a few revisions to this: 1. Supports latest release available upstream 2. Fixed a bug in ebuild in parsing DEPEND line (missing a dev-python/ on gnome-python-extras" 3. Removed check in pkg_setup for built_with_use '>=dev-python/pygtk-2.3.93' gnome as it does not use the gnome flag and would fail. One more fix is required -- needs a dependency for dev-python/reportlab After installing that, it loads up fine and seems to work normally...
Comment on attachment 138968 [details] Support latest release and fixes ebuild bugs ><HTML><HEAD/><BODY><PRE># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils distutils > >DESCRIPTION="Simple but powerful recipe-managing application" >HOMEPAGE="http://grecipe-manager.sourceforge.net/" >MY_P="${P}-2" >SRC_URI="mirror://sourceforge/grecipe-manager/${MY_P}.tar.gz" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86 ~amd64" >IUSE="" > >DEPEND=">=virtual/python-2.3 > >=dev-python/pygtk-2.3.93 > =dev-python/gnome-python-2* > =gnome-base/libglade-2* > >=dev-python/pysqlite-2.0 > dev-python/imaging > dev-python/gnome-python-extras > dev-python/pyrtf dev-python/reportlab > dev-db/metakit" > >DOCS="README TODO PKG-INFO CHANGES" > >src_unpack() { > unpack ${A} > cd ${S} >} > >pkg_setup() { > if ! built_with_use 'dev-db/metakit' python ; then > eerror "You need to install metakit with python support. Try:" > eerror "USE='python' emerge metakit" > die "python support missing from metakit" > fi >} > >src_compile() { > einfo "Nothing to be compiled." >} > >src_install() { > distutils_src_install --disable-modules-check > > for doc in ${DOCS}; do > [ -s "$doc" ] && dodoc $doc > done >} > >pkg_postinst() { > python_version > python_mod_optimize /usr/lib/python${PYVER}/site-packages/dosage > einfo "Please consult the README file included." >} > >pkg_postrm() { > python_version > python_mod_cleanup >} > ></PRE></BODY></HTML>
Created attachment 138969 [details] Fixed ebuild to include dev-python/reportlab dependency Added dependency for dev-python/reportlab
(In reply to comment #31) > Added dependency for dev-python/reportlab > From README file : Extra Requirements 1. For RTF support, you will need the PyRTF library 2. Gnomeprint bindings, for nice python printing. This is packaged differently in different places and versions, but will likely be in something called "python-gnome" or "pygtk-extras". So, I think the ebuild also should use something like that : IUSE="print rtf" DEPEND=">=virtual/python-2.3 >=dev-python/pygtk-2.3.93 =gnome-base/libglade-2* >=dev-python/pysqlite-2.0 dev-python/reportlab dev-python/imaging dev-db/metakit print? ( =dev-python/gnome-python-2* dev-python/gnome-python-extras ) rtf? ( dev-python/pyrtf )"
Created attachment 154897 [details] gourmet 0.13.4 I think you can get away with a lot less in the ebuild thanks to distutils.eclass. It seems to do a better job by default than what was done in the ebuild. If it weren't for the "--disable-modules-check", you could even get rid of redefining src_install().
I'll take ownership of this package.
It's in CVS now. Thanks to everybody's hard work on this package! File any bugs should you find any.