Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73103 - gourmet-0.7.1.ebuild (New Package)
Summary: gourmet-0.7.1.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Lowest enhancement (vote)
Assignee: Joe Sapp (RETIRED)
URL: http://grecipe-manager.sourceforge.net/
Whiteboard:
Keywords: EBUILD
: 107203 (view as bug list)
Depends on: 132033
Blocks:
  Show dependency tree
 
Reported: 2004-12-01 22:21 UTC by Chris Murphy
Modified: 2008-08-15 03:14 UTC (History)
18 users (show)

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


Attachments
gourmet-0.6.5.ebuild (gourmet-0.6.5.ebuild,993 bytes, text/plain)
2004-12-01 22:23 UTC, Chris Murphy
Details
gourmet-0.6.5.ebuild (gourmet-0.6.5.ebuild,1.08 KB, text/plain)
2004-12-01 22:42 UTC, Chris Murphy
Details
gourmet-0.7.0.ebuild (gourmet-0.7.0.ebuild,1.09 KB, text/plain)
2005-01-16 17:55 UTC, Yaakov S
Details
gourmet-0.7.1.ebuild (gourmet-0.7.1.ebuild,1.12 KB, text/plain)
2005-01-20 22:32 UTC, Yaakov S
Details
gourmet-0.8.0_pre.ebuild (gourmet-0.8.0_pre.ebuild,1.18 KB, application/octet-stream)
2005-03-04 13:38 UTC, Marc Bodmer
Details
gourmet-0.8.0.ebuild (gourmet-0.8.0.ebuild,1.12 KB, text/plain)
2005-03-06 05:03 UTC, Marc Bodmer
Details
gourmet-0.8.3.4.ebuild (gourmet-0.8.3.4.ebuild,1.12 KB, text/plain)
2005-04-28 08:00 UTC, Bill Rosgen
Details
gourmet 0.8.5.10 ebuild (gourmet-0.8.5.10.ebuild,1.14 KB, text/plain)
2005-08-11 18:27 UTC, seddes
Details
updated 0.8.5.10 ebuild (gourmet-0.8.5.10.ebuild,1.14 KB, text/plain)
2005-08-11 18:35 UTC, seddes
Details
gourmet-0.8.5.10.ebuild (updated) (gourmet-0.8.5.10.ebuild,1.05 KB, text/plain)
2005-09-01 12:47 UTC, Yaakov S
Details
This is version 0.8.5.12 (gourmet-0.8.5.12.ebuild,682 bytes, text/plain)
2005-11-22 23:35 UTC, Jonathan Schaeffer
Details
gourmet-0.10.0 ebuild (unstable) (gourmet-0.10.0.ebuild,1.10 KB, text/plain)
2006-03-05 06:49 UTC, seddes
Details
Ebuild for 0.10.1 (gourmet-0.10.1.ebuild,1.53 KB, application/octet-stream)
2006-03-25 16:55 UTC, Xavier Maillard
Details
Ebuild for gourmet 0.11.1 (gourmet-0.11.1.ebuild,1.53 KB, text/plain)
2006-04-23 16:01 UTC, David Butler
Details
Support latest release and fixes ebuild bugs (gourmet-0.13.4-r2.ebuild,1.35 KB, text/plain)
2007-12-20 11:01 UTC, Marshall McMullen
Details
Fixed ebuild to include dev-python/reportlab dependency (gourmet-0.13.4-r2.ebuild,1.38 KB, text/plain)
2007-12-20 11:10 UTC, Marshall McMullen
Details
gourmet 0.13.4 (gourmet-0.13.4.ebuild,1.00 KB, text/plain)
2008-05-30 23:48 UTC, Joe Sapp (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Murphy 2004-12-01 22:21:58 UTC
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
Comment 1 Chris Murphy 2004-12-01 22:23:57 UTC
Created attachment 45114 [details]
gourmet-0.6.5.ebuild
Comment 2 Chris Murphy 2004-12-01 22:42:55 UTC
Created attachment 45118 [details]
gourmet-0.6.5.ebuild

Cleaned up some spacing issues after learning about the existence of repoman.
Comment 3 Scott McKenzie 2004-12-15 01:13:55 UTC
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"
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2005-01-03 20:48:59 UTC
I'm on leave of absence for the next 45-90 days, sorry :/
Comment 5 richard ferguson 2005-01-10 08:19:32 UTC
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
Comment 6 Yaakov S 2005-01-16 17:53:58 UTC
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.
Comment 7 Yaakov S 2005-01-16 17:55:06 UTC
Created attachment 48700 [details]
gourmet-0.7.0.ebuild
Comment 8 Yaakov S 2005-01-20 22:32:24 UTC
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.
Comment 9 Marc Bodmer 2005-03-04 13:38:24 UTC
Created attachment 52681 [details]
gourmet-0.8.0_pre.ebuild
Comment 10 Marc Bodmer 2005-03-06 05:03:27 UTC
Created attachment 52780 [details]
gourmet-0.8.0.ebuild

0.8.0 Release available now...
Comment 11 Sébastien Cérèze 2005-03-20 08:48:29 UTC
Gourmet Recipe Manager 0.8.1.2 has been released!
When could we have it in the portage tree ?
It's a great application.
Comment 12 Sébastien Cérèze 2005-04-09 23:36:47 UTC
version 0.8.3.1 is available.
Comment 13 Bill Rosgen 2005-04-28 08:00:52 UTC
Created attachment 57476 [details]
gourmet-0.8.3.4.ebuild

0.8.3.4 is the current version.
Comment 14 Steev Klimaszewski (RETIRED) gentoo-dev 2005-05-19 00:23:35 UTC
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.
Comment 15 Sebastian Spaeth 2005-05-20 04:29:54 UTC
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.
Comment 16 seddes 2005-08-11 18:27:15 UTC
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.
Comment 17 seddes 2005-08-11 18:35:04 UTC
Created attachment 65715 [details]
updated 0.8.5.10 ebuild

Added in  ~amd64
Comment 18 Ciaran McCreesh 2005-08-31 18:03:08 UTC
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.
Comment 19 Yaakov S 2005-09-01 12:47:09 UTC
Created attachment 67430 [details]
gourmet-0.8.5.10.ebuild (updated)

OK, could the reporter reopen?
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2005-09-25 11:29:01 UTC
*** Bug 107203 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2005-09-25 11:29:35 UTC
Reopen.
Comment 22 Dead Schorsch 2005-11-21 03:35:59 UTC
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'
Comment 23 Jonathan Schaeffer 2005-11-22 23:35:06 UTC
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.
Comment 24 seddes 2006-03-05 06:49:24 UTC
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.
Comment 25 Xavier Maillard 2006-03-25 16:55:11 UTC
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.
Comment 26 David Butler 2006-04-23 16:01:52 UTC
Created attachment 85312 [details]
Ebuild for gourmet 0.11.1
Comment 27 Andreas Niederl 2006-10-21 03:14:16 UTC
(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
Comment 28 Marshall McMullen 2007-12-20 11:01:13 UTC
Created attachment 138968 [details]
Support latest release and fixes ebuild bugs
Comment 29 Marshall McMullen 2007-12-20 11:05:00 UTC
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 30 Marshall McMullen 2007-12-20 11:07:13 UTC
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="&gt;=virtual/python-2.3
>	&gt;=dev-python/pygtk-2.3.93
>	=dev-python/gnome-python-2*
>	=gnome-base/libglade-2*
>	&gt;=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" ] &amp;&amp; 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>
Comment 31 Marshall McMullen 2007-12-20 11:10:22 UTC
Created attachment 138969 [details]
Fixed ebuild to include dev-python/reportlab dependency

Added dependency for dev-python/reportlab
Comment 32 Trinine 2008-01-04 19:06:13 UTC
(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 )"
Comment 33 Joe Sapp (RETIRED) gentoo-dev 2008-05-30 23:48:31 UTC
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().
Comment 34 Joe Sapp (RETIRED) gentoo-dev 2008-08-15 01:34:55 UTC
I'll take ownership of this package.
Comment 35 Joe Sapp (RETIRED) gentoo-dev 2008-08-15 03:14:47 UTC
It's in CVS now.  Thanks to everybody's hard work on this package!  File any bugs should you find any.