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

Diff of /eclass/xfconf.eclass

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

Revision 1.11 Revision 1.16
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.11 2010/03/26 11:41:57 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.16 2010/06/13 16:10:21 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
61 *) die "Unknown EAPI." ;; 61 *) die "Unknown EAPI." ;;
62esac 62esac
63EXPORT_FUNCTIONS ${XFCONF_EXPF} 63EXPORT_FUNCTIONS ${XFCONF_EXPF}
64 64
65# @FUNCTION: xfconf_use_debug 65# @FUNCTION: xfconf_use_debug
66# @RETURN: 66# @DESCRIPTION:
67# Return --enable-debug, --enable-debug=full or --disable-debug based on 67# Return --enable-debug, null, --enable-debug=full or --disable-debug based on
68# I_KNOW_WHAT_I_AM_DOING variable 68# XFCONF_FULL_DEBUG variable and USE debug
69xfconf_use_debug() { 69xfconf_use_debug() {
70 if has debug ${IUSE}; then
70 if use debug; then 71 if use debug; then
71 if [[ -n $I_KNOW_WHAT_I_AM_DOING ]]; then 72 if [[ -n $XFCONF_FULL_DEBUG ]]; then
72 echo "--enable-debug=full" 73 echo "--enable-debug=full"
74 else
75 echo "--enable-debug"
76 fi
73 else 77 else
74 echo "--enable-debug" 78 if [[ -n $XFCONF_FULL_DEBUG ]]; then
75 fi
76 else
77 if [[ -n $I_KNOW_WHAT_I_AM_DOING ]]; then
78 echo "--disable-debug" 79 echo "--disable-debug"
80 fi
79 fi 81 fi
80 fi 82 fi
81} 83}
82 84
83# @FUNCTION: xfconf_src_unpack 85# @FUNCTION: xfconf_src_unpack
84# @DESCRIPTION: 86# @DESCRIPTION:
85# Run base_src_util autopatch and eautoreconf or elibtoolize 87# Run base_src_util autopatch and eautoreconf or elibtoolize
86xfconf_src_unpack() { 88xfconf_src_unpack() {
89 debug-print-function ${FUNCNAME} "$@"
87 unpack ${A} 90 unpack ${A}
88 cd "${S}" 91 cd "${S}"
89 has src_prepare ${XFCONF_EXPF} || xfconf_src_prepare 92 has src_prepare ${XFCONF_EXPF} || xfconf_src_prepare
90} 93}
91 94
92# @FUNCTION: xfconf_src_prepare 95# @FUNCTION: xfconf_src_prepare
93# @DESCRIPTION: 96# @DESCRIPTION:
94# Run base_src_util autopatch and eautoreconf or elibtoolize 97# Run base_src_util autopatch and eautoreconf or elibtoolize
95xfconf_src_prepare() { 98xfconf_src_prepare() {
99 debug-print-function ${FUNCNAME} "$@"
96 base_src_prepare 100 base_src_prepare
97 101
98 if [[ "${EINTLTOOLIZE}" == "yes" ]]; then 102 if [[ "${EINTLTOOLIZE}" == "yes" ]]; then
99 intltoolize --force --copy --automake || die "intltoolize failed" 103 intltoolize --force --copy --automake || die "intltoolize failed"
100 fi 104 fi
109 113
110# @FUNCTION: xfconf_src_configure 114# @FUNCTION: xfconf_src_configure
111# @DESCRIPTION: 115# @DESCRIPTION:
112# Run econf with opts in XFCONF variable 116# Run econf with opts in XFCONF variable
113xfconf_src_configure() { 117xfconf_src_configure() {
118 debug-print-function ${FUNCNAME} "$@"
114 econf ${XFCONF} 119 econf ${XFCONF}
115} 120}
116 121
117# @FUNCTION: xfconf_src_compile 122# @FUNCTION: xfconf_src_compile
118# @DESCRIPTION: 123# @DESCRIPTION:
119# Run econf with opts in XFCONF variable 124# Run econf with opts in XFCONF variable
120xfconf_src_compile() { 125xfconf_src_compile() {
126 debug-print-function ${FUNCNAME} "$@"
121 has src_configure ${XFCONF_EXPF} || xfconf_src_configure 127 has src_configure ${XFCONF_EXPF} || xfconf_src_configure
122 emake || die "emake failed" 128 emake || die "emake failed"
123} 129}
124 130
125# @FUNCTION: xfconf_src_install 131# @FUNCTION: xfconf_src_install
126# @DESCRIPTION: 132# @DESCRIPTION:
127# Run emake install and install documentation in DOCS variable 133# Run emake install and install documentation in DOCS variable
128xfconf_src_install() { 134xfconf_src_install() {
135 debug-print-function ${FUNCNAME} "$@"
129 emake DESTDIR="${D}" install || die "emake install failed" 136 emake DESTDIR="${D}" "$@" install || die "emake install failed"
130 137
131 if [[ -n ${DOCS} ]]; then 138 if [[ -n ${DOCS} ]]; then
132 dodoc ${DOCS} || die "dodoc failed" 139 dodoc ${DOCS} || die "dodoc failed"
133 fi 140 fi
134} 141}
135 142
136# @FUNCTION: xfconf_pkg_preinst 143# @FUNCTION: xfconf_pkg_preinst
137# @DESCRIPTION: 144# @DESCRIPTION:
138# Run gnome2_icon_savelist 145# Run gnome2_icon_savelist
139xfconf_pkg_preinst() { 146xfconf_pkg_preinst() {
147 debug-print-function ${FUNCNAME} "$@"
140 gnome2_icon_savelist 148 gnome2_icon_savelist
141} 149}
142 150
143# @FUNCTION: xfconf_pkg_postinst 151# @FUNCTION: xfconf_pkg_postinst
144# @DESCRIPTION: 152# @DESCRIPTION:
145# 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
146xfconf_pkg_postinst() { 154xfconf_pkg_postinst() {
155 debug-print-function ${FUNCNAME} "$@"
147 fdo-mime_desktop_database_update 156 fdo-mime_desktop_database_update
148 fdo-mime_mime_database_update 157 fdo-mime_mime_database_update
149 gnome2_icon_cache_update 158 gnome2_icon_cache_update
150} 159}
151 160
152# @FUNCTION: xfconf_pkg_postrm 161# @FUNCTION: xfconf_pkg_postrm
153# @DESCRIPTION: 162# @DESCRIPTION:
154# 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
155xfconf_pkg_postrm() { 164xfconf_pkg_postrm() {
165 debug-print-function ${FUNCNAME} "$@"
156 fdo-mime_desktop_database_update 166 fdo-mime_desktop_database_update
157 fdo-mime_mime_database_update 167 fdo-mime_mime_database_update
158 gnome2_icon_cache_update 168 gnome2_icon_cache_update
159} 169}

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20