Giter VIP home page Giter VIP logo

gr's Introduction

GNOME Recipes

Recipes icon

This app is about cooking and recipes.

The main objects of interest are

  • Recipes
  • Ingredients
  • Cuisines
  • Chefs

The design can be found here: https://wiki.gnome.org/Design/Apps/Recipes

Other information can be found here: https://wiki.gnome.org/Apps/Recipes

Building

Dependencies (at least): meson gtk+-3 gnome-autoar-0 gspell-1 libcanberra itstool

On Fedora

sudo dnf install meson itstool gtk3-devel gnome-autoar-devel gspell-devel libcanberra-devel libsoup-devel

After the 1.0 release, Recipes has switched to exclusively use meson as build system.

To build Recipes from git, use the following steps: (note that the ninja tools is called ninja-build on Fedora)

git clone --recursive git://git.gnome.org/recipes
cd recipes
rm -rf build
meson --prefix=<your prefix> build
ninja -C build
ninja -C build install

Note that the install step is optional. Recipes works just fine uninstalled, like this:

GSETTINGS_SCHEMA_DIR=build/data ./build/src/gnome-recipes

jhbuild also knows how to build recipes.

Other platforms

GNOME recipes has been successfully built on OS X. The following steps should get you there:

brew install autoconf
brew install automake
brew install libtool
brew install gettext
brew install pkg-config
brew install meson
  • MacOS Sierra and Gettext On Sierra (at the least) gettext formula is keg only, in order to let the configuration script to find msgfmt you will need to link the gettext package into the system. If you think this might break other builds I would recommend to unlink (brew unlink gettext) after the compilation process.
brew link --force gettext
  • Install GTK+ and other dependencies:
brew install gtk+3
brew install adwaita-icon-theme
brew install gspell
  • Clone from git:
git clone --recursive git://git.gnome.org/recipes
  • Build from git as usual, disabling some problematic dependencies:
cd recipes
meson -Dautoar=no -Dcanberra=no build
ninja -C build

To build a released version of recipes on OS X, just

brew install recipes

jhbuild has also been used successfully to build recipes on OS X.

Testing

If you don't feel like building from source yourself, you can use Flatpak, like this:

flatpak install --from https://git.gnome.org/browse/recipes/plain/flatpak/gnome-recipes.flatpakref

If you are lucky, just clicking this link will do the right thing.

After installing the Flatpak, the applications will show up in the GNOME shell overview, but you can also launch it from the commandline:

flatpak run org.gnome.Recipes

There is also a recipes.dmg installer for OS X.

gr's People

Contributors

aguzanotti avatar aklapper avatar chergert avatar cho2 avatar dareg avatar dmustieles avatar edihb avatar ektanandwani avatar enrico-br avatar giskarda avatar haaninjo avatar janderssonse avatar jasperla avatar jbicha avatar jimmac avatar jordimas avatar mariobl avatar marv-cz avatar matthiasclasen avatar mirosnik1 avatar muzena avatar mwleeds avatar nirbheek avatar paxblueribbon avatar piotrdrag avatar pksadiq avatar prcutler avatar rffontenelle avatar snwh avatar tmtfx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gr's Issues

Default view

As a Vegan I am not interested in seeing non vegan recipes.
It would be great to have a setting to allow either changing the default view to be one of the categories or having some kind of global filter so that I can only see vegan options.

Support recipe export

One should be able to export a recipe to various file formats for sharing, backup, archival, etc.

App is crashing after clicking at My recipes

george@ubuntu:~$ flatpak run org.gnome.Recipes
** Message: Load recipe db: /app/share/recipes/recipes.db
** Message: Load chefs db: /app/share/recipes/chefs.db
** Message: Load picks db: /app/share/recipes/picks.db
** Message: Load recipe db: /home/george/.var/app/org.gnome.Recipes/data/recipes/recipes.db
** Message: Load favorites db: /home/george/.var/app/org.gnome.Recipes/data/recipes/favorites.db
** Message: No cooked db at: /home/george/.var/app/org.gnome.Recipes/data/recipes/cooked.db
** Message: No chefs db at: /home/george/.var/app/org.gnome.Recipes/data/recipes/authors.db
** Message: Load user id: /home/george/.var/app/org.gnome.Recipes/data/recipes/user
** Message: 28 recipes loaded
** Message: 9 chefs loaded

(recipes:2): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

** (recipes:2): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-nexAL4het4: Connection refused

(recipes:2): Gtk-WARNING **: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned

(recipes:2): Gtk-WARNING **: Failed to get the Xfce session proxy: The name org.xfce.SessionManager is not owned

(recipes:2): Gtk-WARNING **: Failed to get an inhibit portal proxy: The name org.freedesktop.portal.Desktop is not owned
** Message: Load CSS from: resource:///org/gnome/Recipes/recipes.css
** Message: Load CSS from: resource:///org/gnome/Recipes/cuisine.css

(recipes:2): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

Can't compile newest version

Hello!
I currently try to compile this on Gentoo (GCC 4.9.4), but it fails during make with following erros:

gr-details-page.c:335:9: error: implicit declaration of function ‘gtk_popover_popdown’ [-Werror=implicit-function-declaration]
         gtk_popover_popdown (GTK_POPOVER (page->timer_popover));
         ^
gr-details-page.c:335:9: error: nested extern declaration of ‘gtk_popover_popdown’ [-Werror=nested-externs]
cc1: all warnings being treated as errors 
Makefile:857: recipe for target 'recipes-gr-details-page.o' failed

configure it without -Werror causes the build to fail later on with essentially the same error:

recipes-gr-edit-page.o:gr-edit-page.c:function add_ingredient: error: undefined reference to 'gtk_popover_popup'
recipes-gr-edit-page.o:gr-edit-page.c:function add_ingredient2: error: undefined reference to 'gtk_popover_popdown'
recipes-gr-image-viewer.o:gr-image-viewer.c:function file_chooser_response: error: undefined reference to 'gtk_file_chooser_get_choice'
recipes-gr-image-viewer.o:gr-image-viewer.c:function open_filechooser: error: undefined reference to 'gtk_file_chooser_add_choice'

Something is wrong with the repo today

george@george-ubuntu: sudo flatpak update
Looking for updates...
Warning: Can't find dependencies: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Warning: Problem looking for related refs: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Warning: Can't find dependencies: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Warning: Problem looking for related refs: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Warning: Can't find dependencies: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Warning: Problem looking for related refs: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Updating: org.gnome.Recipes/x86_64/master from org.gnome.Recipes-origin
Error: Failed to update org.gnome.Recipes/x86_64/master: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Updating: org.gnome.Platform.Locale/x86_64/3.22 from gnome
No updates.
Updating: org.gnome.Platform/x86_64/3.22 from gnome
No updates.
Updating: org.gnome.Recipes.Debug/x86_64/master from org.gnome.Recipes-originError: Failed to update org.gnome.Recipes.Debug/x86_64/master: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Updating: org.gnome.Recipes.Locale/x86_64/master from org.gnome.Recipes-origin
Error: Failed to update org.gnome.Recipes.Locale/x86_64/master: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Updating: org.gnome.Sdk.Debug/x86_64/3.22 from gnome
No updates.
Updating: org.gnome.Sdk.Locale/x86_64/3.22 from gnome
No updates.
Updating: org.gnome.Sdk/x86_64/3.22 from gnome
No updates.
error: One or more operations failed
george@george-ubuntu: sudo flatpak uninstall
-? org.gnome.Recipes.Debug
--app org.gnome.Recipes.Locale
--arch= org.gnome.Sdk
--force-remove org.gnome.Sdk.Debug
--help org.gnome.Sdk.Locale
--installation --ostree-verbose
--keep-ref --runtime
--no-related --system
org.gnome.Platform --user
org.gnome.Platform.Locale -v
org.gnome.Recipes --verbose
george@george-ubuntu: sudo flatpak uninstall org.gnome.Recipes
Uninstalling org.gnome.Recipes/x86_64/master

Note that '/var/lib/flatpak/exports/share' is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment variables, so applications may not
be able to find it until you set them. The
directories currently searched are:

  • /home/george/.local/share
  • /usr/local/share/
  • /usr/share/

Uninstalling org.gnome.Recipes.Locale/x86_64/master
Uninstalling org.gnome.Recipes.Debug/x86_64/master
george@george-ubuntu: sudo flatpak uninstall org.gnome.
org.gnome.Platform org.gnome.Sdk.Debug
org.gnome.Platform.Locale org.gnome.Sdk.Locale
org.gnome.Sdk
george@george-ubuntu: sudo flatpak install --from https://matthiasclasen.github.io/recipes-releases/gnome-recipes.flatpakref
Installing: org.gnome.Recipes/x86_64/master
Warning: Can't find dependencies: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Warning: Problem looking for related refs: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
Installing: org.gnome.Recipes/x86_64/master from org.gnome.Recipes-origin
error: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable

Support variable ingredients in instructions

It would be nice if you could have ingredient values in the instructions change as you change the serves spinner.

Most of the time there is no need to put values in the instructions, but in some recipes, an ingredient may be used two different times during the preparation in different amounts.

For example, the other day I made some flan that required melting 1 cup of sugar and mixing another 3/4 cup with the batter. If you increase the amount to be served, these amounts should of course increase as well, but there is currently no way to convey that information.

I considered diving in and adding it myself, but I noticed that your recent change to using GrIngredientsViewer broke the variable ingredients.

Are variable ingredients possible with GrIngredientsViewer? Is that something you're working on now? How can I help?

Support alternate ingredients

For use cases where an ingredient can have common substitutions, alternate ingredients should be supported.

My case for this was a recipe I was copying in that called for either butter or margarine. And either sour cream or yogurt.

Option to import recipes from Gourmet Recipe Manager

I have a lot of recipes writed in Gourmet Recipe Manager and it would be great to be able to import them to recipes too. Gourmet Recipe Manager can export data in many different ways like XML, Mealmaster or MCB

Build failure: possibly undefined macro: AC_MSG_ERROR

I'm on Arch Linux X64 and followed the build instructions as follows but it dies with error:

marklt:~/Data/src git clone https://github.com/matthiasclasen/gr.git
Cloning into 'gr'...
remote: Counting objects: 2002, done.
remote: Compressing objects: 100% (358/358), done.
remote: Total 2002 (delta 234), reused 0 (delta 0), pack-reused 1644
Receiving objects: 100% (2002/2002), 17.93 MiB | 189.00 KiB/s, done.
Resolving deltas: 100% (1472/1472), done.
marklt:~/Data/src cd gr
marklt:~/Data/src/gr ./autogen.sh --prefix=/usr
Submodule 'libgd' (git://git.gnome.org/libgd) registered for path 'libgd'
Submodule 'libglnx' (https://git.gnome.org/browse/libglnx) registered for path 'libglnx'
Cloning into '/home/mark/Data/src/gr/libgd'...
Cloning into '/home/mark/Data/src/gr/libglnx'...
Submodule path 'libgd': checked out '752f65e91ea0d9a2ee8a2d21343bbd97bd0d038a'
Submodule path 'libglnx': checked out 'abd37a4790f86f53bfb442e6d80e1710f50bff92'
configure.ac:82: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:82: the top level
configure.ac:82: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:82: the top level
aclocal: installing 'm4/gettext.m4' from '/usr/share/aclocal/gettext.m4'
aclocal: installing 'm4/gsettings.m4' from '/usr/share/aclocal/gsettings.m4'
aclocal: installing 'm4/iconv.m4' from '/usr/share/aclocal/iconv.m4'
aclocal: installing 'm4/intlmacosx.m4' from '/usr/share/aclocal/intlmacosx.m4'
aclocal: installing 'm4/lib-ld.m4' from '/usr/share/aclocal/lib-ld.m4'
aclocal: installing 'm4/lib-link.m4' from '/usr/share/aclocal/lib-link.m4'
aclocal: installing 'm4/lib-prefix.m4' from '/usr/share/aclocal/lib-prefix.m4'
aclocal: installing 'm4/libtool.m4' from '/usr/share/aclocal/libtool.m4'
aclocal: installing 'm4/ltoptions.m4' from '/usr/share/aclocal/ltoptions.m4'
aclocal: installing 'm4/ltsugar.m4' from '/usr/share/aclocal/ltsugar.m4'
aclocal: installing 'm4/ltversion.m4' from '/usr/share/aclocal/ltversion.m4'
aclocal: installing 'm4/lt~obsolete.m4' from '/usr/share/aclocal/lt~obsolete.m4'
aclocal: installing 'm4/nls.m4' from '/usr/share/aclocal/nls.m4'
aclocal: installing 'm4/pkg.m4' from '/usr/share/aclocal/pkg.m4'
aclocal: installing 'm4/po.m4' from '/usr/share/aclocal/po.m4'
aclocal: installing 'm4/progtest.m4' from '/usr/share/aclocal/progtest.m4'
configure.ac:82: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:82: the top level
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Copying file ABOUT-NLS
Creating directory build-aux
Copying file build-aux/config.rpath
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/printf-posix.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/[email protected]
Copying file po/[email protected]
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
autoreconf: running: aclocal --force -I m4 -I libgd
configure.ac:82: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:82: the top level
configure.ac:82: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:82: the top level
autoreconf: configure.ac: tracing
configure.ac:82: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:82: the top level
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:82: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:82: the top level
configure.ac:82: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:82: the top level
autoreconf: running: /usr/bin/autoconf --force
configure.ac:82: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:82: the top level
configure.ac:90: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
marklt:~/Data/src/gr

Tests fail

Hello,

I currently ( try ) to build Gnome-Recipes, but its compilation tests fail. The compiled program itself works fine.
I build it on Exherbo Linux ( which is by no means mainstream ) - sorry if this is distribution related.

testlog.txt

Support recipe modification

One should be able to make custom or personalized versions of recipes already in Gnome Recipes or modify existing recipes.

How to use with newer GNOME version?

I'm trying to install pre-built (as building step fails severely) on latest Fedora 25, which uses GNOME 3.22.2, but after installation running fails as my machine does not have 3.22 version

error: runtime/org.gnome.Platform/x86_64/3.22 not installed

[Feature suggestion] export ingredients lists to smartphone app(s)?

I look forward to this app on Fedora soon :)

Thinking through use cases, I wondered how to get the ingredients list (to buy) into something neater than an email? e.g. import into an android app like https://f-droid.org/repository/browse/?fdfilter=shopping&fdid=privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist - I guess ingredients lists might not be standardised (yet); but it would be great to actually stick to the digital all the way to the market...
(I hope making this suggestion here is acceptable)

Mobile Android/IOS app

Hello, I don't know if this is where I post this. But I have an idea for this great little recipe GNOME app. There should be a mobile application for Android and IOS that can synce the recipes and make it easy to order the recipes online or via Walmart pickup or something similar. Let me know if this is something that is interesting.

Crashing on buy recipes (WSL)

Hello, when i click Buy Recipes app is crashing with: (gnome-recipes:27022): org.gnome.Recipes-ERROR **: 08:24:22.025: conversion yielded different units...why...
Aborted
On WSL!!!

Mixed fractions in ingredients not saving

I've noticed that when making a new recipe if I use a mixed fraction in an ingredient amount (ex. 1 1/2) it adds and shows correctly in the list upon clicking the "Add" button of the popover. However upon saving the recipe, any ingredient with mixed fractions is then missing.

Decimals work fine, like using "1.5" instead of "1 1/2". But I prefer the formatting and readability of the mixed fraction better.

Export file is named by the image filename.

When exporting a recipe, the resulting output file is named according to the name of the image file included in the recipe. I would expect it to be named by the recipe title.

App is crashing after clicking at "Buy Ingredients"

Program received signal SIGSEGV, Segmentation fault.
gr_recipe_store_add_to_shopping (self=self@entry=0x1d1a920, recipe=0x1d69210,
serves=4) at gr-recipe-store.c:1536
1536 for (i = 0; self->shopping[i]; i++) {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.