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 1QjSaI-00053m-4R for garchives@archives.gentoo.org; Wed, 20 Jul 2011 08:56:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D242621C24A; Wed, 20 Jul 2011 08:56:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 96AAC21C24A for ; Wed, 20 Jul 2011 08:56:42 +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 057E92AC08C for ; Wed, 20 Jul 2011 08:56:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 33C758003D for ; Wed, 20 Jul 2011 08:56:41 +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: <99955d6606411904bc2ce7bee9a4169bf5c61451.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/metadata.xml 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: 99955d6606411904bc2ce7bee9a4169bf5c61451 Date: Wed, 20 Jul 2011 08:56:41 +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: c214a510f31392e2f751196ac103745f commit: 99955d6606411904bc2ce7bee9a4169bf5c61451 Author: Kacper Kowalik (Xarthisius) gmail c= om> AuthorDate: Wed Jul 20 08:56:34 2011 +0000 Commit: Kacper Kowalik gentoo org> CommitDate: Wed Jul 20 08:56:34 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D99955d66 [dev-lang/path64] Initial import, only debug version (compiled with gcc) = is working now --- dev-lang/path64/ChangeLog | 10 ++++ dev-lang/path64/metadata.xml | 15 ++++++ dev-lang/path64/path64-9999.ebuild | 88 ++++++++++++++++++++++++++++++= ++++++ 3 files changed, 113 insertions(+), 0 deletions(-) diff --git a/dev-lang/path64/ChangeLog b/dev-lang/path64/ChangeLog new file mode 100644 index 0000000..1f3b08c --- /dev/null +++ b/dev-lang/path64/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-lang/path64 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*path64-9999 (20 Jul 2011) + + 20 Jul 2011; Kacper Kowalik +path64-9999.ebuil= d, + +metadata.xml: + Initial import, only debug version (compiled with gcc) is working now + diff --git a/dev-lang/path64/metadata.xml b/dev-lang/path64/metadata.xml new file mode 100644 index 0000000..2b845df --- /dev/null +++ b/dev-lang/path64/metadata.xml @@ -0,0 +1,15 @@ + + + + no-herd + + xarthisius@gentoo.org + Kacper Kowalik + + + The PathScale EKOPath Compiler Suite offers programmers a rich set of t= ools and=20 + one of the world's most sophisticated optimization infrastructures to m= aximize=20 + program performance on any Intel 64 or AMD64 platform supporting Intel = MMX,=20 + SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AMD SSE4A and AVX. + + diff --git a/dev-lang/path64/path64-9999.ebuild b/dev-lang/path64/path64-= 9999.ebuild new file mode 100644 index 0000000..5c4f54a --- /dev/null +++ b/dev-lang/path64/path64-9999.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D4 +CMAKE_BUILD_TYPE=3DDebug +CMAKE_VERBOSE=3D1 +if [ "${PV%9999}" !=3D "${PV}" ] ; then + SCM=3Dgit-2 + EGIT_REPO_URI=3D"git://github.com/pathscale/${PN}-suite.git" + EGIT_HAS_SUBMODULES=3Dyes + PATH64_URI=3D"compiler assembler" + PATHSCALE_URI=3D"compiler-rt libcxxrt libdwarf-bsd libunwind stdcxx" + DBG_URI=3D"git://github.com/path64/debugger.git" + +fi + +inherit cmake-utils ${SCM} multilib toolchain-funcs + +DESCRIPTION=3D"PathScale EKOPath Compiler Suite" +HOMEPAGE=3D"http://www.pathscale.com/ekopath-compiler-suite" +if [ "${PV%9999}" !=3D "${PV}" ] ; then + SRC_URI=3D"" +else + SRC_URI=3D"" # for tarballs +fi + +LICENSE=3D"GPL-3" +SLOT=3D"0" +KEYWORDS=3D"" +IUSE=3D"custom-cflags" +#TODO: openmp, fortran flags + +DEPEND=3D"sys-devel/gcc:4.2[vanilla]" +RDEPEND=3D"${DEPEND}" + +pkg_setup() { + [[ $(gcc-version) !=3D 4.2 ]] && \ + die "To bootstrap Path64 you'll need to use gcc:4.2[vanilla]" + export GCC42_PATH=3D$($(tc-getCC) -print-search-dirs | head -n 1 | cut = -f2- -d' ') +} + +src_unpack() { + git-2_src_unpack + cd "${S}" + mkdir compiler + for f in ${PATH64_URI}; do + EGIT_REPO_URI=3D"git://github.com/${PN}/${f}.git" \ + EGIT_DIR=3D"${EGIT_STORE_DIR}/compiler/${f}" \ + EGIT_SOURCEDIR=3D"${WORKDIR}/${P}/compiler/${f}" git-2_src_unpack + done + for f in ${PATHSCALE_URI}; do + EGIT_REPO_URI=3D"git://github.com/pathscale/${f}.git" \ + EGIT_DIR=3D"${EGIT_STORE_DIR}/compiler/${f}" \ + EGIT_SOURCEDIR=3D"${WORKDIR}/${P}/compiler/${f}" git-2_src_unpack + done + EGIT_REPO_URI=3D${DBG_URI} EGIT_DIR=3D"${EGIT_STORE_DIR}/compiler/pathd= b" \ + EGIT_SOURCEDIR=3D"${WORKDIR}/${P}/compiler/pathdb" git-2_src_unpack +} + +src_configure() { + local MY_CFLAGS=3D"" + local MY_CXXFLAGS=3D"" + 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) + mycmakeargs=3D( + -DPATH64_ENABLE_TARGETS=3D"x86_64" + -DPATH64_ENABLE_PROFILING=3DON + -DPATH64_ENABLE_FORTRAN=3DON + -DPATH64_ENABLE_MATHLIBS=3DON + -DPATH64_ENABLE_OPENMP=3DON + -DPATH64_ENABLE_PATHOPT2=3DOFF + -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} + ) + cmake-utils_src_configure +}