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
1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # $Header:
4
5 EAPI="1"
6
7 inherit gnome2 flag-o-matic subversion autotools
8
9 DESCRIPTION="A full featured, dual-pane file manager for Gnome2"
10 HOMEPAGE="http://www.nongnu.org/gcmd/"
11
12 ESVN_REPO_URI="svn://svn.gnome.org/svn/gnome-commander/branches/gcmd-1-3"
13 SRC_URI=""
14
15 KEYWORDS=""
16
17 LICENSE="GPL-2"
18
19 IUSE="doc chm exif gsf taglib python"
20 SLOT="0"
21
22 USE_DESC="chm: add support for Microsoft Compiled HTML Help files
23                   exif: add support for Exif and IPTC
24                   gsf: add support for OLE, OLE2 and ODF
25                   taglib: add support for ID3, Vorbis, FLAC and APE
26                   python: add support for python plugins"
27
28 RDEPEND=">=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
33                  virtual/fam
34                  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       )"
39
40 DEPEND="${RDEPEND}
41                 dev-util/intltool
42                 dev-util/pkgconfig"
43
44 DOCS="AUTHORS BUGS ChangeLog NEWS README TODO"
45
46 run_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
55 pkg_setup() {
56         G2CONF=" ${G2CONF}
57                          $(use_with   chm    chmlib)
58                          $(use_with   exif   exiv2)
59                          $(use_with   gsf    libgsf)
60                          $(use_with   taglib taglib)
61                          $(use_enable python python)"
62
63         filter-ldflags -Wl,--as-needed
64 }
65
66 src_unpack() {
67         subversion_fetch || die "svn fetch failed"
68
69         cd "${S}"
70
71         gnome2_omf_fix || die "Gnome2 OMF Fix failed"
72
73         rm -rf autom4te.cache
74
75         elibtoolize ${ELTCONF} || die "elibtoolize failed"
76
77         run_config "glib-gettextize --force --copy" || \
78                 die "glib-gettextize failed"
79         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"
85         eaclocal || die "aclocal failed"
86         eautoconf || die "autoconf failed"
87         eautoheader || die "autoheader failed"
88         eautomake --force || die "automake failed"
89 }