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

Diff of /eclass/gnome2.eclass

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

Revision 1.33 Revision 1.34
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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.33 2003/05/04 18:58:55 liquidx Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.34 2003/06/12 00:41:47 liquidx Exp $
4# 4#
5# Authors: 5# Authors:
6# Bruce A. Locke <blocke@shivan.org> 6# Bruce A. Locke <blocke@shivan.org>
7# Spidler <spidler@gentoo.org> 7# Spidler <spidler@gentoo.org>
8 8
19ELTCONF="" # extra options passed to elibtoolize 19ELTCONF="" # extra options passed to elibtoolize
20SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package 20SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package
21USE_DESTDIR="" # use make DESTDIR=${D} install rather than einstall 21USE_DESTDIR="" # use make DESTDIR=${D} install rather than einstall
22 22
23[ -n "$DEBUG" -o -n "`use debug`" ] && G2CONF="${G2CONF} --enable-debug=yes" 23[ -n "$DEBUG" -o -n "`use debug`" ] && G2CONF="${G2CONF} --enable-debug=yes"
24
25newdepend ">=sys-apps/sed-4"
24 26
25gnome2_src_configure() { 27gnome2_src_configure() {
26 elibtoolize ${ELTCONF} 28 elibtoolize ${ELTCONF}
27 # doc keyword for gtk-doc 29 # doc keyword for gtk-doc
28 use doc \ 30 use doc \
98 100
99 omf_makefiles="$@" 101 omf_makefiles="$@"
100 102
101 [ -f ${S}/omf-install/Makefile.in ] \ 103 [ -f ${S}/omf-install/Makefile.in ] \
102 && omf_makefiles="${omf_makefiles} ${S}/omf-install/Makefile.in" 104 && omf_makefiles="${omf_makefiles} ${S}/omf-install/Makefile.in"
105
106 # FIXME: does this really work? because omf.make only gets included
107 # when autoconf/automake is run. You should directly patch
108 # the Makefile.in's
109
103 [ -f ${S}/omf.make ] \ 110 [ -f ${S}/omf.make ] \
104 && omf_makefiles="${omf_makefiles} ${S}/omf.make" 111 && omf_makefiles="${omf_makefiles} ${S}/omf.make"
105 112
106 for omf in ${omf_makefiles}; do 113 for omf in ${omf_makefiles}; do
107 omfbase=$(basename ${omf}) 114 omfbase=$(basename ${omf})
108 einfo "Fixing OMF Makefile: ${omfbase}" 115 einfo "Fixing OMF Makefile: ${omf#${S}/}"
109 sed -i -e 's:\(-scrollkeeper-update -p $(localstatedir)/scrollkeeper\)\([ \t\\]*\)$:\1 -o $(DESTDIR)$(omf_dest_dir)\2:' ${omf} 116 sed -i -e 's:-scrollkeeper-update.*::' ${omf}
110 sed -i -e 's:\(-scrollkeeper-update -p $(scrollkeeper_localstate_dir)\)\([ \t\\]*\)$:\1 -o $(DESTDIR)$(omf_dest_dir)\2:' ${omf}
111 done 117 done
112} 118}
113 119
114gnome2_scrollkeeper_update() { 120gnome2_scrollkeeper_update() {
115 if [ -x ${ROOT}/usr/bin/scrollkeeper-update ] && [ "${SCROLLKEEPER_UPDATE}" = "1" ] 121 if [ -x ${ROOT}/usr/bin/scrollkeeper-update ] && [ "${SCROLLKEEPER_UPDATE}" = "1" ]

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.20