summaryrefslogtreecommitdiff
path: root/app-misc/gourmet
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/gourmet
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/gourmet')
-rw-r--r--app-misc/gourmet/Manifest10
-rw-r--r--app-misc/gourmet/files/desktop-entry.patch10
-rw-r--r--app-misc/gourmet/files/gourmet-0.17.4-pyglet.patch56
-rw-r--r--app-misc/gourmet/files/no-docs-0.17.0.patch10
-rw-r--r--app-misc/gourmet/files/tostring-to-tobytes.patch26
-rw-r--r--app-misc/gourmet/gourmet-0.17.4-r1.ebuild60
-rw-r--r--app-misc/gourmet/gourmet-0.17.4-r2.ebuild62
-rw-r--r--app-misc/gourmet/metadata.xml48
8 files changed, 282 insertions, 0 deletions
diff --git a/app-misc/gourmet/Manifest b/app-misc/gourmet/Manifest
new file mode 100644
index 000000000000..d3f4d3ea5510
--- /dev/null
+++ b/app-misc/gourmet/Manifest
@@ -0,0 +1,10 @@
+AUX desktop-entry.patch 291 SHA256 cc1e41d9a426639bc19465d0dbd6b6b041643a8eccdd4a98665f3b27723b0a60 SHA512 f93f41082a6483828dd9c579c00f3b4c39574370d76954223f9b1b17663bab389b941461dfa3c7aa82c045b97d1a326791b3ed8ea6bcafad17bb879db068aff7 WHIRLPOOL 6c08c0ef0afded0072d8cd251488c6c19f7e96c7a8252401d1c3ed22404425e739beb16175a15fc51cd52647a398462e640bd232ebbcdf9ef23b5562f0549596
+AUX gourmet-0.17.4-pyglet.patch 1664 SHA256 134a23df0e5cf5a068719785d546915a5a4fa67b7a1ccc5c65f084f40b5ff15d SHA512 162b6b80b09326b15a1cbc8e045ba1fea36bfc106a6f1182659c890e0c100c0820b4f42f24f154be2f8fe2f457e212ace9c989002f33ea26523b1000b888c66e WHIRLPOOL ec6484301e92f09fe59a310bf7652d4068c888db3d2ce4cbb956292ac8caa094b9727028a055e4ab688d72c9519e64af13d4ba1b4327bf9933d9543240d1666f
+AUX no-docs-0.17.0.patch 338 SHA256 b6fb37e3ea0794e7024cc2ad04e5b8b10b2c10d04f37cbe9465bde39e827b24e SHA512 0e8f3c35411ee7f895490762acca7da2eff6e498de6c35511c90c2dd91dc6872f405b8a73465dd411eb193cbf0c8a37b75a5dd06e89e8601e268bffbe6f674ba WHIRLPOOL f5d086b87d394b8c058daa901c88761c20badd2ba3db0603300363f9dbdd6c5ac3ed01e02d3f7ca16faf13c30d7649180956af387b6cb1c3b03f9f82ea8a3e1b
+AUX tostring-to-tobytes.patch 988 SHA256 107b0cc16de64681702587d19964b5f21c3be665e3011c44854c89cfaa95e9b3 SHA512 72b12c9e775bea34ce82c53a8e808fd212eec523f03ca591735ee90121cc45ec6a6464168fe16d66c9889e92168accf8643b0486bc53ef8d144aa92070f3f94c WHIRLPOOL e8413d4e4ef967666671892970f6c2f934b8c43d023b45cf4eac621c8f38838d3c744134d97dc1cdde3c9a57e01d0f0ece4b5f6232b689caddc529c0f0115ed2
+DIST gourmet-0.17.4.tar.gz 8487830 SHA256 13edd3b9c3a3507d20b80cff0f88183ac7979b720e7577290815ffacca097fe3 SHA512 54010a5527f33e08b38d0fdf143cc4528e8ccc65ccad3253074135212751c3bc4385ba5f721327268f455bf85ff6f248e56ebfa1b98933a4ee061983eb9daa4e WHIRLPOOL 9f0f795ee405c0e72587451cbe5b6b72d5d35df2697f55325879c6841a39110773a4837f93b7823e4c0f64a48feb7b192a76cb6c7cc91f8bcd1bf40e9a065105
+EBUILD gourmet-0.17.4-r1.ebuild 2291 SHA256 08dd4a8b2222780166673f8ab1a5e8e0e522fed618ccf854d558fd039744ba55 SHA512 03b300cbfa5d4a1d9cd13301f33d817d9171fed26d21e329d523276294a562111b0db9b2cb04012879d782a6d871eb4117865569b6c769ad98a492f8bc8c2a35 WHIRLPOOL 00c53c330ea226caaa501879abaa94ca5ebca6bd0e6fe7ecbc35fd160dfed587340b191778a8a22ecde7d88e8a38422e873035d27e4e58fd17d4ac7fb1e12c7f
+EBUILD gourmet-0.17.4-r2.ebuild 2314 SHA256 564438000a2d1b20af536d6909e89bb7506ccd258b9c99b42009d4ead1830742 SHA512 0ec3c5a996f3ca5419abb854053813c5022b53915ac41bd56cf4ebd8eff2e3707d504808e6c888bccc897ffc48f8e86d40a6ce9e58317834e8e2e7a0d0f863a8 WHIRLPOOL cb6bf5f659478c34a133e6e6c57e066efd2c9a15f793e84fc4200fd0a26cdade5e2b3dcfd0a78731eb4cde0211b21af258e9aba49ffb9b8fc8c990f30a3c3330
+MISC ChangeLog 4043 SHA256 4d35bdb62214b893017d15f17f6d825cb2193ae3447425b54ae5cb6f42ec022a SHA512 0d3f109bff5b6b145714719eb7997908c06746ec4bfb07b6483ee107313fd4f79ce260c2969c025edb94c51ac435d63d19382c710c72b4457861423d5b3b57e0 WHIRLPOOL 59f7afd65d268274d2e60255a8b2abf2691ecc8bf9283854ec805fef1d21e93f1a4a4a656a04ecf73b8944290ba58d353c1a5b9606e7e5c8494d0fc35ade8d3e
+MISC ChangeLog-2015 8201 SHA256 b44e9b26ff4eb17d38233669702778e7d55cfa7741d4ed44d7213766765b0bd4 SHA512 04be873ec81e52ae74c1230b8b27774a37ffc80031bb997156c33d2412c1f189802eeb97999e6dd262cc85dd9e36f24bf863b57b94501be1d2f90ddbc2d433ee WHIRLPOOL 5e4cde6b304741352c3f598f2eefdf3e4fbc1c7743a04d4304059ae9b44d4564800822915b8d0e8f7077cfd63c94a90b4dac804624786c189ee5a27d1d30f7e9
+MISC metadata.xml 1559 SHA256 1e196f806b37e797b1fae33e4a5867c479d9c55cb7e43d5e4f86ae804e2f58b4 SHA512 67cb0b91052e1a2b0cd917839f796435cd45fe157e69d1ac8fbad7a3f4e09176db9f8d217edf0dd032cdc5b20a1e1c2ab3c56e57ddb8e291f55e5a1ff27764bf WHIRLPOOL 75a78af0c29da24788019851196cad3366063e9433dfacfee14ffdd5142b9070a8e28ec172864d5cff18cc80c937f1b1e3709aba4ecc76cad374ae00a9715e2c
diff --git a/app-misc/gourmet/files/desktop-entry.patch b/app-misc/gourmet/files/desktop-entry.patch
new file mode 100644
index 000000000000..b79aa5f7b770
--- /dev/null
+++ b/app-misc/gourmet/files/desktop-entry.patch
@@ -0,0 +1,10 @@
+--- gourmet.desktop.in
++++ gourmet.desktop.in
+@@ -4,6 +4,6 @@ _Comment=Organize recipes, create shopping lists, calculate nutritional informat
+ Exec=gourmet
+ Terminal=false
+ Type=Application
+-Categories=GNOME;Application;Utility;
++Categories=GNOME;Utility;
+ StartupNotify=true
+ Icon=gourmet
diff --git a/app-misc/gourmet/files/gourmet-0.17.4-pyglet.patch b/app-misc/gourmet/files/gourmet-0.17.4-pyglet.patch
new file mode 100644
index 000000000000..1547cde8f00d
--- /dev/null
+++ b/app-misc/gourmet/files/gourmet-0.17.4-pyglet.patch
@@ -0,0 +1,56 @@
+diff --git a/gourmet/sound.py b/gourmet/sound.py
+index 2dea6bb7..c232d258 100644
+--- a/gourmet/sound.py
++++ b/gourmet/sound.py
+@@ -1,15 +1,19 @@
+ try:
+- from sound_gst import Player
++ from sound_pyglet import Player
+ except ImportError:
+- print 'No gst player'
++ print 'No pyglet player'
+ try:
+- from sound_windows import Player
++ from sound_gst import Player
+ except ImportError:
+- print 'No windows player'
+- import sys
+- class Player:
+- """Fallback player"""
+- def play_file (self,path):
+- print 'No player installed -- beeping instead'
+- for n in range(5): sys.stdout.write('\a'); sys.stdout.flush()
++ print 'No gst player'
++ try:
++ from sound_windows import Player
++ except ImportError:
++ print 'No windows player'
++ import sys
++ class Player:
++ """Fallback player"""
++ def play_file (self,path):
++ print 'No player installed -- beeping instead'
++ for n in range(5): sys.stdout.write('\a'); sys.stdout.flush()
+
+diff --git a/gourmet/sound_pyglet.py b/gourmet/sound_pyglet.py
+new file mode 100644
+index 00000000..41da613a
+--- /dev/null
++++ b/gourmet/sound_pyglet.py
+@@ -0,0 +1,16 @@
++import pyglet
++
++class Player:
++ def __init__ (self):
++ pass
++
++ def play_file (self,path):
++ self.source = pyglet.media.load(path,streaming=False)
++ self.source.play()
++
++ def stop_play (self,path):
++ pass
++
++if __name__ == '__main__':
++ p = Player()
++ p.play_file('../data/sound/phone.wav')
diff --git a/app-misc/gourmet/files/no-docs-0.17.0.patch b/app-misc/gourmet/files/no-docs-0.17.0.patch
new file mode 100644
index 000000000000..9002a2ef3384
--- /dev/null
+++ b/app-misc/gourmet/files/no-docs-0.17.0.patch
@@ -0,0 +1,10 @@
+--- setup.py 2014-03-02 14:56:56.090600468 -0500
++++ setup.py 2014-03-02 14:57:00.184465687 -0500
+@@ -141,7 +141,6 @@
+
+ files.extend(data_files)
+ files.extend([(os.path.join(base,'ui'), glob.glob(os.path.join('ui','*.ui')))])
+- files.extend([(os.path.join('share','doc','gourmet'), ['FAQ', 'LICENSE'])])
+
+ return files
+
diff --git a/app-misc/gourmet/files/tostring-to-tobytes.patch b/app-misc/gourmet/files/tostring-to-tobytes.patch
new file mode 100644
index 000000000000..e42c59403d51
--- /dev/null
+++ b/app-misc/gourmet/files/tostring-to-tobytes.patch
@@ -0,0 +1,26 @@
+diff --git a/gourmet/gtk_extras/ratingWidget.py b/gourmet/gtk_extras/ratingWidget.py
+index 0e01735..efa6463 100644
+--- a/gourmet/gtk_extras/ratingWidget.py
++++ b/gourmet/gtk_extras/ratingWidget.py
+@@ -135,7 +135,7 @@ class StarGenerator:
+ if is_rgba: rowstride = 4
+ else: rowstride = 3
+ pb=gtk.gdk.pixbuf_new_from_data(
+- image.tostring(),
++ image.tobytes(),
+ gtk.gdk.COLORSPACE_RGB,
+ is_rgba,
+ 8,
+diff --git a/gourmet/plugins/browse_recipes/icon_helpers.py b/gourmet/plugins/browse_recipes/icon_helpers.py
+index 61c772c..2e7b08b 100644
+--- a/gourmet/plugins/browse_recipes/icon_helpers.py
++++ b/gourmet/plugins/browse_recipes/icon_helpers.py
+@@ -38,7 +38,7 @@ def get_pixbuf_from_image (image):
+ if is_rgba: rowstride = 4
+ else: rowstride = 3
+ pb=gtk.gdk.pixbuf_new_from_data(
+- image.tostring(),
++ image.tobytes(),
+ gtk.gdk.COLORSPACE_RGB,
+ is_rgba,
+ 8,
diff --git a/app-misc/gourmet/gourmet-0.17.4-r1.ebuild b/app-misc/gourmet/gourmet-0.17.4-r1.ebuild
new file mode 100644
index 000000000000..0ce9c07225d9
--- /dev/null
+++ b/app-misc/gourmet/gourmet-0.17.4-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="Recipe Organizer and Shopping List Generator for Gnome"
+HOMEPAGE="https://thinkle.github.com/gourmet/"
+SRC_URI="https://github.com/thinkle/gourmet/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="-i18n -ipython pdf print spell sound web"
+
+RDEPEND=">=dev-python/pygtk-2.22.0:2[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.7.9-r1[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ i18n? ( dev-python/elib-intl[${PYTHON_USEDEP}] )
+ ipython? ( >=dev-python/ipython-0.13.2[${PYTHON_USEDEP}] )
+ pdf? (
+ >=dev-python/reportlab-2.6[${PYTHON_USEDEP}]
+ >=dev-python/python-poppler-0.12.1-r4[${PYTHON_USEDEP}]
+ )
+ print? (
+ >=dev-python/reportlab-2.6[${PYTHON_USEDEP}]
+ >=dev-python/python-poppler-0.12.1-r4[${PYTHON_USEDEP}]
+ )
+ spell? ( >=dev-python/gtkspell-python-2.25.3-r1[${PYTHON_USEDEP}] )
+ sound? ( >=dev-python/gst-python-0.10.22-r1:0.10[${PYTHON_USEDEP}] )
+ web? ( >=dev-python/beautifulsoup-3.2.1-r1:python-2[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ >=dev-python/python-distutils-extra-2.37-r1[${PYTHON_USEDEP}]"
+
+PATCHES=( ${FILESDIR}/no-docs-0.17.0.patch ${FILESDIR}/tostring-to-tobytes.patch )
+DOCS=( ChangeLog CODING.md FAQ README.md TESTS TODO.md )
+
+python_prepare_all() {
+ # Modify these lines before copying them out
+ sed -i "s:base_dir = '..':base_dir = '/usr/share':" gourmet/settings.py || die
+ sed -i 's:data_dir = os.path.join(base_dir, "gourmet", "data"):data_dir = os.path.join(base_dir, "gourmet"):' gourmet/settings.py || die
+ sed -i 's:\(icon_base = os.path.join(data_dir,\) "icons",:\1 "gourmet",:' gourmet/settings.py || die
+ sed -i 's:\(locale_base = os.path.join(base_dir, "gourmet",\) "build",:\1:' gourmet/settings.py || die
+ sed -i 's:\(plugin_base = os.path.join(base_dir,\) "gourmet", "build", "share",:\1:' gourmet/settings.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_prepare() {
+ distutils-r1_python_prepare
+ sed -i "s:\(lib_dir = \)'../gourmet':\1'$(python_get_sitedir)':" gourmet/settings.py || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ doman gourmet.1
+}
diff --git a/app-misc/gourmet/gourmet-0.17.4-r2.ebuild b/app-misc/gourmet/gourmet-0.17.4-r2.ebuild
new file mode 100644
index 000000000000..f58cbc6a509b
--- /dev/null
+++ b/app-misc/gourmet/gourmet-0.17.4-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="Recipe Organizer and Shopping List Generator for Gnome"
+HOMEPAGE="https://thinkle.github.com/gourmet/"
+SRC_URI="https://github.com/thinkle/gourmet/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="-i18n -ipython pdf print spell sound web"
+
+RDEPEND=">=dev-python/pygtk-2.22.0:2[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.7.9-r1[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ i18n? ( dev-python/elib-intl[${PYTHON_USEDEP}] )
+ ipython? ( >=dev-python/ipython-0.13.2[${PYTHON_USEDEP}] )
+ pdf? (
+ >=dev-python/reportlab-2.6[${PYTHON_USEDEP}]
+ >=dev-python/python-poppler-0.12.1-r4[${PYTHON_USEDEP}]
+ )
+ print? (
+ >=dev-python/reportlab-2.6[${PYTHON_USEDEP}]
+ >=dev-python/python-poppler-0.12.1-r4[${PYTHON_USEDEP}]
+ )
+ spell? ( >=dev-python/gtkspell-python-2.25.3-r1[${PYTHON_USEDEP}] )
+ sound? ( dev-python/pyglet[${PYTHON_USEDEP}] )
+ web? ( >=dev-python/beautifulsoup-3.2.1-r1:python-2[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ >=dev-python/python-distutils-extra-2.37-r1[${PYTHON_USEDEP}]"
+
+PATCHES=( ${FILESDIR}/no-docs-0.17.0.patch \
+ ${FILESDIR}/tostring-to-tobytes.patch \
+ ${FILESDIR}/${PN}-${PV}-pyglet.patch )
+DOCS=( ChangeLog CODING.md FAQ README.md TESTS TODO.md )
+
+python_prepare_all() {
+ # Modify these lines before copying them out
+ sed -i "s:base_dir = '..':base_dir = '/usr/share':" gourmet/settings.py || die
+ sed -i 's:data_dir = os.path.join(base_dir, "gourmet", "data"):data_dir = os.path.join(base_dir, "gourmet"):' gourmet/settings.py || die
+ sed -i 's:\(icon_base = os.path.join(data_dir,\) "icons",:\1 "gourmet",:' gourmet/settings.py || die
+ sed -i 's:\(locale_base = os.path.join(base_dir, "gourmet",\) "build",:\1:' gourmet/settings.py || die
+ sed -i 's:\(plugin_base = os.path.join(base_dir,\) "gourmet", "build", "share",:\1:' gourmet/settings.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_prepare() {
+ distutils-r1_python_prepare
+ sed -i "s:\(lib_dir = \)'../gourmet':\1'$(python_get_sitedir)':" gourmet/settings.py || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ doman gourmet.1
+}
diff --git a/app-misc/gourmet/metadata.xml b/app-misc/gourmet/metadata.xml
new file mode 100644
index 000000000000..90652c4bf09f
--- /dev/null
+++ b/app-misc/gourmet/metadata.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>nixphoeni@gentoo.org</email>
+ <name>Joe Sapp</name>
+ </maintainer>
+ <longdescription>
+ Gourmet Recipe Manager is an application to store, organize
+ and search recipes. Gourmet also makes it easy to create
+ shopping lists from recipes. Gourmet imports recipes from a
+ number of sources, including MealMaster and MasterCook
+ archives and several popular websites. Gourmet can export
+ recipes as text, MealMaster files, HTML web pages, PDF, and
+ a custom XML format for exchange with other Gourmet users.
+ Gourmet supports linking images with recipes.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>Thomas_Hinkle@alumni.brown.edu</email>
+ <name>Thomas Mills Hinkle</name>
+ </maintainer>
+ <maintainer>
+ <email>ockham@raz.or.at</email>
+ <name>Bernhard Reiter</name>
+ </maintainer>
+ <bugs-to>https://github.com/thinkle/gourmet/issues</bugs-to>
+ <remote-id type="github">thinkle/gourmet</remote-id>
+ </upstream>
+ <use>
+ <flag name="i18n">
+ Enable support for i18n through elib.intl
+ </flag>
+ <flag name="ipython">
+ Enable support for the interactive Python console plugin
+ </flag>
+ <flag name="pdf">Enable export to PDF</flag>
+ <flag name="print">
+ Enable pretty Python printing
+ </flag>
+ <flag name="spell">
+ Enable support for the spell check plugin
+ </flag>
+ <flag name="web">
+ Enable support for the web import plugin
+ </flag>
+ </use>
+</pkgmetadata>