LDA010 b7df015bb4 copy 7 anni fa
..
ELT-patches b7df015bb4 copy 7 anni fa
tests b7df015bb4 copy 7 anni fa
alternatives.eclass b7df015bb4 copy 7 anni fa
ant-tasks.eclass b7df015bb4 copy 7 anni fa
apache-2.eclass b7df015bb4 copy 7 anni fa
apache-module.eclass b7df015bb4 copy 7 anni fa
aspell-dict-r1.eclass b7df015bb4 copy 7 anni fa
aspell-dict.eclass b7df015bb4 copy 7 anni fa
autotools-multilib.eclass b7df015bb4 copy 7 anni fa
autotools-utils.eclass b7df015bb4 copy 7 anni fa
autotools.eclass b7df015bb4 copy 7 anni fa
base.eclass b7df015bb4 copy 7 anni fa
bash-completion-r1.eclass b7df015bb4 copy 7 anni fa
bitcoincore.eclass b7df015bb4 copy 7 anni fa
bsdmk.eclass b7df015bb4 copy 7 anni fa
bzr.eclass b7df015bb4 copy 7 anni fa
cannadic.eclass b7df015bb4 copy 7 anni fa
cargo.eclass b7df015bb4 copy 7 anni fa
cdrom.eclass b7df015bb4 copy 7 anni fa
check-reqs.eclass b7df015bb4 copy 7 anni fa
chromium-2.eclass b7df015bb4 copy 7 anni fa
chromium.eclass b7df015bb4 copy 7 anni fa
cmake-multilib.eclass b7df015bb4 copy 7 anni fa
cmake-utils.eclass b7df015bb4 copy 7 anni fa
common-lisp-3.eclass b7df015bb4 copy 7 anni fa
common-lisp-common.eclass b7df015bb4 copy 7 anni fa
common-lisp.eclass b7df015bb4 copy 7 anni fa
confutils.eclass b7df015bb4 copy 7 anni fa
cron.eclass b7df015bb4 copy 7 anni fa
cuda.eclass b7df015bb4 copy 7 anni fa
cvs.eclass b7df015bb4 copy 7 anni fa
darcs.eclass b7df015bb4 copy 7 anni fa
db-use.eclass b7df015bb4 copy 7 anni fa
db.eclass b7df015bb4 copy 7 anni fa
depend.apache.eclass b7df015bb4 copy 7 anni fa
distutils-r1.eclass b7df015bb4 copy 7 anni fa
dotnet.eclass b7df015bb4 copy 7 anni fa
elisp-common.eclass b7df015bb4 copy 7 anni fa
elisp.eclass b7df015bb4 copy 7 anni fa
emboss-r2.eclass b7df015bb4 copy 7 anni fa
enlightenment.eclass b7df015bb4 copy 7 anni fa
epatch.eclass b7df015bb4 copy 7 anni fa
epunt-cxx.eclass b7df015bb4 copy 7 anni fa
estack.eclass b7df015bb4 copy 7 anni fa
eutils.eclass b7df015bb4 copy 7 anni fa
fcaps.eclass b7df015bb4 copy 7 anni fa
fdo-mime.eclass b7df015bb4 copy 7 anni fa
findlib.eclass b7df015bb4 copy 7 anni fa
fixheadtails.eclass b7df015bb4 copy 7 anni fa
flag-o-matic.eclass b7df015bb4 copy 7 anni fa
font-ebdftopcf.eclass b7df015bb4 copy 7 anni fa
font.eclass b7df015bb4 copy 7 anni fa
fortran-2.eclass b7df015bb4 copy 7 anni fa
fox.eclass b7df015bb4 copy 7 anni fa
freebsd.eclass b7df015bb4 copy 7 anni fa
freedict.eclass b7df015bb4 copy 7 anni fa
games-mods.eclass b7df015bb4 copy 7 anni fa
games.eclass b7df015bb4 copy 7 anni fa
ghc-package.eclass b7df015bb4 copy 7 anni fa
git-2.eclass b7df015bb4 copy 7 anni fa
git-r3.eclass b7df015bb4 copy 7 anni fa
gkrellm-plugin.eclass b7df015bb4 copy 7 anni fa
gnat.eclass b7df015bb4 copy 7 anni fa
gnatbuild-r1.eclass b7df015bb4 copy 7 anni fa
gnatbuild.eclass b7df015bb4 copy 7 anni fa
gnome-games.eclass b7df015bb4 copy 7 anni fa
gnome-python-common-r1.eclass b7df015bb4 copy 7 anni fa
gnome.org.eclass b7df015bb4 copy 7 anni fa
gnome2-utils.eclass b7df015bb4 copy 7 anni fa
gnome2.eclass b7df015bb4 copy 7 anni fa
gnuconfig.eclass b7df015bb4 copy 7 anni fa
gnustep-2.eclass b7df015bb4 copy 7 anni fa
gnustep-base.eclass b7df015bb4 copy 7 anni fa
go-mono.eclass b7df015bb4 copy 7 anni fa
golang-base.eclass b7df015bb4 copy 7 anni fa
golang-build.eclass b7df015bb4 copy 7 anni fa
golang-vcs-snapshot.eclass b7df015bb4 copy 7 anni fa
golang-vcs.eclass b7df015bb4 copy 7 anni fa
gpe.eclass b7df015bb4 copy 7 anni fa
gst-plugins-bad.eclass b7df015bb4 copy 7 anni fa
gst-plugins-base.eclass b7df015bb4 copy 7 anni fa
gst-plugins-good.eclass b7df015bb4 copy 7 anni fa
gst-plugins-ugly.eclass b7df015bb4 copy 7 anni fa
gst-plugins10.eclass b7df015bb4 copy 7 anni fa
gstreamer.eclass b7df015bb4 copy 7 anni fa
gtk-sharp-module.eclass b7df015bb4 copy 7 anni fa
haskell-cabal.eclass b7df015bb4 copy 7 anni fa
intel-sdp.eclass b7df015bb4 copy 7 anni fa
java-ant-2.eclass b7df015bb4 copy 7 anni fa
java-osgi.eclass b7df015bb4 copy 7 anni fa
java-pkg-2.eclass b7df015bb4 copy 7 anni fa
java-pkg-opt-2.eclass b7df015bb4 copy 7 anni fa
java-pkg-simple.eclass b7df015bb4 copy 7 anni fa
java-utils-2.eclass b7df015bb4 copy 7 anni fa
java-virtuals-2.eclass b7df015bb4 copy 7 anni fa
java-vm-2.eclass b7df015bb4 copy 7 anni fa
kde4-base.eclass b7df015bb4 copy 7 anni fa
kde4-functions.eclass b7df015bb4 copy 7 anni fa
kde4-meta.eclass b7df015bb4 copy 7 anni fa
kde5-functions.eclass b7df015bb4 copy 7 anni fa
kde5-meta-pkg.eclass b7df015bb4 copy 7 anni fa
kde5.eclass b7df015bb4 copy 7 anni fa
kernel-2.eclass b7df015bb4 copy 7 anni fa
kodi-addon.eclass b7df015bb4 copy 7 anni fa
l10n.eclass b7df015bb4 copy 7 anni fa
latex-package.eclass b7df015bb4 copy 7 anni fa
leechcraft.eclass b7df015bb4 copy 7 anni fa
libtool.eclass b7df015bb4 copy 7 anni fa
linux-info.eclass b7df015bb4 copy 7 anni fa
linux-mod.eclass b7df015bb4 copy 7 anni fa
llvm.eclass b7df015bb4 copy 7 anni fa
ltprune.eclass b7df015bb4 copy 7 anni fa
makeedit.eclass b7df015bb4 copy 7 anni fa
mate-desktop.org.eclass b7df015bb4 copy 7 anni fa
mate.eclass b7df015bb4 copy 7 anni fa
mercurial.eclass b7df015bb4 copy 7 anni fa
mono-env.eclass b7df015bb4 copy 7 anni fa
mono.eclass b7df015bb4 copy 7 anni fa
mount-boot.eclass b7df015bb4 copy 7 anni fa
mozconfig-v6.45.eclass b7df015bb4 copy 7 anni fa
mozconfig-v6.49.eclass b7df015bb4 copy 7 anni fa
mozconfig-v6.51.eclass b7df015bb4 copy 7 anni fa
mozconfig-v6.52.eclass b7df015bb4 copy 7 anni fa
mozcoreconf-v4.eclass b7df015bb4 copy 7 anni fa
mozextension.eclass b7df015bb4 copy 7 anni fa
mozlinguas-v2.eclass b7df015bb4 copy 7 anni fa
multibuild.eclass b7df015bb4 copy 7 anni fa
multilib-build.eclass b7df015bb4 copy 7 anni fa
multilib-minimal.eclass b7df015bb4 copy 7 anni fa
multilib.eclass b7df015bb4 copy 7 anni fa
multiprocessing.eclass b7df015bb4 copy 7 anni fa
myspell-r2.eclass b7df015bb4 copy 7 anni fa
myspell.eclass b7df015bb4 copy 7 anni fa
mysql-cmake.eclass b7df015bb4 copy 7 anni fa
mysql-multilib-r1.eclass b7df015bb4 copy 7 anni fa
mysql-multilib.eclass b7df015bb4 copy 7 anni fa
mysql-v2.eclass b7df015bb4 copy 7 anni fa
mysql_fx.eclass b7df015bb4 copy 7 anni fa
netsurf.eclass b7df015bb4 copy 7 anni fa
nsplugins.eclass b7df015bb4 copy 7 anni fa
nvidia-driver.eclass b7df015bb4 copy 7 anni fa
oasis.eclass b7df015bb4 copy 7 anni fa
obs-download.eclass b7df015bb4 copy 7 anni fa
obs-service.eclass b7df015bb4 copy 7 anni fa
office-ext-r1.eclass b7df015bb4 copy 7 anni fa
openib.eclass b7df015bb4 copy 7 anni fa
pam.eclass b7df015bb4 copy 7 anni fa
pax-utils.eclass b7df015bb4 copy 7 anni fa
perl-app.eclass b7df015bb4 copy 7 anni fa
perl-functions.eclass b7df015bb4 copy 7 anni fa
perl-module.eclass b7df015bb4 copy 7 anni fa
php-ext-pecl-r2.eclass b7df015bb4 copy 7 anni fa
php-ext-pecl-r3.eclass b7df015bb4 copy 7 anni fa
php-ext-source-r2.eclass b7df015bb4 copy 7 anni fa
php-ext-source-r3.eclass b7df015bb4 copy 7 anni fa
php-lib-r1.eclass b7df015bb4 copy 7 anni fa
php-pear-lib-r1.eclass b7df015bb4 copy 7 anni fa
php-pear-r1.eclass b7df015bb4 copy 7 anni fa
php-pear-r2.eclass b7df015bb4 copy 7 anni fa
portability.eclass b7df015bb4 copy 7 anni fa
prefix.eclass b7df015bb4 copy 7 anni fa
python-any-r1.eclass b7df015bb4 copy 7 anni fa
python-r1.eclass b7df015bb4 copy 7 anni fa
python-single-r1.eclass b7df015bb4 copy 7 anni fa
python-utils-r1.eclass b7df015bb4 copy 7 anni fa
qmail.eclass b7df015bb4 copy 7 anni fa
qmake-utils.eclass b7df015bb4 copy 7 anni fa
qt4-build-multilib.eclass b7df015bb4 copy 7 anni fa
qt4-r2.eclass b7df015bb4 copy 7 anni fa
qt5-build.eclass b7df015bb4 copy 7 anni fa
readme.gentoo-r1.eclass b7df015bb4 copy 7 anni fa
readme.gentoo.eclass b7df015bb4 copy 7 anni fa
rebar.eclass b7df015bb4 copy 7 anni fa
ros-catkin.eclass b7df015bb4 copy 7 anni fa
rpm.eclass b7df015bb4 copy 7 anni fa
ruby-fakegem.eclass b7df015bb4 copy 7 anni fa
ruby-ng-gnome2.eclass b7df015bb4 copy 7 anni fa
ruby-ng.eclass b7df015bb4 copy 7 anni fa
ruby-single.eclass b7df015bb4 copy 7 anni fa
ruby-utils.eclass b7df015bb4 copy 7 anni fa
s6.eclass b7df015bb4 copy 7 anni fa
savedconfig.eclass b7df015bb4 copy 7 anni fa
scons-utils.eclass b7df015bb4 copy 7 anni fa
scsh.eclass b7df015bb4 copy 7 anni fa
selinux-policy-2.eclass b7df015bb4 copy 7 anni fa
sgml-catalog.eclass b7df015bb4 copy 7 anni fa
ssl-cert.eclass b7df015bb4 copy 7 anni fa
stardict.eclass b7df015bb4 copy 7 anni fa
subversion.eclass b7df015bb4 copy 7 anni fa
sword-module.eclass b7df015bb4 copy 7 anni fa
systemd.eclass b7df015bb4 copy 7 anni fa
texlive-common.eclass b7df015bb4 copy 7 anni fa
texlive-module.eclass b7df015bb4 copy 7 anni fa
tmpfiles.eclass b7df015bb4 copy 7 anni fa
toolchain-autoconf.eclass b7df015bb4 copy 7 anni fa
toolchain-binutils.eclass b7df015bb4 copy 7 anni fa
toolchain-funcs.eclass b7df015bb4 copy 7 anni fa
toolchain-glibc.eclass b7df015bb4 copy 7 anni fa
toolchain.eclass b7df015bb4 copy 7 anni fa
twisted-r1.eclass b7df015bb4 copy 7 anni fa
udev.eclass b7df015bb4 copy 7 anni fa
unpacker.eclass b7df015bb4 copy 7 anni fa
user.eclass b7df015bb4 copy 7 anni fa
vala.eclass b7df015bb4 copy 7 anni fa
vcs-snapshot.eclass b7df015bb4 copy 7 anni fa
vdr-plugin-2.eclass b7df015bb4 copy 7 anni fa
versionator.eclass b7df015bb4 copy 7 anni fa
vim-doc.eclass b7df015bb4 copy 7 anni fa
vim-plugin.eclass b7df015bb4 copy 7 anni fa
vim-spell.eclass b7df015bb4 copy 7 anni fa
virtualx.eclass b7df015bb4 copy 7 anni fa
vmware-bundle.eclass b7df015bb4 copy 7 anni fa
waf-utils.eclass b7df015bb4 copy 7 anni fa
webapp.eclass b7df015bb4 copy 7 anni fa
wxwidgets.eclass b7df015bb4 copy 7 anni fa
x-modular.eclass b7df015bb4 copy 7 anni fa
xdg-utils.eclass b7df015bb4 copy 7 anni fa
xdg.eclass b7df015bb4 copy 7 anni fa
xemacs-elisp-common.eclass b7df015bb4 copy 7 anni fa
xemacs-elisp.eclass b7df015bb4 copy 7 anni fa
xemacs-packages.eclass b7df015bb4 copy 7 anni fa
xfconf.eclass b7df015bb4 copy 7 anni fa
xorg-2.eclass b7df015bb4 copy 7 anni fa

readme.gentoo-r1.eclass

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: readme.gentoo-r1.eclass
# @MAINTAINER:
# Pacho Ramos
# @AUTHOR:
# Author: Pacho Ramos
# @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}
#
# You need to call readme.gentoo_create_doc in src_install phase and
# readme.gentoo_print_elog in pkg_postinst

if [[ -z ${_README_GENTOO_ECLASS} ]]; then
_README_GENTOO_ECLASS=1

case "${EAPI:-0}" in
0|1|2|3)
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
;;
4|5|6)
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
;;
esac

# @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.

# @ECLASS-VARIABLE: README_GENTOO_SUFFIX
# @DESCRIPTION:
# If you want to specify a suffix for README.gentoo file please export it.
: ${README_GENTOO_SUFFIX:=""}

# @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
if [[ -n "${DISABLE_AUTOFORMATTING}" ]]; then
echo "${DOC_CONTENTS}" > "${T}"/README.gentoo || die
else
local saved_flags=$-
set -f # disable filename expansion in echo arguments
echo -e ${DOC_CONTENTS} | fold -s -w 70 \
| sed 's/[[:space:]]*$//' > "${T}"/README.gentoo
assert
set +f -${saved_flags}
fi
elif [[ -f "${FILESDIR}/README.gentoo-${SLOT%/*}" ]]; then
cp "${FILESDIR}/README.gentoo-${SLOT%/*}" "${T}"/README.gentoo || die
elif [[ -f "${FILESDIR}/README.gentoo${README_GENTOO_SUFFIX}" ]]; then
cp "${FILESDIR}/README.gentoo${README_GENTOO_SUFFIX}" "${T}"/README.gentoo || die
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 ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
elog "for future reference)"
fi
}

fi