/[gentoo-x86]/gnome-extra/zeitgeist-datasources/zeitgeist-datasources-0.8.0.1.ebuild
Gentoo

Contents of /gnome-extra/zeitgeist-datasources/zeitgeist-datasources-0.8.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Tue Apr 30 16:41:26 2013 UTC (3 weeks, 4 days ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +2 -2 lines
gnome-extra/zeitgeist-datasources: vala_depend is a function not a variable; Version Bump

(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/zeitgeist-datasources/zeitgeist-datasources-0.8.0.1.ebuild,v 1.13 2013/04/18 07:53:39 jlec Exp $
4
5 EAPI=4
6
7 AUTOTOOLS_AUTORECONF=true
8 VALA_MIN_API_VERSION=0.14
9
10 inherit autotools-utils eutils mono multilib python versionator vala
11
12 DIR_PV=$(get_version_component_range 1-2)
13 DIR_PV2=$(get_version_component_range 1-3)
14
15 DESCRIPTION="Plugins whose work is to push activities as events into Zeitgeist daemon"
16 HOMEPAGE="https://launchpad.net/zeitgeist-datasources/ http://zeitgeist-project.com/"
17 SRC_URI="http://launchpad.net/zeitgeist-datasources/${DIR_PV}/${DIR_PV2}/+download/${P}.tar.gz"
18
19 SLOT="0"
20 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
21 LICENSE="GPL-3"
22 #PLUGINS_IUSE="bzr chromium eog geany gedit vim emacs tomboy telepathy xchat rhythmbox firefox totem"
23 PLUGINS_IUSE="bzr chromium eog geany gedit vim emacs tomboy telepathy xchat rhythmbox totem"
24 IUSE="${PLUGINS_IUSE} static-libs"
25
26 RDEPEND="
27 dev-libs/libzeitgeist
28 x11-libs/gtk+:2
29 chromium? ( www-client/chromium )
30 eog? ( media-gfx/eog[python] )
31 geany? ( dev-util/geany )
32 gedit? ( app-editors/gedit[zeitgeist] )
33 vim? ( app-editors/vim[python] )
34 emacs? ( virtual/emacs )
35 tomboy? (
36 app-misc/tomboy
37 dev-dotnet/gtk-sharp
38 dev-dotnet/mono-addins
39 dev-dotnet/zeitgeist-sharp
40 dev-python/dbus-python )
41 telepathy? (
42 dev-python/telepathy-python
43 dev-python/dbus-python
44 dev-python/pygobject )
45 xchat? ( net-irc/xchat-gnome )
46 rhythmbox? ( media-sound/rhythmbox[zeitgeist] )
47 totem? ( media-video/totem[zeitgeist] )"
48 # firefox? (
49 # || ( >=www-client/firefox-4.0 >=www-client/firefox-bin-4.0 )
50 # net-libs/xulrunner )
51 DEPEND="${RDEPEND}
52 $(vala_depend)"
53 PDEPEND="gnome-extra/zeitgeist"
54
55 PLUGINS="bzr chrome eog geany vim emacs tomboy telepathy xchat firefox-40-libzg"
56
57 src_prepare() {
58 rm bzr/bzr-icon-64.png || die
59 sed \
60 -e '/bzr-icon-64.png/d' \
61 -i bzr/Makefile.am || die
62 sed \
63 -e '/^allowed_plugin/s:^:#:g' \
64 -i configure.ac || die
65
66 SEARCH='$(datadir)/opt/google/chrome/resources'
67 REPLACE="/usr/$(get_libdir)/chromium-browser/resources"
68 sed \
69 -e "s:${SEARCH}:${REPLACE}:" \
70 -i chrome/Makefile.* || die
71 sed \
72 -e 's:vim72:vimfiles:' \
73 -i vim/Makefile.* || die
74 sed \
75 -e "s:/xchat/:/xchat-gnome/:g" \
76 -i xchat/Makefile.* || die
77 vala_src_prepare
78 autotools-utils_src_prepare
79 }
80
81 src_configure() {
82 local i myplugins
83
84 for i in ${PLUGINS}; do
85 case ${i} in
86 chrome )
87 use chromium && myplugins+=( ${i} )
88 ;;
89 firefox-40-libzg )
90 use firefox && myplugins+=( ${i} )
91 ;;
92 totem-libzg )
93 use totem && myplugins+=( ${i} )
94 ;;
95 * )
96 use ${i} && myplugins+=( ${i} )
97 ;;
98 esac
99 done
100
101 local myeconfargs=(
102 allowed_plugins="${myplugins[@]}"
103 )
104 autotools-utils_src_configure
105 }
106
107 pkg_postinst() {
108 if use chromium; then
109 elog "to use the chromium plugin you must open chromium"
110 elog "then click the wrench -> tools -> extensions"
111 elog "expand the \"Developer mode\" section"
112 elog "and click the \"Load unpacked extension...\" button"
113 elog "then browse to..."
114 elog "\t/usr/$(get_libdir)/chromium-browser/resources/zeitgeist_plugin/"
115 elog ""
116 elog "More info available here"
117 elog "http://code.google.com/chrome/extensions/packaging.html"
118 fi
119 }

  ViewVC Help
Powered by ViewVC 1.1.17