From: "Kacper Kowalik" <xarthisius@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-lang/path64/
Date: Wed, 20 Jul 2011 11:15:18 +0000 (UTC) [thread overview]
Message-ID: <4484bdc02d75b0b274ad3a98fc3f7800ba31f433.xarthisius@gentoo> (raw)
commit: 4484bdc02d75b0b274ad3a98fc3f7800ba31f433
Author: Kacper Kowalik (Xarthisius) <xarthisius.kk <AT> gmail <DOT> com>
AuthorDate: Wed Jul 20 11:15:05 2011 +0000
Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
CommitDate: Wed Jul 20 11:15:05 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4484bdc0
[dev-lang/path64] Add native use flag for release build
---
dev-lang/path64/ChangeLog | 3 ++
dev-lang/path64/path64-9999.ebuild | 39 +++++++++++++++++++++++------------
2 files changed, 28 insertions(+), 14 deletions(-)
diff --git a/dev-lang/path64/ChangeLog b/dev-lang/path64/ChangeLog
index 1f3b08c..26bcc43 100644
--- a/dev-lang/path64/ChangeLog
+++ b/dev-lang/path64/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 20 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> path64-9999.ebuild:
+ Add native use flag for release build
+
*path64-9999 (20 Jul 2011)
20 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> +path64-9999.ebuild,
diff --git a/dev-lang/path64/path64-9999.ebuild b/dev-lang/path64/path64-9999.ebuild
index 5c4f54a..7c2aaee 100644
--- a/dev-lang/path64/path64-9999.ebuild
+++ b/dev-lang/path64/path64-9999.ebuild
@@ -3,7 +3,6 @@
# $Header: $
EAPI=4
-CMAKE_BUILD_TYPE=Debug
CMAKE_VERBOSE=1
if [ "${PV%9999}" != "${PV}" ] ; then
SCM=git-2
@@ -27,11 +26,12 @@ fi
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS=""
-IUSE="custom-cflags"
+KEYWORDS="~amd64"
+IUSE="custom-cflags native"
#TODO: openmp, fortran flags
-DEPEND="sys-devel/gcc:4.2[vanilla]"
+DEPEND="sys-devel/gcc:4.2[vanilla]
+ native? ( || ( dev-lang/ekopath-bin dev-lang/path64 ) )"
RDEPEND="${DEPEND}"
pkg_setup() {
@@ -59,15 +59,26 @@ src_unpack() {
}
src_configure() {
- local MY_CFLAGS=""
- local MY_CXXFLAGS=""
+ local linker=$($(tc-getCC) --help -v 2>&1 >/dev/null | grep '\-dynamic\-linker' | cut -f7 -d' ')
+ local libgcc=$($(tc-getCC) -print-libgcc-file-name)
+ local crt=$($(tc-getCC) -print-file-name=crt1.o)
if use custom-cflags; then
MY_CFLAGS=${CFLAGS}
MY_CXXFLAGS=${CXXFLAGS}
fi
- local linker=$($(tc-getCC) --help -v 2>&1 >/dev/null | grep '\-dynamic\-linker' | cut -f7 -d' ')
- local libgcc=$($(tc-getCC) -print-libgcc-file-name)
- local crt=$($(tc-getCC) -print-file-name=crt1.o)
+
+ if use native ; then
+ export CMAKE_BUILD_TYPE=Release
+ export CC=pathcc
+ export CXX=pathCC
+ export MYCMAKEARGS="-UCMAKE_USER_MAKE_RULES_OVERRIDE"
+ if use amd64 ; then
+ MY_CFLAGS="${MY_CFLAGS} -fPIC"
+ MY_CXXFLAGS="${MY_CXXFLAGS} -fPIC"
+ fi
+ else
+ export CMAKE_BUILD_TYPE=Debug
+ fi
mycmakeargs=(
-DPATH64_ENABLE_TARGETS="x86_64"
-DPATH64_ENABLE_PROFILING=ON
@@ -78,11 +89,11 @@ src_configure() {
-DPSC_CRT_PATH_x86_64=$(dirname ${crt})
-DPSC_CRTBEGIN_PATH=$(dirname ${libgcc})
-DPSC_DYNAMIC_LINKER_x86_64=${linker}
- -DCMAKE_Fortran_COMPILER=$(tc-getFC)
- -DCMAKE_C_COMPILER=$(tc-getCC)
- -DCMAKE_C_FLAGS=${MY_CFLAGS}
- -DCMAKE_CXX_COMPILER=$(tc-getCXX)
- -DCMAKE_CXX_FLAGS=${MY_CXXFLAGS}
+ -DCMAKE_Fortran_COMPILER="$(tc-getFC)"
+ -DCMAKE_C_COMPILER="$(tc-getCC)"
+ -DCMAKE_C_FLAGS="${MY_CFLAGS}"
+ -DCMAKE_CXX_COMPILER="$(tc-getCXX)"
+ -DCMAKE_CXX_FLAGS="${MY_CFLAGS}"
)
cmake-utils_src_configure
}
next reply other threads:[~2011-07-20 11:15 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 11:15 Kacper Kowalik [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-01-29 14:20 [gentoo-commits] proj/sci:master commit in: dev-lang/path64/ Justin Lecher
2014-01-06 19:27 Justin Lecher
2013-06-14 11:21 [gentoo-commits] proj/sci:fixing " Justin Lecher
2013-06-14 11:21 ` [gentoo-commits] proj/sci:master " Justin Lecher
2012-05-23 20:18 Kacper Kowalik
2012-05-23 19:56 Kacper Kowalik
2012-02-27 11:36 Kacper Kowalik
2012-02-25 19:44 Kacper Kowalik
2011-10-24 19:12 Justin Lecher
2011-08-15 13:39 Kacper Kowalik
2011-07-29 17:48 Kacper Kowalik
2011-07-29 7:51 Kacper Kowalik
2011-07-29 7:46 Kacper Kowalik
2011-07-27 9:48 Kacper Kowalik
2011-07-25 19:48 Kacper Kowalik
2011-07-25 19:40 Kacper Kowalik
2011-07-25 8:34 Kacper Kowalik
2011-07-23 12:31 Kacper Kowalik
2011-07-23 11:57 Kacper Kowalik
2011-07-23 11:55 Kacper Kowalik
2011-07-23 11:27 Kacper Kowalik
2011-07-23 10:07 Kacper Kowalik
2011-07-23 7:32 Kacper Kowalik
2011-07-20 11:41 Kacper Kowalik
2011-07-20 8:56 Kacper Kowalik
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=4484bdc02d75b0b274ad3a98fc3f7800ba31f433.xarthisius@gentoo \
--to=xarthisius@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