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 1Qmhmn-0005TN-BE for garchives@archives.gentoo.org; Fri, 29 Jul 2011 07:47:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9DCFD21C0B4; Fri, 29 Jul 2011 07:47:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5FF4A21C0B4 for ; Fri, 29 Jul 2011 07:47:01 +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 D7F381B4016 for ; Fri, 29 Jul 2011 07:47:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 000978003D for ; Fri, 29 Jul 2011 07:46:59 +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: 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-1.0.0_pre20110729.ebuild X-VCS-Directories: dev-lang/path64/ X-VCS-Committer: xarthisius X-VCS-Committer-Name: Kacper Kowalik X-VCS-Revision: d5fb1a1ad1dd9e2540e898568a2558e69751a12a Date: Fri, 29 Jul 2011 07:46:59 +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: 9b87333d3de86ba19f7a6b7ee4ce5f14 commit: d5fb1a1ad1dd9e2540e898568a2558e69751a12a Author: Kacper Kowalik (Xarthisius) gmail c= om> AuthorDate: Fri Jul 29 07:46:54 2011 +0000 Commit: Kacper Kowalik gentoo org> CommitDate: Fri Jul 29 07:46:54 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3Dd5fb1a1a [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: $ =20 +*path64-1.0.0_pre20110729 (29 Jul 2011) + + 29 Jul 2011; Kacper Kowalik + +path64-1.0.0_pre20110729.ebuild: + Add snapshot + 27 Jul 2011; Kacper Kowalik path64-9999.ebuild= : Add missing LDPATH to env file =20 diff --git a/dev-lang/path64/path64-1.0.0_pre20110729.ebuild b/dev-lang/p= ath64/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=3D4 +CMAKE_VERBOSE=3D1 + +inherit cmake-utils multilib toolchain-funcs + +DESCRIPTION=3D"Path64 Compiler Suite Community Edition" +HOMEPAGE=3D"http://www.pathscale.com/ekopath-compiler-suite" +SRC_URI=3D"http://dev.gentoo.org/~xarthisius/${PN}-suite-${PV}.tbz2=20 + 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}.tb= z2 )" + +LICENSE=3D"GPL-3" +SLOT=3D"0" +KEYWORDS=3D"~amd64" +IUSE=3D"assembler custom-cflags debugger fortran +native +openmp valgrin= d" + +DEPEND=3D"!native? ( sys-devel/gcc[vanilla] ) + native? ( || ( dev-lang/ekopath dev-lang/path64 ) ) + valgrind? ( dev-util/valgrind )" +RDEPEND=3D"${DEPEND}" + +S=3D${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=3D$(grep 'SET(PSC_FULL_VERSION' CMakeLists.txt | cut -d'"' -f= 2) + cat > "98${PN}" <<-EOF + PATH=3D/usr/$(get_libdir)/${PN}/bin + ROOTPATH=3D/usr/$(get_libdir)/${PN}/bin + LDPATH=3D/usr/$(get_libdir)/${PN}/lib:/usr/$(get_libdir)/${PN}/lib/${v= er}/x8664/64 + EOF + sed -i -e "s/-Wl,-s //" CMakeLists.txt || die #strip +} + +src_configure() { + 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) + use custom-cflags && flags=3D( + -DCMAKE_C_FLAGS=3D"${CFLAGS}" + -DCMAKE_CXX_FLAGS=3D"${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=3DRelease + export CC=3Dpathcc + export CXX=3DpathCC + export MYCMAKEARGS=3D"-UCMAKE_USER_MAKE_RULES_OVERRIDE" + else + export CMAKE_BUILD_TYPE=3DDebug + fi + mycmakeargs=3D( + -DCMAKE_INSTALL_PREFIX=3D/usr/$(get_libdir)/${PN} + -DPATH64_ENABLE_TARGETS=3D"x86_64" + -DPATH64_ENABLE_PROFILING=3DON + -DPATH64_ENABLE_MATHLIBS=3DON + -DPATH64_ENABLE_PATHOPT2=3DOFF + $(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=3D$(dirname ${crt}) + -DPSC_CRTBEGIN_PATH=3D$(dirname ${libgcc}) + -DPSC_DYNAMIC_LINKER_x86_64=3D${linker} + -DCMAKE_C_COMPILER=3D"$(tc-getCC)" + -DCMAKE_CXX_COMPILER=3D"$(tc-getCXX)" + "${flags[@]}" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + doenvd "98${PN}" +}