View | Details | Raw Unified
Collapse All | Expand All

(-) gnome2.eclass (-15 / +15 lines)
 Lines 110-122    Link Here 
		einfo "Installing GNOME 2 GConf schemas"
		einfo "Installing GNOME 2 GConf schemas"
		local contents="${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS"
		for F in ${GNOME2_SCHEMAS}; do
			[[ -e "/${F}" ]] || continue
		for F in $(grep "^obj /etc/gconf/schemas/.\+\.schemas\b" ${contents} | gawk '{print $2}' ); do
			${GCONFTOOL_BIN} --makefile-install-rule "/${F}" 1>/dev/null
			if [[ -e "${F}" ]]; then
				# echo "DEBUG::gconf install  ${F}"
				${GCONFTOOL_BIN} --makefile-install-rule ${F} 1>/dev/null
			fi
		done
		done
		# have gconf reload the new schemas
		# have gconf reload the new schemas
 Lines 134-144    Link Here 
		einfo "Uninstalling GNOME 2 GConf schemas"
		einfo "Uninstalling GNOME 2 GConf schemas"
		local contents="${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS"
		for F in ${GNOME2_SCHEMAS}; do
			[[ -e "/${F}" ]] || continue
		for F in $(grep "obj /etc/gconf/schemas" ${contents} | sed 's:obj \([^ ]*\) .*:\1:' ); do
			${GCONFTOOL_BIN} --makefile-uninstall-rule "/${F}" 1>/dev/null
			# echo "DEBUG::gconf install  ${F}"
			${GCONFTOOL_BIN} --makefile-uninstall-rule ${F} 1>/dev/null
		done
		done
	fi
	fi
}
}
 Lines 157-164    Link Here 
		return
		return
	fi
	fi
	if ! grep -q "obj /usr/share/icons" ${ROOT}/var/db/pkg/*/${PF}/CONTENTS
	if [[ -n "${GNOME2_HAS_ICONS}" ]] ; then
	then
		debug-print "No items to update"
		debug-print "No items to update"
		# We are done successfully
		# We are done successfully
 Lines 274-279    Link Here 
	fi
	fi
}
}
gnome2_pkg_preinst() {
	pushd "${D}" 1>/dev/null
	export GNOME2_SCHEMAS=etc/gconf/schemas/*schemas
	[[ -d "${D}"/usr/share/icons/ ]] && export GNOME2_HAS_ICONS="yes"
	popd 1>/dev/null
}
gnome2_pkg_postinst() {
gnome2_pkg_postinst() {
	gnome2_gconf_install
	gnome2_gconf_install
	gnome2_scrollkeeper_update
	gnome2_scrollkeeper_update
 Lines 293-296    Link Here 
	gnome2_icon_cache_update
	gnome2_icon_cache_update
}
}
EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm
EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm