app-misc/gnome-commander: more work on 1.3.0.99
[gentoo-soor-overlay.git] / app-misc / gnome-commander / gnome-commander-1.3.0.99.ebuild
Commit [+]AuthorDateLineData
361a2415
LVM
Leonardo Valeri Manera2008-04-28 23:59:36 +02001# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License, v2 or later
3# $Header:
4
fa466a20
LVM
Leonardo Valeri Manera2008-05-09 19:09:51 +02005EAPI="1"
6
361a2415
LVM
Leonardo Valeri Manera2008-04-28 23:59:36 +02007inherit gnome2 flag-o-matic subversion autotools
8
9DESCRIPTION="A full featured, dual-pane file manager for Gnome2"
10HOMEPAGE="http://www.nongnu.org/gcmd/"
11
12ESVN_REPO_URI="svn://svn.gnome.org/svn/gnome-commander/branches/gcmd-1-3"
13SRC_URI=""
14
15KEYWORDS=""
16
17LICENSE="GPL-2"
18
17cd5ec0 Leonardo Valeri Manera2008-05-09 20:25:25 +020019IUSE="doc chm exif gsf taglib python"
361a2415
LVM
Leonardo Valeri Manera2008-04-28 23:59:36 +020020SLOT="0"
21
ee309134
LVM
Leonardo Valeri Manera2008-05-09 20:20:48 +020022USE_DESC="chm: add support for Microsoft Compiled HTML Help files
23 exif: add support for Exif and IPTC
361a2415 Leonardo Valeri Manera2008-04-28 23:59:36 +020024 gsf: add support for OLE, OLE2 and ODF
ee309134 Leonardo Valeri Manera2008-05-09 20:20:48 +020025 taglib: add support for ID3, Vorbis, FLAC and APE
361a2415
LVM
Leonardo Valeri Manera2008-04-28 23:59:36 +020026 python: add support for python plugins"
27
ee309134
LVM
Leonardo Valeri Manera2008-05-09 20:20:48 +020028RDEPEND=">=x11-libs/gtk+-2.8.0:2
29 >=dev-libs/glib-2.6.0:2
30 >=gnome-base/libgnomeui-2.4.0
31 >=gnome-base/libgnome-2.4.0
32 >=gnome-base/gnome-vfs-2.0.0
fa466a20 Leonardo Valeri Manera2008-05-09 19:09:51 +020033 virtual/fam
ee309134
LVM
Leonardo Valeri Manera2008-05-09 20:20:48 +020034 chm? ( >=app-doc/chmlib-0.39 )
35 exif? ( >=media-gfx/exiv2-0.14 )
36 gsf? ( >=gnome-extra/libgsf-1.12.0 )
37 taglib? ( >=media-libs/taglib-1.4 )
38 python? ( >=dev-lang/python-2.4 )"
361a2415
LVM
Leonardo Valeri Manera2008-04-28 23:59:36 +020039
40DEPEND="${RDEPEND}
41 dev-util/intltool
42 dev-util/pkgconfig"
43
44DOCS="AUTHORS BUGS ChangeLog NEWS README TODO"
45
ca876cbc
LVM
Leonardo Valeri Manera2008-05-09 20:46:20 +020046run_config() {
47 local ret config_command="${1}"
48 ebegin "Running ${config_command}"
49 ${config_command} &>/dev/null
50 ret=${?}
51 eend ${ret}
52 return ${ret}
53}
54
361a2415
LVM
Leonardo Valeri Manera2008-04-28 23:59:36 +020055pkg_setup() {
56 G2CONF=" ${G2CONF}
96c86516 Leonardo Valeri Manera2008-05-09 20:28:31 +020057 $(use_with chm chmlib)
ee309134
LVM
Leonardo Valeri Manera2008-05-09 20:20:48 +020058 $(use_with exif exiv2)
59 $(use_with gsf libgsf)
60 $(use_with taglib taglib)
361a2415
LVM
Leonardo Valeri Manera2008-04-28 23:59:36 +020061 $(use_enable python python)"
62
63 filter-ldflags -Wl,--as-needed
64}
65
66src_unpack() {
67 subversion_fetch || die "svn fetch failed"
68
69 cd "${S}"
70
361a2415
LVM
Leonardo Valeri Manera2008-04-28 23:59:36 +020071 gnome2_omf_fix || die "Gnome2 OMF Fix failed"
72
ee309134
LVM
Leonardo Valeri Manera2008-05-09 20:20:48 +020073 rm -rf autom4te.cache
74
fa466a20 Leonardo Valeri Manera2008-05-09 19:09:51 +020075 elibtoolize ${ELTCONF} || die "elibtoolize failed"
ca876cbc
LVM
Leonardo Valeri Manera2008-05-09 20:46:20 +020076
77 run_config "glib-gettextize --force --copy" || \
78 die "glib-gettextize failed"
ca876cbc
LVM
Leonardo Valeri Manera2008-05-09 20:46:20 +020079 run_config "intltoolize --force --copy --automake" || \
80 die "intltoolize failed"
81 run_config "gnome-doc-common --copy" || \
82 die "gnome-doc-common failed"
83 run_config "gnome-doc-prepare --force --copy" || \
84 die "gnome-doc-prepare failed"
17cd5ec0
LVM
Leonardo Valeri Manera2008-05-09 20:25:25 +020085 eaclocal || die "aclocal failed"
86 eautoconf || die "autoconf failed"
87 eautoheader || die "autoheader failed"
3e72ef5f Leonardo Valeri Manera2008-05-09 20:53:21 +020088 eautomake --force || die "automake failed"
361a2415 Leonardo Valeri Manera2008-04-28 23:59:36 +020089}