You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
root 30bb0a5670
Sync with portage [Mon Dec 9 02:07:18 MSK 2013].
11 years ago
..
ELT-patches Sync with portage [Tue Jul 2 14:59:54 MSK 2013]. 12 years ago
tests Sync with portage [Wed Nov 6 17:43:56 MSK 2013]. 11 years ago
ChangeLog Sync with portage [Fri Dec 6 20:06:51 MSK 2013]. 11 years ago
alternatives.eclass Sync with portage [Sat Sep 21 23:33:30 MSK 2013]. 11 years ago
ant-tasks.eclass Sync with portage [Mon Oct 7 03:43:55 MSK 2013]. 11 years ago
apache-2.eclass Sync with portage [Sun Apr 28 22:43:11 MSK 2013]. 12 years ago
apache-module.eclass Sync with portage [Sat Jun 22 12:14:20 MSK 2013]. 12 years ago
aspell-dict.eclass
autotools-multilib.eclass Sync with portage [Mon Nov 25 11:10:20 MSK 2013]. 11 years ago
autotools-utils.eclass Sync with portage [Mon Nov 25 11:10:20 MSK 2013]. 11 years ago
autotools.eclass Sync with portage [Sun Dec 1 00:45:19 MSK 2013]. 11 years ago
base.eclass
bash-completion-r1.eclass Sync with portage [Wed Sep 11 12:56:33 MSK 2013]. 11 years ago
bash-completion.eclass Sync with portage [Sat Jul 6 13:56:09 MSK 2013]. 12 years ago
boost-utils.eclass
bsdmk.eclass Sync with portage [Sat Aug 10 00:00:04 MSK 2013]. 11 years ago
bzr.eclass Sync with portage [Fri Jul 12 14:34:14 MSK 2013]. 12 years ago
cannadic.eclass
cdrom.eclass
check-reqs.eclass
chromium.eclass Sync with portage [Thu Dec 5 14:13:54 MSK 2013]. 11 years ago
clutter.eclass
cmake-multilib.eclass Sync with portage [Thu Nov 21 13:57:12 MSK 2013]. 11 years ago
cmake-utils.eclass Sync with portage [Thu Jul 25 13:26:27 MSK 2013]. 11 years ago
common-lisp-common-2.eclass
common-lisp-common-3.eclass
common-lisp-common.eclass
common-lisp.eclass
confutils.eclass
cron.eclass Sync with portage [Thu Sep 5 18:05:12 MSK 2013]. 11 years ago
cuda.eclass Sync with portage [Mon Aug 12 11:34:35 MSK 2013]. 11 years ago
cvs.eclass Sync with portage [Mon Sep 30 10:36:57 MSK 2013]. 11 years ago
darcs.eclass
db-use.eclass Sync with portage [Sun Jul 21 23:38:52 MSK 2013]. 11 years ago
db.eclass Sync with portage [Sun Jul 21 23:38:52 MSK 2013]. 11 years ago
depend.apache.eclass
depend.php.eclass
distutils-r1.eclass Sync with portage [Thu Dec 5 14:13:54 MSK 2013]. 11 years ago
distutils.eclass Sync with portage [Mon Aug 5 10:38:07 MSK 2013]. 11 years ago
elisp-common.eclass Sync with portage [Wed Nov 6 17:43:56 MSK 2013]. 11 years ago
elisp.eclass Sync with portage [Sun Mar 17 19:32:55 MSK 2013]. 12 years ago
embassy.eclass
emboss.eclass
emul-linux-x86.eclass Sync with portage [Fri Jun 28 12:49:32 MSK 2013]. 12 years ago
enlightenment.eclass Sync with portage [Mon Oct 14 00:49:48 MSK 2013]. 11 years ago
eutils.eclass Sync with portage [Thu Dec 5 14:13:54 MSK 2013]. 11 years ago
fcaps.eclass Sync with portage [Thu Jun 27 20:39:07 MSK 2013]. 12 years ago
fdo-mime.eclass
findlib.eclass
fixheadtails.eclass
flag-o-matic.eclass Sync with portage [Sat Nov 2 15:08:12 MSK 2013]. 11 years ago
font-ebdftopcf.eclass
font.eclass Sync with portage [Sat Jul 27 21:44:38 MSK 2013]. 11 years ago
fortran-2.eclass Sync with portage [Tue Jul 30 13:19:02 MSK 2013]. 11 years ago
fox.eclass
freebsd.eclass Sync with portage [Thu Aug 29 11:37:45 MSK 2013]. 11 years ago
freedict.eclass
games-ggz.eclass
games-mods.eclass
games.eclass Sync with portage [Mon Apr 8 18:06:36 MSK 2013]. 12 years ago
gdesklets.eclass
gems.eclass
ghc-package.eclass Sync with portage [Sun May 12 20:39:14 MSK 2013]. 12 years ago
git-2.eclass Sync with portage [Wed Oct 9 13:40:10 MSK 2013]. 11 years ago
git-r3.eclass Sync with portage [Sat Nov 16 16:57:01 MSK 2013]. 11 years ago
gkrellm-plugin.eclass
gnat.eclass
gnatbuild.eclass Sync with portage [Tue Nov 26 12:24:16 MSK 2013]. 11 years ago
gnome-games.eclass Sync with portage [Mon Aug 26 08:58:38 MSK 2013]. 11 years ago
gnome-python-common.eclass
gnome.org.eclass
gnome2-utils.eclass Sync with portage [Mon Sep 16 02:37:01 MSK 2013]. 11 years ago
gnome2.eclass Sync with portage [Mon Sep 30 10:36:57 MSK 2013]. 11 years ago
gnuconfig.eclass Sync with portage [Wed May 22 17:25:42 MSK 2013]. 12 years ago
gnustep-2.eclass
gnustep-base.eclass
go-mono.eclass Sync with portage [Mon Jul 29 00:19:25 MSK 2013]. 11 years ago
gpe.eclass
gst-plugins-bad.eclass
gst-plugins-base.eclass
gst-plugins-good.eclass
gst-plugins-ugly.eclass
gst-plugins10.eclass Sync with portage [Mon Sep 30 10:36:57 MSK 2013]. 11 years ago
gtk-sharp-module.eclass
haskell-cabal.eclass Sync with portage [Wed Nov 20 18:58:08 MSK 2013]. 11 years ago
horde.eclass
intel-sdp.eclass Sync with portage [Mon Sep 30 10:36:57 MSK 2013]. 11 years ago
java-ant-2.eclass Sync with portage [Mon Oct 7 03:43:55 MSK 2013]. 11 years ago
java-mvn-src.eclass
java-osgi.eclass
java-pkg-2.eclass
java-pkg-opt-2.eclass
java-pkg-simple.eclass
java-utils-2.eclass Sync with portage [Mon Oct 7 03:43:55 MSK 2013]. 11 years ago
java-virtuals-2.eclass
java-vm-2.eclass
kde4-base.eclass Sync with portage [Fri Aug 16 13:29:35 MSK 2013]. 11 years ago
kde4-functions.eclass Sync with portage [Fri Aug 16 13:29:35 MSK 2013]. 11 years ago
kde4-meta-pkg.eclass Sync with portage [Mon Apr 8 05:24:15 MSK 2013]. 12 years ago
kde4-meta.eclass Sync with portage [Thu Aug 22 15:08:29 MSK 2013]. 11 years ago
kernel-2.eclass Sync with portage [Sun Nov 24 02:57:24 MSK 2013]. 11 years ago
l10n.eclass
latex-package.eclass Sync with portage [Sat Jul 6 13:56:09 MSK 2013]. 12 years ago
leechcraft.eclass Sync with portage [Wed Sep 25 01:10:03 MSK 2013]. 11 years ago
libtool.eclass Sync with portage [Fri Dec 6 20:06:51 MSK 2013]. 11 years ago
linux-info.eclass Sync with portage [Mon Sep 30 10:36:57 MSK 2013]. 11 years ago
linux-mod.eclass Sync with portage [Mon Dec 2 12:44:32 MSK 2013]. 11 years ago
makeedit.eclass
mercurial.eclass Sync with portage [Wed Nov 6 17:43:56 MSK 2013]. 11 years ago
mono-env.eclass Sync with portage [Mon Jun 17 10:50:05 MSK 2013]. 12 years ago
mono.eclass
mount-boot.eclass
mozconfig-3.eclass Sync with portage [Thu Aug 29 11:37:45 MSK 2013]. 11 years ago
mozcoreconf-2.eclass Sync with portage [Tue Aug 27 13:39:39 MSK 2013]. 11 years ago
mozextension.eclass Sync with portage [Tue May 28 19:00:53 MSK 2013]. 12 years ago
mozilla-launcher.eclass
mozlinguas.eclass Sync with portage [Fri Apr 5 23:10:06 MSK 2013]. 12 years ago
multibuild.eclass Sync with portage [Wed Sep 18 22:38:41 MSK 2013]. 11 years ago
multilib-build.eclass Sync with portage [Wed Oct 2 12:54:07 MSK 2013]. 11 years ago
multilib-minimal.eclass Sync with portage [Mon Oct 21 01:26:14 MSK 2013]. 11 years ago
multilib.eclass Sync with portage [Mon Apr 22 19:05:59 MSK 2013]. 12 years ago
multiprocessing.eclass Sync with portage [Mon Dec 9 02:07:18 MSK 2013]. 11 years ago
myspell-r2.eclass
myspell.eclass
mysql-autotools.eclass Sync with portage [Thu Jun 27 20:39:07 MSK 2013]. 12 years ago
mysql-cmake.eclass Sync with portage [Fri Jun 28 12:49:32 MSK 2013]. 12 years ago
mysql-v2.eclass Sync with portage [Thu Jun 27 20:39:07 MSK 2013]. 12 years ago
mysql.eclass Sync with portage [Sun Mar 17 19:32:55 MSK 2013]. 12 years ago
mysql_fx.eclass
mythtv-plugins.eclass
mythtv.eclass
netsurf.eclass Sync with portage [Mon Jun 24 00:37:21 MSK 2013]. 12 years ago
nsplugins.eclass Sync with portage [Tue May 28 19:00:53 MSK 2013]. 12 years ago
nvidia-driver.eclass Sync with portage [Mon Oct 14 00:49:48 MSK 2013]. 11 years ago
oasis.eclass Sync with portage [Thu Feb 7 21:32:04 MSK 2013]. 12 years ago
obs-download.eclass
obs-service.eclass Sync with portage [Wed Mar 27 16:30:42 MSK 2013]. 12 years ago
office-ext-r1.eclass Sync with portage [Sun Mar 31 19:33:49 MSK 2013]. 12 years ago
office-ext.eclass Sync with portage [Fri May 17 18:33:46 MSK 2013]. 12 years ago
openib.eclass
pam.eclass
pax-utils.eclass Sync with portage [Sun May 19 00:16:36 MSK 2013]. 12 years ago
perl-app.eclass
perl-module.eclass Sync with portage [Wed Jul 31 15:17:39 MSK 2013]. 11 years ago
php-common-r1.eclass Sync with portage [Sun Apr 28 22:43:11 MSK 2013]. 12 years ago
php-ext-base-r1.eclass
php-ext-pecl-r2.eclass
php-ext-source-r2.eclass Sync with portage [Sun Jun 2 23:03:43 MSK 2013]. 12 years ago
php-ezc.eclass
php-lib-r1.eclass
php-pear-lib-r1.eclass
php-pear-r1.eclass Sync with portage [Tue Nov 26 12:24:16 MSK 2013]. 11 years ago
phpconfutils.eclass
portability.eclass
prefix.eclass
python-any-r1.eclass Sync with portage [Wed Oct 23 00:08:50 MSK 2013]. 11 years ago
python-r1.eclass Sync with portage [Mon Dec 2 12:44:32 MSK 2013]. 11 years ago
python-single-r1.eclass Sync with portage [Mon Dec 2 12:44:32 MSK 2013]. 11 years ago
python-utils-r1.eclass Sync with portage [Thu Oct 31 17:12:24 MSK 2013]. 11 years ago
python.eclass Sync with portage [Thu Sep 19 10:50:54 MSK 2013]. 11 years ago
qmail.eclass Sync with portage [Mon May 27 10:30:42 MSK 2013]. 12 years ago
qmake-utils.eclass Sync with portage [Thu Dec 5 14:13:54 MSK 2013]. 11 years ago
qt4-build.eclass Sync with portage [Tue Nov 12 10:19:09 MSK 2013]. 11 years ago
qt4-r2.eclass Sync with portage [Mon Jun 3 22:47:02 MSK 2013]. 12 years ago
readme.gentoo.eclass Sync with portage [Sat May 25 21:07:42 MSK 2013]. 12 years ago
rox-0install.eclass
rox.eclass
rpm.eclass
ruby-fakegem.eclass Sync with portage [Sun Nov 10 03:01:28 MSK 2013]. 11 years ago
ruby-ng-gnome2.eclass
ruby-ng.eclass Sync with portage [Mon Jun 24 00:37:21 MSK 2013]. 12 years ago
ruby.eclass
savedconfig.eclass Sync with portage [Tue Jan 29 23:08:20 MSK 2013]. 12 years ago
scons-utils.eclass
scsh.eclass
selinux-policy-2.eclass Sync with portage [Tue May 7 16:18:27 MSK 2013]. 12 years ago
sgml-catalog.eclass
ssl-cert.eclass Sync with portage [Fri Jan 4 03:36:33 MSK 2013]. 12 years ago
stardict.eclass
subversion.eclass Sync with portage [Sat Oct 19 02:38:34 MSK 2013]. 11 years ago
sword-module.eclass
systemd.eclass Sync with portage [Wed Oct 23 00:08:50 MSK 2013]. 11 years ago
texlive-common.eclass Sync with portage [Thu Jun 27 00:58:41 MSK 2013]. 12 years ago
texlive-module.eclass Sync with portage [Thu Sep 26 19:37:10 MSK 2013]. 11 years ago
toolchain-binutils.eclass Sync with portage [Thu Nov 21 13:57:12 MSK 2013]. 11 years ago
toolchain-funcs.eclass Sync with portage [Mon Oct 14 00:49:48 MSK 2013]. 11 years ago
toolchain.eclass Sync with portage [Mon Nov 25 11:10:20 MSK 2013]. 11 years ago
twisted-r1.eclass Sync with portage [Fri Aug 9 16:32:47 MSK 2013]. 11 years ago
twisted.eclass
udev.eclass Sync with portage [Sun Mar 24 23:25:00 MSK 2013]. 12 years ago
unpacker.eclass Sync with portage [Thu Apr 11 00:12:33 MSK 2013]. 12 years ago
user.eclass
vala.eclass Sync with portage [Mon Oct 7 03:43:55 MSK 2013]. 11 years ago
vcs-snapshot.eclass Sync with portage [Sat Jul 27 21:44:38 MSK 2013]. 11 years ago
vdr-plugin-2.eclass Sync with portage [Tue Oct 8 12:11:05 MSK 2013]. 11 years ago
vdr-plugin.eclass Sync with portage [Mon Feb 18 17:33:11 MSK 2013]. 12 years ago
versionator.eclass Sync with portage [Sun Nov 24 02:57:24 MSK 2013]. 11 years ago
vim-doc.eclass
vim-plugin.eclass Sync with portage [Thu Jun 20 22:12:17 MSK 2013]. 12 years ago
vim-spell.eclass
vim.eclass Sync with portage [Tue Jun 11 18:00:24 MSK 2013]. 12 years ago
virtualx.eclass
virtuoso.eclass
vmware-bundle.eclass
waf-utils.eclass Sync with portage [Sun Nov 24 02:57:24 MSK 2013]. 11 years ago
webapp.eclass
wxwidgets.eclass Sync with portage [Mon Nov 18 02:42:16 MSK 2013]. 11 years ago
x-modular.eclass Sync with portage [Sat Jul 6 13:56:09 MSK 2013]. 12 years ago
xemacs-elisp-common.eclass
xemacs-elisp.eclass
xemacs-packages.eclass
xfconf.eclass
xorg-2.eclass Sync with portage [Wed Jul 31 11:21:12 MSK 2013]. 11 years ago
zproduct.eclass

readme.gentoo.eclass

# Copyright 1999-2013 Gentoo Foundation

# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/readme.gentoo.eclass,v 1.7 2013/05/24 18:05:27 pacho Exp $

# @ECLASS: readme.gentoo
# @MAINTAINER:
# Pacho Ramos <pacho@gentoo.org>
# @AUTHOR:
# Author: Pacho Ramos <pacho@gentoo.org>
# @BLURB: An eclass for installing a README.gentoo doc file recording tips
# shown via elog messages.
# @DESCRIPTION:
# An eclass for installing a README.gentoo doc file recording tips
# shown via elog messages. With this eclass, those elog messages will only be
# shown at first package installation and a file for later reviewing will be
# installed under /usr/share/doc/${PF}

if [[ ${___ECLASS_ONCE_README_GENTOO} != "recur -_+^+_- spank" ]] ; then
___ECLASS_ONCE_README_GENTOO="recur -_+^+_- spank"

inherit eutils

case "${EAPI:-0}" in
0|1|2|3)
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
;;
4|5)
# EAPI>=4 is required for REPLACING_VERSIONS preventing us
# from needing to export another pkg_preinst phase to save has_version
# result. Also relies on EAPI >=4 default src_install phase.
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
;;
esac

EXPORT_FUNCTIONS src_install pkg_postinst

# @ECLASS-VARIABLE: DISABLE_AUTOFORMATTING
# @DEFAULT_UNSET
# @DESCRIPTION:
# If non-empty, DOC_CONTENTS information will be strictly respected,
# not getting it automatically formatted by fmt. If empty, it will
# rely on fmt for formatting and 'echo -e' options to tweak lines a bit.

# @ECLASS-VARIABLE: FORCE_PRINT_ELOG
# @DEFAULT_UNSET
# @DESCRIPTION:
# If non-empty this variable forces elog messages to be printed.

# @FUNCTION: readme.gentoo_create_doc
# @DESCRIPTION:
# Create doc file with ${DOC_CONTENTS} variable (preferred) and, if not set,
# look for "${FILESDIR}/README.gentoo" contents. You can use
# ${FILESDIR}/README.gentoo-${SLOT} also.
# Usually called at src_install phase.
readme.gentoo_create_doc() {
debug-print-function ${FUNCNAME} "${@}"

if [[ -n "${DOC_CONTENTS}" ]]; then
eshopts_push
set -f
if [[ -n "${DISABLE_AUTOFORMATTING}" ]]; then
echo "${DOC_CONTENTS}" > "${T}"/README.gentoo
else
echo -e ${DOC_CONTENTS} | fold -s -w 70 \
| sed 's/[[:space:]]*$//' > "${T}"/README.gentoo
fi
eshopts_pop
elif [[ -f "${FILESDIR}/README.gentoo-${SLOT%/*}" ]]; then
cp "${FILESDIR}/README.gentoo-${SLOT%/*}" "${T}"/README.gentoo
elif [[ -f "${FILESDIR}/README.gentoo" ]]; then
cp "${FILESDIR}/README.gentoo" "${T}"/README.gentoo
else
die "You are not specifying README.gentoo contents!"
fi

dodoc "${T}"/README.gentoo
README_GENTOO_DOC_VALUE=$(< "${T}/README.gentoo")
}

# @FUNCTION: readme.gentoo_print_elog
# @DESCRIPTION:
# Print elog messages with "${T}"/README.gentoo contents. They will be
# shown only when package is installed at first time.
# Usually called at pkg_postinst phase.
#
# If you want to show them always, please set FORCE_PRINT_ELOG to a non empty
# value in your ebuild before this function is called.
# This can be useful when, for example, DOC_CONTENTS is modified, then, you can
# rely on specific REPLACING_VERSIONS handling in your ebuild to print messages
# when people update from versions still providing old message.
readme.gentoo_print_elog() {
debug-print-function ${FUNCNAME} "${@}"

if [[ -z "${README_GENTOO_DOC_VALUE}" ]]; then
die "readme.gentoo_print_elog invoked without matching readme.gentoo_create_doc call!"
elif ! [[ -n "${REPLACING_VERSIONS}" ]] || [[ -n "${FORCE_PRINT_ELOG}" ]]; then
echo -e "${README_GENTOO_DOC_VALUE}" | while read -r ELINE; do elog "${ELINE}"; done
elog ""
elog "(Note: Above message is only printed the first time package is"
elog "installed. Please look at /usr/share/doc/${PF}/README.gentoo*"
elog "for future reference)"
fi
}


# @FUNCTION: readme.gentoo_src_install
# @DESCRIPTION:
# Install generated doc file automatically.
readme.gentoo_src_install() {
debug-print-function ${FUNCNAME} "${@}"
default
readme.gentoo_create_doc
}

# @FUNCTION: readme.gentoo_pkg_postinst
# @DESCRIPTION:
# Show elog messages from from just generated doc file.
readme.gentoo_pkg_postinst() {
debug-print-function ${FUNCNAME} "${@}"
readme.gentoo_print_elog
}

fi