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 dc8bbcf586
Sync with portage [Thu Apr 25 09:49:16 MSK 2019].
6 years ago
..
tests Sync with portage [Tue Dec 11 09:01:25 MSK 2018]. 6 years ago
Manifest.gz Sync with portage [Thu Apr 25 09:49:16 MSK 2019]. 6 years ago
alternatives.eclass
ant-tasks.eclass Sync with portage [Wed Mar 20 22:55:40 MSK 2019]. 6 years ago
apache-2.eclass Sync with portage [Sat Apr 20 19:43:20 MSK 2019]. 6 years ago
apache-module.eclass
aspell-dict-r1.eclass
autotools-multilib.eclass
autotools-utils.eclass
autotools.eclass
base.eclass
bash-completion-r1.eclass
bazel.eclass Sync with portage [Tue Dec 25 09:20:31 MSK 2018]. 6 years ago
bsdmk.eclass
bzr.eclass
cannadic.eclass
cargo.eclass Sync with portage [Wed Jan 9 09:48:03 MSK 2019]. 6 years ago
cdrom.eclass
check-reqs.eclass
chromium-2.eclass Sync with portage [Wed Oct 3 11:36:37 MSK 2018]. 6 years ago
cmake-multilib.eclass Sync with portage [Wed Dec 26 08:50:37 MSK 2018]. 6 years ago
cmake-utils.eclass Sync with portage [Tue Dec 11 09:01:25 MSK 2018]. 6 years ago
common-lisp-3.eclass
cron.eclass Sync with portage [Sat Mar 30 17:40:05 MSK 2019]. 6 years ago
cuda.eclass
cvs.eclass
darcs.eclass Sync with portage [Sun Nov 11 18:14:28 MSK 2018]. 6 years ago
db-use.eclass
db.eclass
depend.apache.eclass
desktop.eclass
distutils-r1.eclass Sync with portage [Sun Feb 17 13:22:44 MSK 2019]. 6 years ago
dotnet.eclass Sync with portage [Tue Nov 6 18:39:25 MSK 2018]. 6 years ago
eapi7-ver.eclass
elisp-common.eclass
elisp.eclass
emboss-r2.eclass Sync with portage [Tue Feb 19 09:24:47 MSK 2019]. 6 years ago
epatch.eclass
epunt-cxx.eclass
estack.eclass
eutils.eclass
fcaps.eclass
fdo-mime.eclass
findlib.eclass
fixheadtails.eclass
flag-o-matic.eclass Sync with portage [Thu Feb 14 11:47:59 MSK 2019]. 6 years ago
font-ebdftopcf.eclass
font.eclass Sync with portage [Mon Mar 4 09:40:55 MSK 2019]. 6 years ago
fortran-2.eclass Sync with portage [Sun Nov 18 00:06:36 MSK 2018]. 6 years ago
fox.eclass
freebsd.eclass
freedict.eclass
games-mods.eclass
games.eclass
ghc-package.eclass Sync with portage [Sun Nov 11 18:14:28 MSK 2018]. 6 years ago
git-2.eclass
git-r3.eclass
gkrellm-plugin.eclass
gnome-python-common-r1.eclass
gnome.org.eclass Sync with portage [Tue Feb 12 08:41:31 MSK 2019]. 6 years ago
gnome2-utils.eclass Sync with portage [Tue Feb 12 08:41:31 MSK 2019]. 6 years ago
gnome2.eclass Sync with portage [Tue Feb 12 08:41:31 MSK 2019]. 6 years ago
gnuconfig.eclass
gnustep-2.eclass
gnustep-base.eclass
golang-base.eclass Sync with portage [Sat Feb 9 21:58:25 MSK 2019]. 6 years ago
golang-build.eclass Sync with portage [Sat Feb 9 21:58:25 MSK 2019]. 6 years ago
golang-vcs-snapshot.eclass Sync with portage [Sat Feb 9 21:58:25 MSK 2019]. 6 years ago
golang-vcs.eclass Sync with portage [Sat Feb 9 21:58:25 MSK 2019]. 6 years ago
gstreamer.eclass
haskell-cabal.eclass Sync with portage [Sun Nov 11 18:14:28 MSK 2018]. 6 years ago
java-ant-2.eclass Sync with portage [Tue Nov 13 16:46:20 MSK 2018]. 6 years ago
java-osgi.eclass
java-pkg-2.eclass
java-pkg-opt-2.eclass
java-pkg-simple.eclass
java-utils-2.eclass Sync with portage [Sun Mar 10 15:30:35 MSK 2019]. 6 years ago
java-virtuals-2.eclass
java-vm-2.eclass Sync with portage [Wed Feb 6 08:52:01 MSK 2019]. 6 years ago
kde5-functions.eclass Sync with portage [Sat Apr 20 19:43:20 MSK 2019]. 6 years ago
kde5.eclass Sync with portage [Tue Apr 2 12:05:04 MSK 2019]. 6 years ago
kernel-2.eclass Sync with portage [Fri Feb 22 09:55:41 MSK 2019]. 6 years ago
kodi-addon.eclass
l10n.eclass
latex-package.eclass
leechcraft.eclass
libretro-core.eclass
libtool.eclass
linux-info.eclass Sync with portage [Wed Oct 3 11:36:37 MSK 2018]. 6 years ago
linux-mod.eclass Sync with portage [Fri Mar 15 08:59:14 MSK 2019]. 6 years ago
llvm.eclass Sync with portage [Sun Jan 20 19:51:09 MSK 2019]. 6 years ago
ltprune.eclass Sync with portage [Tue Feb 26 08:46:17 MSK 2019]. 6 years ago
mate-desktop.org.eclass
mate.eclass
mercurial.eclass
meson.eclass Sync with portage [Mon Mar 18 09:10:39 MSK 2019]. 6 years ago
mono-env.eclass
mono.eclass
mount-boot.eclass
mozconfig-v6.52.eclass Sync with portage [Mon Mar 18 09:10:39 MSK 2019]. 6 years ago
mozconfig-v6.60.eclass Sync with portage [Mon Mar 18 09:10:39 MSK 2019]. 6 years ago
mozcoreconf-v4.eclass
mozcoreconf-v5.eclass
mozcoreconf-v6.eclass Sync with portage [Sat Mar 9 17:15:47 MSK 2019]. 6 years ago
mozextension.eclass
mozlinguas-v2.eclass
multibuild.eclass
multilib-build.eclass
multilib-minimal.eclass
multilib.eclass Sync with portage [Fri Sep 28 16:48:50 MSK 2018]. 6 years ago
multiprocessing.eclass
myspell-r2.eclass
myspell.eclass
netsurf.eclass Sync with portage [Mon Nov 26 08:56:26 MSK 2018]. 6 years ago
ninja-utils.eclass
nsplugins.eclass
nvidia-driver.eclass
oasis.eclass
obs-download.eclass
obs-service.eclass
office-ext-r1.eclass Sync with portage [Sun Apr 7 22:34:23 MSK 2019]. 6 years ago
opam.eclass Sync with portage [Wed Feb 6 08:52:01 MSK 2019]. 6 years ago
openib.eclass
out-of-source.eclass
pam.eclass Sync with portage [Sat Mar 30 17:40:05 MSK 2019]. 6 years ago
pax-utils.eclass Sync with portage [Tue Apr 23 11:46:45 MSK 2019]. 6 years ago
perl-app.eclass
perl-functions.eclass
perl-module.eclass Sync with portage [Sun Dec 23 13:24:09 MSK 2018]. 6 years ago
php-ext-pecl-r3.eclass
php-ext-source-r2.eclass
php-ext-source-r3.eclass Sync with portage [Sun Jan 20 19:51:09 MSK 2019]. 6 years ago
php-pear-r2.eclass Sync with portage [Fri Nov 2 09:37:43 MSK 2018]. 6 years ago
portability.eclass
postgres-multi.eclass
postgres.eclass
prefix.eclass
preserve-libs.eclass
python-any-r1.eclass
python-r1.eclass
python-single-r1.eclass
python-utils-r1.eclass Sync with portage [Fri Mar 22 12:13:41 MSK 2019]. 6 years ago
qmail.eclass
qmake-utils.eclass
qt5-build.eclass Sync with portage [Mon Mar 4 09:40:55 MSK 2019]. 6 years ago
readme.gentoo-r1.eclass
readme.gentoo.eclass
rebar.eclass
ros-catkin.eclass
rpm.eclass
ruby-fakegem.eclass Sync with portage [Tue Dec 11 09:01:25 MSK 2018]. 6 years ago
ruby-ng-gnome2.eclass Sync with portage [Wed Dec 12 09:14:26 MSK 2018]. 6 years ago
ruby-ng.eclass
ruby-single.eclass
ruby-utils.eclass Sync with portage [Fri Dec 28 18:46:33 MSK 2018]. 6 years ago
rust-toolchain.eclass Sync with portage [Wed Mar 13 23:42:26 MSK 2019]. 6 years ago
s6.eclass
savedconfig.eclass
scons-utils.eclass
selinux-policy-2.eclass Sync with portage [Sat Apr 20 19:43:20 MSK 2019]. 6 years ago
sgml-catalog.eclass Sync with portage [Sun Nov 4 23:09:25 MSK 2018]. 6 years ago
ssl-cert.eclass
stardict.eclass
subversion.eclass
sword-module.eclass
systemd.eclass Sync with portage [Fri Dec 28 18:46:33 MSK 2018]. 6 years ago
texlive-common.eclass
texlive-module.eclass
tmpfiles.eclass Sync with portage [Sat Feb 9 21:58:25 MSK 2019]. 6 years ago
toolchain-autoconf.eclass
toolchain-binutils.eclass
toolchain-funcs.eclass Sync with portage [Fri Mar 15 08:59:14 MSK 2019]. 6 years ago
toolchain-glibc.eclass Sync with portage [Mon Feb 11 15:45:38 MSK 2019]. 6 years ago
toolchain.eclass Sync with portage [Mon Mar 4 09:40:55 MSK 2019]. 6 years ago
twisted-r1.eclass
udev.eclass Sync with portage [Thu Sep 27 01:10:15 MSK 2018]. 6 years ago
unpacker.eclass Sync with portage [Fri Feb 1 08:48:49 MSK 2019]. 6 years ago
user.eclass Sync with portage [Tue Feb 26 08:46:17 MSK 2019]. 6 years ago
vala.eclass Sync with portage [Sun Feb 24 14:18:07 MSK 2019]. 6 years ago
vcs-clean.eclass
vcs-snapshot.eclass
vdr-plugin-2.eclass
versionator.eclass
vim-doc.eclass
vim-plugin.eclass
vim-spell.eclass
virtualx.eclass
waf-utils.eclass Sync with portage [Mon Jan 14 09:00:22 MSK 2019]. 6 years ago
webapp.eclass Sync with portage [Fri Feb 22 09:55:41 MSK 2019]. 6 years ago
wxwidgets.eclass
xdg-utils.eclass Sync with portage [Tue Feb 12 08:41:31 MSK 2019]. 6 years ago
xdg.eclass Sync with portage [Tue Feb 12 08:41:31 MSK 2019]. 6 years ago
xemacs-elisp-common.eclass
xemacs-elisp.eclass
xemacs-packages.eclass
xfconf.eclass
xorg-2.eclass Sync with portage [Mon Mar 18 09:10:39 MSK 2019]. 6 years ago
xorg-3.eclass Sync with portage [Thu Apr 25 09:49:16 MSK 2019]. 6 years ago

readme.gentoo.eclass

# Copyright 1999-2018 Gentoo Foundation

# Distributed under the terms of the GNU General Public License v2

# @ECLASS: readme.gentoo.eclass
# @MAINTAINER:
# Pacho Ramos <pacho@gentoo.org>
# @AUTHOR:
# Author: Pacho Ramos <pacho@gentoo.org>
# @SUPPORTED_EAPIS: 4 5
# @BLURB: install a doc file 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}
#
# This eclass is DEPRECATED. Please use readme.gentoo-r1 instead.

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

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.
EXPORT_FUNCTIONS src_install pkg_postinst
;;
6)
die "Unsupported EAPI=${EAPI} for ${ECLASS}"
die "Please migrate to readme.gentoo-r1.eclass and note that"
die "it stops to export any ebuild phases and, then, you will"
die "need to ensure readme.gentoo_create_doc is called in"
die "src_install and readme.gentoo_print_elog in pkg_postinst"
;;
*)
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
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 || 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} "${@}"

eqawarn "${CATEGORY}/${PN} is using the deprecated readme.gentoo.eclass."
eqawarn "Please use readme.gentoo-r1 instead."

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
}


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