diff options
author | Kacper Kowalik (Xarthisius) <xarthisius.kk@gmail.com> | 2011-07-20 10:56:34 +0200 |
---|---|---|
committer | Kacper Kowalik (Xarthisius) <xarthisius.kk@gmail.com> | 2011-07-20 10:56:34 +0200 |
commit | 99955d6606411904bc2ce7bee9a4169bf5c61451 (patch) | |
tree | 4595ce3c9f00e429b43d1b150286effed1b2626b /dev-lang/path64 | |
parent | [sci-chemistry/gromacs] sync with tree (diff) | |
download | sci-99955d6606411904bc2ce7bee9a4169bf5c61451.tar.gz sci-99955d6606411904bc2ce7bee9a4169bf5c61451.tar.bz2 sci-99955d6606411904bc2ce7bee9a4169bf5c61451.zip |
[dev-lang/path64] Initial import, only debug version (compiled with gcc) is working now
Diffstat (limited to 'dev-lang/path64')
-rw-r--r-- | dev-lang/path64/ChangeLog | 10 | ||||
-rw-r--r-- | dev-lang/path64/Manifest | 3 | ||||
-rw-r--r-- | dev-lang/path64/metadata.xml | 15 | ||||
-rw-r--r-- | dev-lang/path64/path64-9999.ebuild | 88 |
4 files changed, 116 insertions, 0 deletions
diff --git a/dev-lang/path64/ChangeLog b/dev-lang/path64/ChangeLog new file mode 100644 index 000000000..1f3b08c79 --- /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 <xarthisius@gentoo.org> +path64-9999.ebuild, + +metadata.xml: + Initial import, only debug version (compiled with gcc) is working now + diff --git a/dev-lang/path64/Manifest b/dev-lang/path64/Manifest new file mode 100644 index 000000000..0fbe3e393 --- /dev/null +++ b/dev-lang/path64/Manifest @@ -0,0 +1,3 @@ +EBUILD path64-9999.ebuild 2523 RMD160 028d4da2a24a9c3688eb8d32163ba9fec66fb660 SHA1 4eab888163e206be0a3945ca4aef1eb8e5dae345 SHA256 275be6c68b8e8d3adbb47681512ca88ff66649662ad04bb126d920ba3a5317dc +MISC ChangeLog 309 RMD160 febcb0789e053fe0e11588ed49665c46c4430f47 SHA1 f787f6700dc81d5416278d106be47e97759d4406 SHA256 0c08e17854b9d32b381fa2fc1a68b99b506b5c5608dce50f2e51ae59599e833a +MISC metadata.xml 599 RMD160 db4dbce6755b718f4fd34ced77c3e43c3ac49b29 SHA1 254eeaee0fdfe85349ba117190697731991f3e4a SHA256 297871a74cf9d537062c154ce333137ebda79d9a404e4329cfb504bcf5b5c62d diff --git a/dev-lang/path64/metadata.xml b/dev-lang/path64/metadata.xml new file mode 100644 index 000000000..2b845df28 --- /dev/null +++ b/dev-lang/path64/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>xarthisius@gentoo.org</email> + <name>Kacper Kowalik</name> + </maintainer> + <longdescription> + The PathScale EKOPath Compiler Suite offers programmers a rich set of tools and + one of the world's most sophisticated optimization infrastructures to maximize + program performance on any Intel 64 or AMD64 platform supporting Intel MMX, + SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AMD SSE4A and AVX. + </longdescription> +</pkgmetadata> diff --git a/dev-lang/path64/path64-9999.ebuild b/dev-lang/path64/path64-9999.ebuild new file mode 100644 index 000000000..5c4f54a83 --- /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=4 +CMAKE_BUILD_TYPE=Debug +CMAKE_VERBOSE=1 +if [ "${PV%9999}" != "${PV}" ] ; then + SCM=git-2 + EGIT_REPO_URI="git://github.com/pathscale/${PN}-suite.git" + EGIT_HAS_SUBMODULES=yes + PATH64_URI="compiler assembler" + PATHSCALE_URI="compiler-rt libcxxrt libdwarf-bsd libunwind stdcxx" + DBG_URI="git://github.com/path64/debugger.git" + +fi + +inherit cmake-utils ${SCM} multilib toolchain-funcs + +DESCRIPTION="PathScale EKOPath Compiler Suite" +HOMEPAGE="http://www.pathscale.com/ekopath-compiler-suite" +if [ "${PV%9999}" != "${PV}" ] ; then + SRC_URI="" +else + SRC_URI="" # for tarballs +fi + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="custom-cflags" +#TODO: openmp, fortran flags + +DEPEND="sys-devel/gcc:4.2[vanilla]" +RDEPEND="${DEPEND}" + +pkg_setup() { + [[ $(gcc-version) != 4.2 ]] && \ + die "To bootstrap Path64 you'll need to use gcc:4.2[vanilla]" + export GCC42_PATH=$($(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="git://github.com/${PN}/${f}.git" \ + EGIT_DIR="${EGIT_STORE_DIR}/compiler/${f}" \ + EGIT_SOURCEDIR="${WORKDIR}/${P}/compiler/${f}" git-2_src_unpack + done + for f in ${PATHSCALE_URI}; do + EGIT_REPO_URI="git://github.com/pathscale/${f}.git" \ + EGIT_DIR="${EGIT_STORE_DIR}/compiler/${f}" \ + EGIT_SOURCEDIR="${WORKDIR}/${P}/compiler/${f}" git-2_src_unpack + done + EGIT_REPO_URI=${DBG_URI} EGIT_DIR="${EGIT_STORE_DIR}/compiler/pathdb" \ + EGIT_SOURCEDIR="${WORKDIR}/${P}/compiler/pathdb" git-2_src_unpack +} + +src_configure() { + local MY_CFLAGS="" + local MY_CXXFLAGS="" + 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) + mycmakeargs=( + -DPATH64_ENABLE_TARGETS="x86_64" + -DPATH64_ENABLE_PROFILING=ON + -DPATH64_ENABLE_FORTRAN=ON + -DPATH64_ENABLE_MATHLIBS=ON + -DPATH64_ENABLE_OPENMP=ON + -DPATH64_ENABLE_PATHOPT2=OFF + -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} + ) + cmake-utils_src_configure +} |