summaryrefslogtreecommitdiff
path: root/media-video/griffith
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 /media-video/griffith
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/griffith')
-rw-r--r--media-video/griffith/Manifest7
-rw-r--r--media-video/griffith/files/0.10-fix_lib_path.patch13
-rw-r--r--media-video/griffith/griffith-0.13-r1.ebuild78
-rw-r--r--media-video/griffith/metadata.xml15
4 files changed, 113 insertions, 0 deletions
diff --git a/media-video/griffith/Manifest b/media-video/griffith/Manifest
new file mode 100644
index 000000000000..c55af938f499
--- /dev/null
+++ b/media-video/griffith/Manifest
@@ -0,0 +1,7 @@
+AUX 0.10-fix_lib_path.patch 667 SHA256 f9c5a58ac4552ddfe254cdb9e02ef3e91a5feb500c7afe92f9faed9cc02687f2 SHA512 9e85aa92627898a667b86ead4ae691c9d2562300f99da4c4efe57644a9c2bddef0648fce39290b50471cc22e49b4bd478979d3147dfda8a52e8bd55d2c1c6ee7 WHIRLPOOL 2d21cf60ec65001dc5606c4cae638d9102bf0ff576b258aff45246d631d94a900e19a508aff8fed9becb80b5f0708d94959f4473271d35e7fec73492b40e8560
+DIST griffith-0.13.tar.gz 1565903 SHA256 60576d33aa855ab45d654288d7bf2ead8accecb72fd2acbc373656294ab8f242 SHA512 dc8117b1a89253a87eb303c5229e6cdffde26b52de9ac4a3409dcc3f6dca64105f13a98cace225a932aefb2d620e828eea66bae57f40328b7ee3c06a944f0bed WHIRLPOOL 9f46b25e345f5e3b6823c7a5faff173d6d63921b812f7b6de7c0f7c691f881f4252560baae5f4a8660b2f0e94370dcb28e60264d1c261e0b64f03c8d710bcdf1
+DIST griffith-extra-artwork-0.9.4.tar.gz 124008 SHA256 96bc01a05ad54aad9fabcf411809c46c78b990fc7656ea004cebdfd8ea9894fd SHA512 09e912b4511c5c4a7b501d9a8f98223d20e58574e667cdb759e66f743cce14b45cce8bf0f9502ff2aacfc09e7a7b37966a887205a74a6e028b832703a65a2734 WHIRLPOOL 166dcf1bee1ef07452d00b7c87f487fea5417a0b6d156afd127f8723c6d2c44d2a0e4a5719ab5f85c662b7bbc30f0fadd8ba7873908cdf7ae85167b07a518e6b
+EBUILD griffith-0.13-r1.ebuild 2104 SHA256 8070b303d7fed28f1f0de6c1c18df1232cfa55403a053beae1685666bbcfcfa6 SHA512 d295f32b9daf641cb05dd8cd9be7d3852725d4dfa66220f24eb478599d6d9b210b93d1d87d2be9f99c1a11e8ecc3f2b95f54e1fd984288cf41232cf4d2a59e75 WHIRLPOOL 0cc84b6c13f03263b7e97850541d67a8ce62e25fd0af70dc00d94a81d79e0bc6bc6945dd47a08d4558eab0aceb4e8e0fd3991656a730892539141aae9806f4fd
+MISC ChangeLog 3032 SHA256 ae8db1cd37e72e665ead210852d4cd7c525877487b55ae795ee23664cf9ab5cf SHA512 3833126c33efdd30b5ac3848d5e460a3bfbdb669ad4f6c7fc8269572ea6179b32c1a0b7bd757809fc1333cda2734ba4b9ce7aa3f445ef8043c521005969bb4aa WHIRLPOOL 5382d59070d38edfb47bad710d0d098a6e48d07d23c8ea2588b4ed4db2684a743dfae3a073d2b2223d52c7c5ffea820076c5a213429541812cf26be4b80fdba2
+MISC ChangeLog-2015 9835 SHA256 78a400b34b02b1b3dd875913a658719436a8babfe31978c55e5b59a45881f435 SHA512 f5702d13f2a1b96d3d82520a01b765648b2b78f01eed62ca5d963c1b546f47da0192a9379e77224ee517c6432224f7baba472072c000998bf6f0390dba266963 WHIRLPOOL 5115452e9824a3c69f58980f8a71ac83d42f7cff554b98ad10a1044d4a212edb047458ac6a81f522d50e4de3e4ac98589fd847758c4d55904047dcc3d6247ed2
+MISC metadata.xml 462 SHA256 6e2bf71ddd60d3db2ea72117a88617f654058b959fafcef23d771228da75e6ba SHA512 0aab82c7eaffc0269cb66bbdb5df6e98dad1259c50bfc5343839a7ec2c6b547d3f5d47053673dd8759d945083f2860790a7e2f2efb5f8b0f50be4e74beb1381e WHIRLPOOL e6e875629a9733ac0109bff47e87cdc20c4f270d96279efe1c8c705149dda98a3ada370bd18ec915b9b7a88078aa3e6a6d83b4a9f8eeef2a4268bff0f39f7246
diff --git a/media-video/griffith/files/0.10-fix_lib_path.patch b/media-video/griffith/files/0.10-fix_lib_path.patch
new file mode 100644
index 000000000000..952448f0f013
--- /dev/null
+++ b/media-video/griffith/files/0.10-fix_lib_path.patch
@@ -0,0 +1,13 @@
+Index: lib/initialize.py
+===================================================================
+--- lib.orig/initialize.py
++++ lib/initialize.py
+@@ -73,7 +73,7 @@ def locations(self, home_dir):
+ os.environ['LANG'] = lang
+
+ elif os.name == 'posix':
+- locations['share'] = os.path.abspath(os.path.join(locations['lib'], '..'))
++ locations['share'] = os.path.abspath(os.path.join(locations['lib'], '../../share/griffith/'))
+ locations['glade'] = os.path.join(locations['share'], 'glade')
+ locations['i18n'] = os.path.abspath(os.path.join(locations['share'], '..', 'locale'))
+ if not os.path.isdir(locations['i18n']):
diff --git a/media-video/griffith/griffith-0.13-r1.ebuild b/media-video/griffith/griffith-0.13-r1.ebuild
new file mode 100644
index 000000000000..55114ed59695
--- /dev/null
+++ b/media-video/griffith/griffith-0.13-r1.ebuild
@@ -0,0 +1,78 @@
+# 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 versionator python-single-r1 multilib
+
+ARTWORK_PV="0.9.4"
+
+DESCRIPTION="Movie collection manager"
+HOMEPAGE="http://www.griffith.cc/"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz
+ https://dev.gentoo.org/~hwoarang/distfiles/${PN}-extra-artwork-${ARTWORK_PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+IUSE="doc"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-python/pillow[${PYTHON_USEDEP}]
+ gnome-base/libglade[${PYTHON_USEDEP}]
+ dev-python/pyxml[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.6.1:2[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.5.2[${PYTHON_USEDEP}]
+ >=dev-python/reportlab-1.19[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ doc? ( app-text/docbook2X )"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ use doc || { sed -i -e '/docs/d' Makefile || die ; }
+ sed -i \
+ -e 's#/pl/#/pl.UTF-8/#' \
+ "${S}"/docs/pl/Makefile || die "sed failed"
+
+ sed -i \
+ -e 's/ISO-8859-1/UTF-8/' \
+ "${S}"/lib/gconsole.py || die "sed failed"
+
+ epatch "${FILESDIR}/0.10-fix_lib_path.patch"
+}
+
+src_compile() {
+ # Nothing to compile and default `emake` spews an error message
+ true
+}
+
+src_install() {
+ use doc || { sed -i -e '/docs/d' Makefile || die ; }
+
+ emake \
+ LIBDIR="${D}/usr/$(get_libdir)/griffith" \
+ DESTDIR="${D}" DOC2MAN=docbook2man.pl install
+ dodoc AUTHORS ChangeLog README THANKS TODO NEWS TRANSLATORS
+
+ cd "${WORKDIR}/${PN}-extra-artwork-${ARTWORK_PV}/"
+ emake DESTDIR="${D}" install
+ # This carries over from -0.13 but appears to have no effect.
+ python_optimize "${D}"usr/share/${PN}
+}
+
+pkg_postinst() {
+ einfo
+ einfo "${PN} can make use of the following optional dependencies"
+ einfo "dev-python/chardet: CSV file encoding detections"
+ einfo "dev-python/mysql-python: Python interface for MySQL connectivity"
+ einfo ">=dev-python/psycopg-2.4: Python interface for PostgreSQL connectivity"
+ einfo
+}
diff --git a/media-video/griffith/metadata.xml b/media-video/griffith/metadata.xml
new file mode 100644
index 000000000000..2625db8c809a
--- /dev/null
+++ b/media-video/griffith/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ <name>Gentoo Video project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">griffith</remote-id>
+ </upstream>
+</pkgmetadata>