From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/ustr/
Date: Wed, 17 Feb 2016 18:42:36 +0000 (UTC) [thread overview]
Message-ID: <1455734546.a18c23fc46121edde7c4314bdf6a49b67daf424e.vapier@gentoo> (raw)
commit: a18c23fc46121edde7c4314bdf6a49b67daf424e
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 17 18:13:16 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Feb 17 18:42:26 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a18c23fc
dev-libs/ustr: unify emake calls
Also fix $EPREFIX usage in more paths, and respect CPPFLAGS settings.
dev-libs/ustr/ustr-1.0.4-r7.ebuild | 35 +++++++++++++----------------------
1 file changed, 13 insertions(+), 22 deletions(-)
diff --git a/dev-libs/ustr/ustr-1.0.4-r7.ebuild b/dev-libs/ustr/ustr-1.0.4-r7.ebuild
index d898008..eaf650b 100644
--- a/dev-libs/ustr/ustr-1.0.4-r7.ebuild
+++ b/dev-libs/ustr/ustr-1.0.4-r7.ebuild
@@ -26,38 +26,29 @@ src_prepare() {
multilib_copy_sources
}
-multilib_src_compile() {
+_emake() {
emake \
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
- CFLAGS="${CFLAGS}" \
+ CFLAGS="${CFLAGS} ${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
prefix="${EPREFIX}/usr" \
- SHRDIR="/usr/share/${P}" \
+ libdir="${EPREFIX}/usr/$(get_libdir)" \
+ mandir="${EPREFIX}/usr/share/man" \
+ SHRDIR="${EPREFIX}/usr/share/${P}" \
+ DOCSHRDIR="${EPREFIX}/usr/share/doc/${PF}" \
HIDE= \
- all-shared
+ "$@"
+}
+
+multilib_src_compile() {
+ _emake all-shared
}
multilib_src_install() {
- emake \
- DESTDIR="${D}" \
- prefix="${EPREFIX}/usr" \
- libdir="${EPREFIX}/usr/$(get_libdir)" \
- mandir="/usr/share/man" \
- SHRDIR="/usr/share/${P}" \
- DOCSHRDIR="/usr/share/doc/${PF}" \
- HIDE= \
- install
+ _emake DESTDIR="${D}" install
}
multilib_src_test() {
- emake \
- AR="$(tc-getAR)" \
- CC="$(tc-getCC)" \
- CFLAGS="${CFLAGS}" \
- LDFLAGS="${LDFLAGS}" \
- prefix="${EPREFIX}/usr" \
- SHRDIR="/usr/share/${P}" \
- HIDE= \
- check
+ _emake check
}
next reply other threads:[~2016-02-17 18:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 18:42 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-11-13 22:05 [gentoo-commits] repo/gentoo:master commit in: dev-libs/ustr/ Aaron Bauman
2020-11-13 21:31 Aaron Bauman
2020-11-13 21:31 Aaron Bauman
2020-11-13 21:31 Aaron Bauman
2020-11-13 21:31 Aaron Bauman
2020-08-24 17:45 Jonas Stein
2018-04-02 10:25 Jonas Stein
2018-04-02 10:25 Jonas Stein
2018-02-11 10:36 Michał Górny
2016-06-10 13:53 Agostino Sarubbo
2016-02-17 18:42 Mike Frysinger
2016-02-17 18:42 Mike Frysinger
2015-09-15 6:28 Ian Delaney
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=1455734546.a18c23fc46121edde7c4314bdf6a49b67daf424e.vapier@gentoo \
--to=vapier@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