summaryrefslogtreecommitdiff
path: root/media-video
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2016-07-07 08:02:47 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2016-07-07 08:02:47 +0300
commita3bde389df8d34ea3cdc37220c1fe9691a386561 (patch)
tree90408e5acd43920ef2eecfd8536e048759591843 /media-video
parente9c2e55c71fe01212e6fec7b79dc20de76d49431 (diff)
added griffith
Diffstat (limited to 'media-video')
-rw-r--r--media-video/griffith/griffith-scm.ebuild75
-rw-r--r--media-video/griffith/metadata.xml15
2 files changed, 90 insertions, 0 deletions
diff --git a/media-video/griffith/griffith-scm.ebuild b/media-video/griffith/griffith-scm.ebuild
new file mode 100644
index 0000000..adc4226
--- /dev/null
+++ b/media-video/griffith/griffith-scm.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE='sqlite'
+
+inherit versionator python-single-r1 multilib git-r3
+
+ARTWORK_PV="0.9.4"
+
+DESCRIPTION="Movie collection manager"
+HOMEPAGE="http://www.griffith.cc/"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/santiavenda2/griffith"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="doc"
+
+RDEPEND="dev-python/pillow
+ gnome-base/libglade
+ 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"
+
+}
+
+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 0000000..2625db8
--- /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>