/[gentoo-x86]/media-video/griffith/griffith-0.13.ebuild
Gentoo

Contents of /media-video/griffith/griffith-0.13.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Jan 17 16:36:44 2013 UTC (4 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Request built-in Python sqlite3 support rather than pysqlite package.

(Portage version: 2.2.0_alpha154/cvs/Linux x86_64, signed Manifest commit with key 42B9401D)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/griffith/griffith-0.13.ebuild,v 1.3 2012/07/22 09:26:58 hwoarang Exp $
4
5 EAPI="4"
6
7 PYTHON_DEPEND="2"
8 PYTHON_USE_WITH=sqlite
9
10 inherit eutils versionator python multilib
11
12 ARTWORK_PV="0.9.4"
13
14 DESCRIPTION="Movie collection manager"
15 HOMEPAGE="http://griffith.berlios.de/"
16 SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz
17 mirror://berlios/griffith/${PN}-extra-artwork-${ARTWORK_PV}.tar.gz"
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="amd64 x86 ~x86-fbsd"
21 IUSE="doc"
22
23 RDEPEND="dev-python/imaging
24 gnome-base/libglade
25 dev-python/pyxml
26 >=dev-python/pygtk-2.6.1:2
27 dev-python/pygobject:2
28 >=dev-python/sqlalchemy-0.5.2
29 >=dev-python/reportlab-1.19"
30 DEPEND="${RDEPEND}
31 doc? ( app-text/docbook2X )"
32
33 pkg_setup() {
34 python_set_active_version 2
35 python_pkg_setup
36 }
37
38 src_prepare() {
39 sed -i \
40 -e 's#/pl/#/pl.UTF-8/#' \
41 "${S}"/docs/pl/Makefile || die "sed failed"
42
43 sed -i \
44 -e 's/ISO-8859-1/UTF-8/' \
45 "${S}"/lib/gconsole.py || die "sed failed"
46 epatch "${FILESDIR}/0.10-fix_lib_path.patch"
47 }
48
49 src_compile() {
50 # Nothing to compile and default `emake` spews an error message
51 true
52 }
53
54 src_install() {
55 use doc || { sed -i -e '/docs/d' Makefile || die ; }
56
57 emake \
58 LIBDIR="${D}/usr/$(get_libdir)/griffith" \
59 DESTDIR="${D}" DOC2MAN=docbook2man.pl install
60 dodoc AUTHORS ChangeLog README THANKS TODO NEWS TRANSLATORS
61
62 cd "${WORKDIR}/${PN}-extra-artwork-${ARTWORK_PV}/"
63 emake DESTDIR="${D}" install
64 }
65
66 pkg_postinst() {
67 python_mod_optimize /usr/$(get_libdir)/${PN}
68 einfo
69 einfo "${PN} can make use of the following optional dependencies"
70 einfo "dev-python/chardet: CSV file encoding detections"
71 einfo "dev-python/mysql-python: Python interface for MySQL connectivity"
72 einfo ">=dev-python/psycopg-2.4: Python interface for PostgreSQL connectivity"
73 einfo
74 }
75
76 pkg_postrm() {
77 python_mod_cleanup /usr/$(get_libdir)/${PN}
78 }

  ViewVC Help
Powered by ViewVC 1.1.13