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