/[gentoo-x86]/eclass/gnome2.eclass
Gentoo

Diff of /eclass/gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.85 Revision 1.86
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.85 2008/03/22 10:19:05 remi Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.86 2009/02/17 16:05:33 dang Exp $
4 4
5# 5#
6# gnome2.eclass 6# gnome2.eclass
7# 7#
8# Exports portage base functions used by ebuilds written for packages using the 8# Exports portage base functions used by ebuilds written for packages using the
12# 12#
13 13
14 14
15inherit fdo-mime libtool gnome.org gnome2-utils 15inherit fdo-mime libtool gnome.org gnome2-utils
16 16
17case "${EAPI:-0}" in
18 0|1)
19 EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm
20 ;;
21 *)
22 EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_preinst pkg_postinst pkg_postrm
23 ;;
24esac
17 25
18# Extra configure opts passed to econf 26# Extra configure opts passed to econf
19G2CONF=${G2CONF:-""} 27G2CONF=${G2CONF:-""}
20 28
21# Extra options passed to elibtoolize 29# Extra options passed to elibtoolize
36 44
37 45
38gnome2_src_unpack() { 46gnome2_src_unpack() {
39 unpack ${A} 47 unpack ${A}
40 cd "${S}" 48 cd "${S}"
49 has ${EAPI:-0} 0 1 && gnome2_src_prepare
50}
41 51
52gnome2_src_prepare() {
42 # Prevent scrollkeeper access violations 53 # Prevent scrollkeeper access violations
43 gnome2_omf_fix 54 gnome2_omf_fix
44 55
45 # Run libtoolize 56 # Run libtoolize
46 elibtoolize ${ELTCONF} 57 elibtoolize ${ELTCONF}
65 # GST_REGISTRY is to work around gst-inspect trying to read/write /root 76 # GST_REGISTRY is to work around gst-inspect trying to read/write /root
66 GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} || die "configure failed" 77 GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} || die "configure failed"
67} 78}
68 79
69gnome2_src_compile() { 80gnome2_src_compile() {
70 gnome2_src_configure "$@" 81 has ${EAPI:-0} 0 1 && gnome2_src_configure "$@"
71 emake || die "compile failure" 82 emake || die "compile failure"
72} 83}
73 84
74gnome2_src_install() { 85gnome2_src_install() {
75 # if this is not present, scrollkeeper-update may segfault and 86 # if this is not present, scrollkeeper-update may segfault and
135 gnome2_scrollkeeper_update 146 gnome2_scrollkeeper_update
136 fi 147 fi
137} 148}
138 149
139# pkg_prerm 150# pkg_prerm
140EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86

  ViewVC Help
Powered by ViewVC 1.1.20