From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/R_overlay:master commit in: eclass/
Date: Fri, 3 Aug 2012 13:38:14 +0000 (UTC) [thread overview]
Message-ID: <1343994109.a32e7b7f9fafa048eaaef1ad7ce38a8fd3aac3e6.dywi@gentoo> (raw)
commit: a32e7b7f9fafa048eaaef1ad7ce38a8fd3aac3e6
Author: André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Aug 3 11:41:49 2012 +0000
Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Aug 3 11:41:49 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=a32e7b7f
eclass: Report unresolved but optional deps
---
eclass/R-packages.eclass | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass
index 8eac623..9200d5f 100644
--- a/eclass/R-packages.eclass
+++ b/eclass/R-packages.eclass
@@ -4,7 +4,7 @@
inherit eutils
-EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install
+EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install pkg_postinst
SLOT="0"
KEYWORDS="~amd64 ~x86"
@@ -32,3 +32,17 @@ R-packages_src_install() {
insinto "${EPREFIX}/usr/$(get_libdir)/R/site-library"
doins -r ${PN}
}
+
+R-package_pkg_postinst() {
+ if [[ "${_UNRESOLVABLE_PACKAGES:-}" ]]; then
+ # _UNRESOLVABLE_PACKAGES is only set if it has more than zero items
+ local _max=${#_UNRESOLVABLE_PACKAGES[*]} i=
+
+ einfo "Dependency(-ies):"
+ for (( i=0; i<${_max}; i++ )); do
+ einfo "- ${_UNRESOLVABLE_PACKAGES[$i]}"
+ done
+ einfo 'are (is) suggested by upstream but could not be found.'
+ einfo 'Please install it manually from the R interpreter if you need it.'
+ fi
+}
next reply other threads:[~2012-08-03 13:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 13:38 André Erdmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-02-07 22:58 [gentoo-commits] proj/R_overlay:master commit in: eclass/ Denis Dupeyron
2013-02-06 19:22 Denis Dupeyron
2012-08-03 19:44 André Erdmann
2012-06-22 18:13 André Erdmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1343994109.a32e7b7f9fafa048eaaef1ad7ce38a8fd3aac3e6.dywi@gentoo \
--to=dywi@mailerd.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox