blob: 2c7262c07fcb45cbe6970f42168200cd0362af02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit gnome2
DESCRIPTION="Desktop note-taking application"
HOMEPAGE="http://live.gnome.org/Gnote"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="applet debug dbus +gnome-shell"
SRC_URI="${SRC_URI}
gnome-shell? (
https://github.com/downloads/sardemff7/GS-Gnote/gs-gnote-0.2.tar.xz
)
"
RDEPEND=">=x11-libs/gtk+-2.20:2
>=dev-cpp/glibmm-2:2
>=dev-cpp/gtkmm-2.12:2.4
>=dev-libs/libxml2-2:2
dev-libs/libxslt
>=gnome-base/gconf-2:2
>=dev-libs/libpcre-7.8:3[cxx]
>=app-text/gtkspell-2.0.9
>=dev-libs/boost-1.34
sys-libs/e2fsprogs-libs
applet? (
>=gnome-base/gnome-panel-2
>=dev-cpp/libpanelappletmm-2.26:2.6 )
gnome-shell? (
>=gnome-base/gnome-shell-2.91.6
app-misc/gnote[dbus]
)
"
DEPEND="${DEPEND}
dev-util/pkgconfig
>=dev-util/intltool-0.35.0
app-text/gnome-doc-utils
app-text/docbook-xml-dtd:4.1.2
dbus? ( >=dev-libs/dbus-c++-0.5.0[glib] )
"
pkg_setup() {
DOCS="AUTHORS ChangeLog NEWS README TODO"
G2CONF="${G2CONF}
--disable-static
$(use_enable applet)
$(use_enable debug)
$(use_enable dbus)"
}
src_prepare() {
gnome2_src_prepare
# Do not set idiotic defines in a released tarball, bug #311979
sed 's/-DG.*_DISABLE_DEPRECATED//g' -i libtomboy/Makefile.am \
libtomboy/Makefile.in || die "sed failed"
}
src_install() {
gnome2_src_install
if use gnome-shell; then
insinto /usr/share/gnome-shell/extensions/
doins -r "${WORKDIR}"/GS-Gnote@sardemff7.net
fi
find "${ED}" -name "*.la" -exec rm -f '{}' + || die "la file removal failed"
}
|