From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/mrueg:master commit in: dev-python/pythondialog/
Date: Sat, 11 Jul 2015 15:00:03 +0000 (UTC) [thread overview]
Message-ID: <1436626795.8257273a38e0d26df95aa8f3e58e876b70c9fb2e.mrueg@gentoo> (raw)
commit: 8257273a38e0d26df95aa8f3e58e876b70c9fb2e
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 11 14:59:55 2015 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Sat Jul 11 14:59:55 2015 +0000
URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=8257273a
[dev-python/pythondialog] Improve ebuild style.
Package-Manager: portage-2.2.20
.../pythondialog/pythondialog-3.3.0-r1.ebuild | 42 ++++++++--------------
1 file changed, 15 insertions(+), 27 deletions(-)
diff --git a/dev-python/pythondialog/pythondialog-3.3.0-r1.ebuild b/dev-python/pythondialog/pythondialog-3.3.0-r1.ebuild
index e1f49ce..5effae6 100644
--- a/dev-python/pythondialog/pythondialog-3.3.0-r1.ebuild
+++ b/dev-python/pythondialog/pythondialog-3.3.0-r1.ebuild
@@ -25,48 +25,36 @@ src_prepare() {
preparation() {
if python_is_python3; then
cp -r -l "${WORKDIR}/${P}" "${BUILD_DIR}" || die
- pushd "${BUILD_DIR}" > /dev/null
else
cp -r -l "${WORKDIR}/python2-${P}" "${BUILD_DIR}" || die
- pushd "${BUILD_DIR}" > /dev/null
fi
+ pushd "${BUILD_DIR}" > /dev/null
sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die
popd > /dev/null
- distutils-r1_python_prepare
}
python_foreach_impl preparation
distutils-r1_python_prepare_all
}
-src_compile() {
- compile () {
+python_compile() {
if [[ -z $DOC_BUILT ]]; then
+ pushd "${BUILD_DIR}" > /dev/null || die
use doc && emake -C doc html
- export DOC_BUILT=1
+ DOC_BUILT=1
+ popd > /dev/null || die
fi
- distutils-r1_python_compile
- }
- python_foreach_impl run_in_build_dir compile
-}
-
-src_install() {
- install () {
- if [[ -z $EXAMPLES_INSTALLED ]]; then
- use examples && local EXAMPLES=( examples/. )
- export EXAMPLES_INSTALLED=1
- fi
- if [[ -z $DOCS_INSTALLED ]]; then
- use doc && local HTML_DOCS=( doc/_build/html/. )
- export DOCS_INSTALLED=1
- fi
- distutils-r1_python_install
- distutils-r1_python_install_all
- }
- python_foreach_impl run_in_build_dir install
}
-run_in_build_dir() {
+python_install() {
pushd "${BUILD_DIR}" > /dev/null || die
- "$@"
+ if [[ -z $EXAMPLES_INSTALLED ]]; then
+ use examples && local EXAMPLES=( examples/. )
+ EXAMPLES_INSTALLED=1
+ fi
+ if [[ -z $DOCS_INSTALLED ]]; then
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+ DOCS_INSTALLED=1
+ fi
+ distutils-r1_python_install_all
popd > /dev/null || die
}
next reply other threads:[~2015-07-11 15:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-11 15:00 Manuel Rüger [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-11-25 21:40 [gentoo-commits] dev/mrueg:master commit in: dev-python/pythondialog/ Manuel Rüger
2015-10-11 11:44 Manuel Rüger
2015-07-11 14:07 Manuel Rüger
2015-07-11 14:02 Manuel Rüger
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=1436626795.8257273a38e0d26df95aa8f3e58e876b70c9fb2e.mrueg@gentoo \
--to=mrueg@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