/[gentoo-x86]/app-editors/gedit/gedit-3.14.3.ebuild
Gentoo

Contents of /app-editors/gedit/gedit-3.14.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Mar 15 13:14:49 2015 UTC (5 years, 3 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable, bug 534012

(Portage version: 2.2.17/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/gedit/gedit-3.14.3.ebuild,v 1.2 2015/03/14 18:23:52 pacho Exp $
4
5 EAPI="5"
6 GCONF_DEBUG="no"
7 GNOME2_LA_PUNT="yes" # plugins are dlopened
8 PYTHON_COMPAT=( python3_{3,4} )
9 VALA_MIN_API_VERSION="0.26"
10 VALA_USE_DEPEND="vapigen"
11
12 inherit eutils gnome2 multilib python-r1 vala virtualx
13
14 DESCRIPTION="A text editor for the GNOME desktop"
15 HOMEPAGE="https://wiki.gnome.org/Apps/Gedit"
16
17 LICENSE="GPL-2+ CC-BY-SA-3.0"
18 SLOT="0"
19
20 IUSE="+introspection +python spell vala"
21 # python-single-r1 would request disabling PYTHON_TARGETS on libpeas
22 # we need to fix that
23 REQUIRED_USE="python? ( ^^ ( $(python_gen_useflags '*') ) )"
24
25 KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
26
27 # X libs are not needed for OSX (aqua)
28 COMMON_DEPEND="
29 >=dev-libs/libxml2-2.5.0:2
30 >=dev-libs/glib-2.40:2[dbus]
31 >=x11-libs/gtk+-3.14:3[introspection?]
32 >=x11-libs/gtksourceview-3.14.3:3.0[introspection?]
33 >=dev-libs/libpeas-1.7.0[gtk]
34
35 gnome-base/gsettings-desktop-schemas
36 gnome-base/gvfs
37
38 x11-libs/libX11
39
40 net-libs/libsoup:2.4
41
42 introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
43 python? (
44 ${PYTHON_DEPS}
45 >=dev-libs/gobject-introspection-0.9.3
46 >=x11-libs/gtk+-3:3[introspection]
47 dev-python/pycairo[${PYTHON_USEDEP}]
48 >=dev-python/pygobject-3:3[cairo,${PYTHON_USEDEP}]
49 dev-libs/libpeas[${PYTHON_USEDEP}] )
50 spell? (
51 >=app-text/enchant-1.2:=
52 >=app-text/iso-codes-0.35 )
53 "
54 RDEPEND="${COMMON_DEPEND}
55 x11-themes/gnome-icon-theme-symbolic
56 "
57 DEPEND="${COMMON_DEPEND}
58 ${vala_depend}
59 app-text/docbook-xml-dtd:4.1.2
60 >=app-text/scrollkeeper-0.3.11
61 dev-libs/libxml2:2
62 >=dev-util/gtk-doc-am-1
63 >=dev-util/intltool-0.50.1
64 >=sys-devel/gettext-0.18
65 virtual/pkgconfig
66 "
67 # yelp-tools, gnome-common needed to eautoreconf
68
69 pkg_setup() {
70 use python && [[ ${MERGE_TYPE} != binary ]] && python_setup
71 }
72
73 src_prepare() {
74 vala_src_prepare
75 gnome2_src_prepare
76 }
77
78 src_configure() {
79 DOCS="AUTHORS BUGS ChangeLog MAINTAINERS NEWS README"
80
81 gnome2_src_configure \
82 --disable-deprecations \
83 --enable-updater \
84 --enable-gvfs-metadata \
85 $(use_enable introspection) \
86 $(use_enable spell) \
87 $(use_enable python) \
88 $(use_enable vala) \
89 ITSTOOL=$(type -P true)
90 }
91
92 src_test() {
93 # FIXME: this should be handled at eclass level
94 "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
95
96 unset DBUS_SESSION_BUS_ADDRESS
97 GSETTINGS_SCHEMA_DIR="${S}/data" Xemake check
98 }
99
100 src_install() {
101 local args=()
102 # manually set pyoverridesdir due to bug #524018 and AM_PATH_PYTHON limitations
103 use python && args+=( pyoverridesdir="$(python_get_sitedir)/gi/overrides" )
104
105 gnome2_src_install "${args[@]}"
106 }

  ViewVC Help
Powered by ViewVC 1.1.20