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

Diff of /eclass/xfconf.eclass

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

Revision 1.14 Revision 1.15
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/xfconf.eclass,v 1.14 2010/03/26 12:17:16 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.15 2010/03/30 12:10:46 ssuominen Exp $
4 4
5# @ECLASS: xfconf.eclass 5# @ECLASS: xfconf.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# XFCE maintainers <xfce@gentoo.org> 7# XFCE maintainers <xfce@gentoo.org>
8# @BLURB: Default XFCE ebuild layout 8# @BLURB: Default XFCE ebuild layout
84 84
85# @FUNCTION: xfconf_src_unpack 85# @FUNCTION: xfconf_src_unpack
86# @DESCRIPTION: 86# @DESCRIPTION:
87# Run base_src_util autopatch and eautoreconf or elibtoolize 87# Run base_src_util autopatch and eautoreconf or elibtoolize
88xfconf_src_unpack() { 88xfconf_src_unpack() {
89 debug-print-function ${FUNCNAME} "$@"
89 unpack ${A} 90 unpack ${A}
90 cd "${S}" 91 cd "${S}"
91 has src_prepare ${XFCONF_EXPF} || xfconf_src_prepare 92 has src_prepare ${XFCONF_EXPF} || xfconf_src_prepare
92} 93}
93 94
94# @FUNCTION: xfconf_src_prepare 95# @FUNCTION: xfconf_src_prepare
95# @DESCRIPTION: 96# @DESCRIPTION:
96# Run base_src_util autopatch and eautoreconf or elibtoolize 97# Run base_src_util autopatch and eautoreconf or elibtoolize
97xfconf_src_prepare() { 98xfconf_src_prepare() {
99 debug-print-function ${FUNCNAME} "$@"
98 base_src_prepare 100 base_src_prepare
99 101
100 if [[ "${EINTLTOOLIZE}" == "yes" ]]; then 102 if [[ "${EINTLTOOLIZE}" == "yes" ]]; then
101 intltoolize --force --copy --automake || die "intltoolize failed" 103 intltoolize --force --copy --automake || die "intltoolize failed"
102 fi 104 fi
111 113
112# @FUNCTION: xfconf_src_configure 114# @FUNCTION: xfconf_src_configure
113# @DESCRIPTION: 115# @DESCRIPTION:
114# Run econf with opts in XFCONF variable 116# Run econf with opts in XFCONF variable
115xfconf_src_configure() { 117xfconf_src_configure() {
118 debug-print-function ${FUNCNAME} "$@"
116 econf ${XFCONF} 119 econf ${XFCONF}
117} 120}
118 121
119# @FUNCTION: xfconf_src_compile 122# @FUNCTION: xfconf_src_compile
120# @DESCRIPTION: 123# @DESCRIPTION:
121# Run econf with opts in XFCONF variable 124# Run econf with opts in XFCONF variable
122xfconf_src_compile() { 125xfconf_src_compile() {
126 debug-print-function ${FUNCNAME} "$@"
123 has src_configure ${XFCONF_EXPF} || xfconf_src_configure 127 has src_configure ${XFCONF_EXPF} || xfconf_src_configure
124 emake || die "emake failed" 128 emake || die "emake failed"
125} 129}
126 130
127# @FUNCTION: xfconf_src_install 131# @FUNCTION: xfconf_src_install
128# @DESCRIPTION: 132# @DESCRIPTION:
129# Run emake install and install documentation in DOCS variable 133# Run emake install and install documentation in DOCS variable
130xfconf_src_install() { 134xfconf_src_install() {
135 debug-print-function ${FUNCNAME} "$@"
131 emake DESTDIR="${D}" install || die "emake install failed" 136 emake DESTDIR="${D}" install || die "emake install failed"
132 137
133 if [[ -n ${DOCS} ]]; then 138 if [[ -n ${DOCS} ]]; then
134 dodoc ${DOCS} || die "dodoc failed" 139 dodoc ${DOCS} || die "dodoc failed"
135 fi 140 fi
137 142
138# @FUNCTION: xfconf_pkg_preinst 143# @FUNCTION: xfconf_pkg_preinst
139# @DESCRIPTION: 144# @DESCRIPTION:
140# Run gnome2_icon_savelist 145# Run gnome2_icon_savelist
141xfconf_pkg_preinst() { 146xfconf_pkg_preinst() {
147 debug-print-function ${FUNCNAME} "$@"
142 gnome2_icon_savelist 148 gnome2_icon_savelist
143} 149}
144 150
145# @FUNCTION: xfconf_pkg_postinst 151# @FUNCTION: xfconf_pkg_postinst
146# @DESCRIPTION: 152# @DESCRIPTION:
147# Run fdo-mime_{desktop,mime}_database_update and gnome2_icon_cache_update 153# Run fdo-mime_{desktop,mime}_database_update and gnome2_icon_cache_update
148xfconf_pkg_postinst() { 154xfconf_pkg_postinst() {
155 debug-print-function ${FUNCNAME} "$@"
149 fdo-mime_desktop_database_update 156 fdo-mime_desktop_database_update
150 fdo-mime_mime_database_update 157 fdo-mime_mime_database_update
151 gnome2_icon_cache_update 158 gnome2_icon_cache_update
152} 159}
153 160
154# @FUNCTION: xfconf_pkg_postrm 161# @FUNCTION: xfconf_pkg_postrm
155# @DESCRIPTION: 162# @DESCRIPTION:
156# Run fdo-mime_{desktop,mime}_database_update and gnome2_icon_cache_update 163# Run fdo-mime_{desktop,mime}_database_update and gnome2_icon_cache_update
157xfconf_pkg_postrm() { 164xfconf_pkg_postrm() {
165 debug-print-function ${FUNCNAME} "$@"
158 fdo-mime_desktop_database_update 166 fdo-mime_desktop_database_update
159 fdo-mime_mime_database_update 167 fdo-mime_mime_database_update
160 gnome2_icon_cache_update 168 gnome2_icon_cache_update
161} 169}

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20