From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/qt:master commit in: media-video/minitube/
Date: Sat, 23 May 2015 16:51:05 +0000 (UTC) [thread overview]
Message-ID: <1432184965.a6509d27bb29af2860ff5fb304a35f6ca580cb37.kensington@gentoo> (raw)
commit: a6509d27bb29af2860ff5fb304a35f6ca580cb37
Author: Yuri Sevatz <yuri_sevatz <AT> hotmail <DOT> com>
AuthorDate: Thu May 21 05:09:25 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu May 21 05:09:25 2015 +0000
URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=a6509d27
[media-video/minitube] Add gentoo's google api key env variable
media-video/minitube/minitube-9999.ebuild | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/media-video/minitube/minitube-9999.ebuild b/media-video/minitube/minitube-9999.ebuild
index fd5b2aa..9ce2d5b 100644
--- a/media-video/minitube/minitube-9999.ebuild
+++ b/media-video/minitube/minitube-9999.ebuild
@@ -36,6 +36,22 @@ S=${WORKDIR}/${PN}
DOCS="AUTHORS CHANGES TODO"
+pkg_pretend() {
+ if [[ -z ${MINITUBE_GOOGLE_API_KEY} ]]; then
+ eerror ""
+ eerror "Since version 2.4, you need to generate a Google API Key to use"
+ eerror "with this application. Please head over to"
+ eerror "https://console.developers.google.com/ and"
+ eerror "https://github.com/flaviotordini/minitube/blob/master/README.md"
+ eerror "for more information. Once you have generated your key,"
+ eerror "please export it to your environment ie :"
+ eerror "'export MINITUBE_GOOGLE_API_KEY=\"YourAPIKeyHere\""
+ eerror "and then try to merge this package again"
+ eerror ""
+ die "MINITUBE_GOOGLE_API_KEY env variable not defined!"
+ fi
+}
+
src_prepare() {
qt4-r2_src_prepare
@@ -51,6 +67,7 @@ src_prepare() {
epatch "${FILESDIR}"/${PN}-1.9-gcc47.patch
# Enable video downloads. Bug #491344
use download && { echo "DEFINES += APP_DOWNLOADS" >> ${PN}.pro; }
+ echo "DEFINES += APP_GOOGLE_API_KEY=${MINITUBE_GOOGLE_API_KEY}" >> ${PN}.pro
}
src_install() {
next reply other threads:[~2015-05-23 16:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-23 16:51 Michael Palimaka [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-23 16:51 [gentoo-commits] proj/qt:master commit in: media-video/minitube/ Michael Palimaka
2014-12-31 13:06 Michael Palimaka
2013-11-19 19:39 Markos Chandras
2013-11-06 17:32 Markos Chandras
2012-11-18 10:20 Johannes Huber
2012-07-14 18:20 Michael Palimaka
2012-02-03 23:32 Johannes Huber
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=1432184965.a6509d27bb29af2860ff5fb304a35f6ca580cb37.kensington@gentoo \
--to=kensington@gentoo.org \
--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