public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Kacper Kowalik" <xarthisius@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-lang/path64/
Date: Fri, 29 Jul 2011 07:46:59 +0000 (UTC)	[thread overview]
Message-ID: <d5fb1a1ad1dd9e2540e898568a2558e69751a12a.xarthisius@gentoo> (raw)

commit:     d5fb1a1ad1dd9e2540e898568a2558e69751a12a
Author:     Kacper Kowalik (Xarthisius) <xarthisius.kk <AT> gmail <DOT> com>
AuthorDate: Fri Jul 29 07:46:54 2011 +0000
Commit:     Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
CommitDate: Fri Jul 29 07:46:54 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=d5fb1a1a

[dev-lang/path64] Add snapshot

---
 dev-lang/path64/ChangeLog                       |    6 ++
 dev-lang/path64/path64-1.0.0_pre20110729.ebuild |   94 +++++++++++++++++++++++
 2 files changed, 100 insertions(+), 0 deletions(-)

diff --git a/dev-lang/path64/ChangeLog b/dev-lang/path64/ChangeLog
index 7575956..0a811f8 100644
--- a/dev-lang/path64/ChangeLog
+++ b/dev-lang/path64/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*path64-1.0.0_pre20110729 (29 Jul 2011)
+
+  29 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org>
+  +path64-1.0.0_pre20110729.ebuild:
+  Add snapshot
+
   27 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> path64-9999.ebuild:
   Add missing LDPATH to env file
 

diff --git a/dev-lang/path64/path64-1.0.0_pre20110729.ebuild b/dev-lang/path64/path64-1.0.0_pre20110729.ebuild
new file mode 100644
index 0000000..3d784cc
--- /dev/null
+++ b/dev-lang/path64/path64-1.0.0_pre20110729.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+CMAKE_VERBOSE=1
+
+inherit cmake-utils multilib toolchain-funcs
+
+DESCRIPTION="Path64 Compiler Suite Community Edition"
+HOMEPAGE="http://www.pathscale.com/ekopath-compiler-suite"
+SRC_URI="http://dev.gentoo.org/~xarthisius/${PN}-suite-${PV}.tbz2 
+   http://dev.gentoo.org/~xarthisius/${PN}-compiler-${PV}.tbz2
+   assembler? ( http://dev.gentoo.org/~xarthisius/${PN}-assembler-${PV}.tbz2 )
+   debugger? ( http://dev.gentoo.org/~xarthisius/${PN}-debugger-${PV}.tbz2 )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="assembler custom-cflags debugger fortran +native +openmp valgrind"
+
+DEPEND="!native? ( sys-devel/gcc[vanilla] )
+	native? ( || ( dev-lang/ekopath dev-lang/path64 ) )
+	valgrind? ( dev-util/valgrind )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+	if use custom-cflags ; then
+		ewarn "You are trying to build ${PN} with custom-cflags"
+		ewarn "There is a high chance that you will utterly fail!"
+		ewarn "Unless you know what you are doing you'd better stop now"
+		ewarn "Should you decide to proceed, you are on your own..."
+		epause
+	fi
+}
+
+src_prepare() {
+	local ver=$(grep 'SET(PSC_FULL_VERSION' CMakeLists.txt | cut -d'"' -f2)
+	cat > "98${PN}" <<-EOF
+		PATH=/usr/$(get_libdir)/${PN}/bin
+		ROOTPATH=/usr/$(get_libdir)/${PN}/bin
+		LDPATH=/usr/$(get_libdir)/${PN}/lib:/usr/$(get_libdir)/${PN}/lib/${ver}/x8664/64
+	EOF
+	sed -i -e "s/-Wl,-s //" CMakeLists.txt || die #strip
+}
+
+src_configure() {
+	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)
+	use custom-cflags && flags=(
+			-DCMAKE_C_FLAGS="${CFLAGS}"
+			-DCMAKE_CXX_FLAGS="${CXXFLAGS}"
+		)
+
+	# Yup, I know how bad it is, but I'd rather have a working compiler
+	unset FC F90 F77 FCFLAGS F90FLAGS FFLAGS CFLAGS CXXFLAGS
+
+	if use native ; then
+		export CMAKE_BUILD_TYPE=Release
+		export CC=pathcc
+		export CXX=pathCC
+		export MYCMAKEARGS="-UCMAKE_USER_MAKE_RULES_OVERRIDE"
+	else
+		export CMAKE_BUILD_TYPE=Debug
+	fi
+	mycmakeargs=(
+		-DCMAKE_INSTALL_PREFIX=/usr/$(get_libdir)/${PN}
+		-DPATH64_ENABLE_TARGETS="x86_64"
+		-DPATH64_ENABLE_PROFILING=ON
+		-DPATH64_ENABLE_MATHLIBS=ON
+		-DPATH64_ENABLE_PATHOPT2=OFF
+		$(cmake-utils_use assembler PATH64_ENABLE_PATHAS)
+		$(cmake-utils_use assembler PATH64_ENABLE_DEFAULT_PATHAS)
+		$(cmake-utils_use fortran PATH64_ENABLE_FORTRAN)
+		$(cmake-utils_use openmp PATH64_ENABLE_OPENMP)
+		$(cmake-utils_use debugger PATH64_ENABLE_PATHDB)
+		$(cmake-utils_use valgrind PATH64_ENABLE_VALGRIND)
+		-DPSC_CRT_PATH_x86_64=$(dirname ${crt})
+		-DPSC_CRTBEGIN_PATH=$(dirname ${libgcc})
+		-DPSC_DYNAMIC_LINKER_x86_64=${linker}
+		-DCMAKE_C_COMPILER="$(tc-getCC)"
+		-DCMAKE_CXX_COMPILER="$(tc-getCXX)"
+		"${flags[@]}"
+	)
+	cmake-utils_src_configure
+}
+
+src_install() {
+	cmake-utils_src_install
+	doenvd "98${PN}"
+}



             reply	other threads:[~2011-07-29  7:47 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-29  7:46 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-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 11:15 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=d5fb1a1ad1dd9e2540e898568a2558e69751a12a.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