summaryrefslogtreecommitdiff
path: root/eclass/gnome2-live.eclass
blob: ae587ece37f70cfdd9dae3c0fa154e3cf9f29da5 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

#
# gnome2-live.eclass
#
# Exports additional functions used by live ebuilds written for GNOME packages
# Always to be imported *after* gnome2.eclass
#
# Author: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
#


inherit autotools gnome2 gnome2-utils libtool subversion

# DEPEND on dev-util/gtk-doc for gtkdocize
DEPEND="${DEPEND}
		dev-util/gtk-doc"

# Extra options passed to elibtoolize
ELTCONF=${ELTCONF:-}

# SVN URI for the project
ESVN_REPO_URI=${ESVN_REPO_URI:-"http://svn.gnome.org/svn/${PN}/trunk"}

# Unset SRC_URI auto-set by gnome2.eclass
SRC_URI=""

gnome2-live_src_unpack() {
	if test -n "${A}"; then
		unpack ${A}
	fi
	subversion_src_unpack
	[[ "${EAPI}" != 2 ]] && gnome2-live_src_prepare
}

gnome2-live_src_prepare() {
	for i in ${PATCHES}; do
		epatch "${FILESDIR}/${i}"
	done

	gtkdocize
	gnome-doc-common
	gnome-doc-prepare --automake
	intltoolize --force
	eautoreconf

	### Keep this in-sync with gnome2.eclass!
	# Prevent scrollkeeper access violations
	gnome2_omf_fix

	# Run libtoolize
	elibtoolize ${ELTCONF}
}

# So that it replaces gnome2_src_unpack in ebuilds that call it
gnome2_src_unpack() {
	gnome2-live_src_unpack
}

# Run manually for ebuilds that have a custom pkg_postinst
gnome2-live_pkg_postinst() {
	ewarn "This is a live ebuild, upstream trunks will mostly be UNstable"
	ewarn "Do NOT report bugs about this package to Gentoo"
	ewarn "Report upstream bugs (with patches if possible) instead."
}

EXPORT_FUNCTIONS src_unpack src_prepare pkg_postinst