Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 452172 Details for
Bug 596286
xfconf-2.eclass to convert xfce ebuilds to EAPI=6
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
xfconf-dev.eclass
xfconf-dev.eclass (text/plain), 3.90 KB, created by
Derk W te Bokkel
on 2016-11-02 13:07:35 UTC
(
hide
)
Description:
xfconf-dev.eclass
Filename:
MIME Type:
Creator:
Derk W te Bokkel
Created:
2016-11-02 13:07:35 UTC
Size:
3.90 KB
patch
obsolete
># Copyright 1999-2016 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Id$ > ># @ECLASS: xfconf-dev.eclass ># @MAINTAINER: ># XFCE maintainers <xfce@gentoo.org> ># @BLURB: Default XFCE-dev ebuild layout ># @DESCRIPTION: ># EAPI=6 XFCE-dev ebuild layout > ># stripped and specialized eclass for xfce-dev i.e. -9999 or git based sources > ># set-up the default >AUTOTOOLS_AUTO_DEPEND=yes > ># @ECLASS-VARIABLE: XFCONF ># @DESCRIPTION: ># This should be an array defining arguments for econf ># only used by xfconf-dev_src_configure() > ># eutils should be inherited already >inherit git-r3 autotools fdo-mime gnome2-utils libtool > ># required depends for -9999 or git based sources >RDEPEND="" >DEPEND="dev-util/gtk-doc >=dev-util/xfce4-dev-tools-4.10" > >case ${EAPI:-0} in > 6) ;; > *) die "Unknown EAPI." ;; >esac > >EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_install pkg_preinst pkg_postinst pkg_postrm > > ># leave alone it works > ># @FUNCTION: xfconf-dev_use_debug ># @DESCRIPTION: ># If IUSE has debug, return --enable-debug=minimum. ># If USE debug is enabled, return --enable-debug which is the same as --enable-debug=yes. ># If USE debug is enabled and the XFCONF_FULL_DEBUG variable is set, return --enable-debug=full. >xfconf-dev_use_debug() { > if has debug ${IUSE}; then > if use debug; then > if [[ -n $XFCONF_FULL_DEBUG ]]; then > echo "--enable-debug=full" > else > echo "--enable-debug" > fi > else > echo "--enable-debug=minimum" > fi > else > ewarn "${FUNCNAME} called without debug in IUSE" > fi >} > > ># @FUNCTION: xfconf-dev_src_unpack ># @DESCRIPTION: ># Run git-r3_src_unpack >xfconf-dev_src_unpack() { > git-r3_src_unpack >} > ># @FUNCTION: xfconf-dev_src_prepare ># @DESCRIPTION: ># Process PATCHES with default followed by run of ># autogen.sh which works .. >xfconf-dev_src_prepare() { > debug-print-function ${FUNCNAME} "$@" > default > ## sorry eautoreconf fails to work by itself > ## xfce4-dev-tools routines are called by autogen.sh script to prepare source code for building > ./autogen.sh ># comment out for testing ... seems to be un-needed .. leave just incase (used by src tarball ebuilds) ># if [[ -n $EAUTORECONF ]]; then ># AT_M4DIR=${EPREFIX}/usr/share/xfce4/dev-tools/m4macros eautoreconf ># else > elibtoolize ># fi >} > ># keep XFCONF array in ebuilds. ># Could convert to src_configure() in ebuilds later? ># but it might make them very messy this seems cleaner > ># @FUNCTION: xfconf-dev_src_configure ># @DESCRIPTION: ># Run econf with opts from the XFCONF array >xfconf-dev_src_configure() { > debug-print-function ${FUNCNAME} "$@" ># have to add here or in all xfce-dev ebuilds else they fail to build > XFCONF+=( --enable-maintainer-mode ) > econf "${XFCONF[@]}" >} > ># @FUNCTION: xfconf-dev_src_install ># @DESCRIPTION: ># Run emake install to DESTDIR, einstalldocs to process DOCS and ># prune_libtool_files --all to always remove libtool files (.la) >xfconf-dev_src_install() { > debug-print-function ${FUNCNAME} "$@" > > emake DESTDIR="${D}" "$@" install ># define DOCS .. git sources missing ChangeLog remove from ebuilds > einstalldocs > ># why reinvent the wheel use existing function > prune_libtool_files --all >} > >## these last three could be shared with a "egit-purged" xfconf if desired to avoid code duplication > ># @FUNCTION: xfconf-dev_pkg_preinst ># @DESCRIPTION: ># Run gnome2_icon_savelist >xfconf-dev_pkg_preinst() { > debug-print-function ${FUNCNAME} "$@" > gnome2_icon_savelist >} > ># @FUNCTION: xfconf-dev_pkg_postinst ># @DESCRIPTION: ># Run fdo-mime_{desktop,mime}_database_update and gnome2_icon_cache_update >xfconf-dev_pkg_postinst() { > debug-print-function ${FUNCNAME} "$@" > fdo-mime_desktop_database_update > fdo-mime_mime_database_update > gnome2_icon_cache_update >} > ># @FUNCTION: xfconf-dev_pkg_postrm ># @DESCRIPTION: ># Run fdo-mime_{desktop,mime}_database_update and gnome2_icon_cache_update >xfconf-dev_pkg_postrm() { > debug-print-function ${FUNCNAME} "$@" > fdo-mime_desktop_database_update > fdo-mime_mime_database_update > gnome2_icon_cache_update >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 596286
:
449276
| 452172 |
452174
|
454146
|
454148