From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QjUkS-0000BK-Ma for garchives@archives.gentoo.org; Wed, 20 Jul 2011 11:15:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69A9021C047; Wed, 20 Jul 2011 11:15:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2A11E21C047 for ; Wed, 20 Jul 2011 11:15:20 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A28B72AC064 for ; Wed, 20 Jul 2011 11:15:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CBFAE8003D for ; Wed, 20 Jul 2011 11:15:18 +0000 (UTC) From: "Kacper Kowalik" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kacper Kowalik" Message-ID: <4484bdc02d75b0b274ad3a98fc3f7800ba31f433.xarthisius@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-lang/path64/ X-VCS-Repository: proj/sci X-VCS-Files: dev-lang/path64/ChangeLog dev-lang/path64/path64-9999.ebuild X-VCS-Directories: dev-lang/path64/ X-VCS-Committer: xarthisius X-VCS-Committer-Name: Kacper Kowalik X-VCS-Revision: 4484bdc02d75b0b274ad3a98fc3f7800ba31f433 Date: Wed, 20 Jul 2011 11:15:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e2a23ea61ad6b9a05cccbe70db3c7f2c commit: 4484bdc02d75b0b274ad3a98fc3f7800ba31f433 Author: Kacper Kowalik (Xarthisius) gmail c= om> AuthorDate: Wed Jul 20 11:15:05 2011 +0000 Commit: Kacper Kowalik gentoo org> CommitDate: Wed Jul 20 11:15:05 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D4484bdc0 [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 + 20 Jul 2011; Kacper Kowalik path64-9999.ebuild= : + Add native use flag for release build + *path64-9999 (20 Jul 2011) =20 20 Jul 2011; Kacper Kowalik +path64-9999.ebuil= d, 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: $ =20 EAPI=3D4 -CMAKE_BUILD_TYPE=3DDebug CMAKE_VERBOSE=3D1 if [ "${PV%9999}" !=3D "${PV}" ] ; then SCM=3Dgit-2 @@ -27,11 +26,12 @@ fi =20 LICENSE=3D"GPL-3" SLOT=3D"0" -KEYWORDS=3D"" -IUSE=3D"custom-cflags" +KEYWORDS=3D"~amd64" +IUSE=3D"custom-cflags native" #TODO: openmp, fortran flags =20 -DEPEND=3D"sys-devel/gcc:4.2[vanilla]" +DEPEND=3D"sys-devel/gcc:4.2[vanilla] + native? ( || ( dev-lang/ekopath-bin dev-lang/path64 ) )" RDEPEND=3D"${DEPEND}" =20 pkg_setup() { @@ -59,15 +59,26 @@ src_unpack() { } =20 src_configure() { - local MY_CFLAGS=3D"" - local MY_CXXFLAGS=3D"" + local linker=3D$($(tc-getCC) --help -v 2>&1 >/dev/null | grep '\-dynami= c\-linker' | cut -f7 -d' ') + local libgcc=3D$($(tc-getCC) -print-libgcc-file-name) + local crt=3D$($(tc-getCC) -print-file-name=3Dcrt1.o) if use custom-cflags; then MY_CFLAGS=3D${CFLAGS} MY_CXXFLAGS=3D${CXXFLAGS} fi - local linker=3D$($(tc-getCC) --help -v 2>&1 >/dev/null | grep '\-dynami= c\-linker' | cut -f7 -d' ') - local libgcc=3D$($(tc-getCC) -print-libgcc-file-name) - local crt=3D$($(tc-getCC) -print-file-name=3Dcrt1.o) + + if use native ; then + export CMAKE_BUILD_TYPE=3DRelease + export CC=3Dpathcc + export CXX=3DpathCC + export MYCMAKEARGS=3D"-UCMAKE_USER_MAKE_RULES_OVERRIDE" + if use amd64 ; then + MY_CFLAGS=3D"${MY_CFLAGS} -fPIC" + MY_CXXFLAGS=3D"${MY_CXXFLAGS} -fPIC" + fi + else + export CMAKE_BUILD_TYPE=3DDebug + fi mycmakeargs=3D( -DPATH64_ENABLE_TARGETS=3D"x86_64" -DPATH64_ENABLE_PROFILING=3DON @@ -78,11 +89,11 @@ src_configure() { -DPSC_CRT_PATH_x86_64=3D$(dirname ${crt}) -DPSC_CRTBEGIN_PATH=3D$(dirname ${libgcc}) -DPSC_DYNAMIC_LINKER_x86_64=3D${linker} - -DCMAKE_Fortran_COMPILER=3D$(tc-getFC) - -DCMAKE_C_COMPILER=3D$(tc-getCC) - -DCMAKE_C_FLAGS=3D${MY_CFLAGS} - -DCMAKE_CXX_COMPILER=3D$(tc-getCXX) - -DCMAKE_CXX_FLAGS=3D${MY_CXXFLAGS} + -DCMAKE_Fortran_COMPILER=3D"$(tc-getFC)" + -DCMAKE_C_COMPILER=3D"$(tc-getCC)" + -DCMAKE_C_FLAGS=3D"${MY_CFLAGS}" + -DCMAKE_CXX_COMPILER=3D"$(tc-getCXX)" + -DCMAKE_CXX_FLAGS=3D"${MY_CFLAGS}" ) cmake-utils_src_configure }