Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 144033 Details for
Bug 209765
New ebuilds: media-libs/silgraphite and x11-plugins/pangographite
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
pango-module.eclass
pango-module.eclass (text/plain), 3.43 KB, created by
David Leverton
on 2008-02-20 00:04:09 UTC
(
hide
)
Description:
pango-module.eclass
Filename:
MIME Type:
Creator:
David Leverton
Created:
2008-02-20 00:04:09 UTC
Size:
3.43 KB
patch
obsolete
># Copyright 1999-2008 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># @ECLASS: pango-module.eclass ># @MAINTAINER: ># gnome@gentoo.org ># @BLURB: common functions for ebuilds that install Pango modules ># @DESCRIPTION: ># This eclass contains functions to help install Pango modules and ># manage the Pango modules path in conjunction with eselect-pango. > >inherit multilib > >DEPEND=">=dev-util/pkgconfig-0.18" >RDEPEND="app-admin/eselect-pango" >if [[ ${CATEGORY}/${PN} != x11-libs/pango && ${CATEGORY}/${PN} != app-emulation/emul-linux-x86-gtklibs ]]; then > # This is here because it is used by the eclass itself, for its > # .pc file. It's not in RDEPEND because ebuilds should specify > # that explicitly. > DEPEND="${DEPEND} x11-libs/pango" >fi > ># @FUNCTION: pango-module-standard-path ># @RETURN: /usr/$(get_libdir)/pango/$(pango-module-version)/modules ># @DESCRIPTION: ># Modules are typically installed under ># /usr/$(get_libdir)/pango/$(pango-module-version)/modules. This ># should be handled by the package's build system, but ebuilds need to ># know the directory to pass it or a subdirectory to ># pango-module-add-modules-path. >pango-module-standard-path() { > echo /usr/$(get_libdir)/pango/$(pango-module-version)/modules >} > ># @FUNCTION: pango-module-version ># @RETURN: Returns the Pango module ABI version. >pango-module-version() { > local ver > if [[ ${CATEGORY}/${PN} == x11-libs/pango ]]; then > ver="$(PKG_CONFIG_PATH="${S}" PKG_CONFIG_DISABLE_UNINSTALLED=1 pkg-config --variable=pango_module_version pango)" > else > ver="$(pkg-config --variable=pango_module_version pango)" > fi > > # Might not work because this gets called in a subshell. :-( > [[ -n ${ver} ]] || die "Could not determine pango-module-version" > echo "${ver}" >} > ># @FUNCTION: pango-module-add-modules-path ># @USAGE: <name> <path> ># @DESCRIPTION: ># Register <path> as containing Pango modules. <name> should be of ># the form <digit><digit><identifier>, and determines the order in ># which the directories will be added to the search path (modules in ># later directories override earlier ones). This function should be ># called in src_install. >pango-module-add-modules-path() { > local name=$1 path="${2}" > > local dir=/etc/env.d/pango > pango-module-multilib-enabled && dir=${dir}/${CHOST} > > [[ -e "${T}"/${name} ]] && die "${T}/${name} already exists" > cat <<-EOF >"${T}"/${name} > ModulesPath=${2} > EOF > > local save_INSDESTTREE=${INSDESTTREE} > insinto ${dir} > doins "${T}"/${name} || die "doins failed" > INSDESTTREE=${save_INSDESTTREE} > rm -f "${T}"/${name} >} > ># @FUNCTION: pango-module_pkg_postinst ># @DESCRIPTION: ># Runs eselect pango update to update the /etc/pango/pango.modules file. >pango-module_pkg_postinst() { > if [[ ${ROOT} == / ]]; then > eselect pango update > else > ewarn 'Not updating pango.modules because ${ROOT} != /' > fi >} > ># @FUNCTION: pango-module_pkg_postrm ># @DESCRIPTION: ># Runs eselect pango update to update the /etc/pango/pango.modules file. >pango-module_pkg_postrm() { > if [[ ${ROOT} == / ]]; then > eselect pango update > else > ewarn 'Not updating pango.modules because ${ROOT} != /' > fi >} > ># @FUNCTION: pango-module-multilib-enabled ># @RETURN: True if an extra ${CHOST} directory under /etc/pango should be used. ># @DESCRIPTION: ># Most ebuilds won't need to use this, it's mainly for internal use ># and for Pango itself. >pango-module-multilib-enabled() { > has_multilib_profile || ( use x86 && [[ $(get_libdir) == lib32 ]] ) >} > >EXPORT_FUNCTIONS pkg_postinst pkg_postrm
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 209765
:
143264
|
143265
|
143266
|
143268
|
143269
|
143271
|
143636
|
143637
|
143638
|
143818
|
143820
|
144031
|
144033
|
144035
|
144037
|
144038
|
144043
|
144045
|
144365