Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/path64: metadata.xml ChangeLog path64-1.0.0_pre20110729.ebuild
Date: Fri, 29 Jul 2011 17:40:59
Message-Id: 20110729174049.CC3A62004B@flycatcher.gentoo.org
1 xarthisius 11/07/29 17:40:49
2
3 Added: metadata.xml ChangeLog
4 path64-1.0.0_pre20110729.ebuild
5 Log:
6 Initial import, fixes bug 374739. Thanks to DaggyStyle <stompdagger1@×××××.com> for his work.
7
8 (Portage version: 2.2.0_alpha47/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 dev-lang/path64/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/path64/metadata.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/path64/metadata.xml?rev=1.1&content-type=text/plain
15
16 Index: metadata.xml
17 ===================================================================
18 <?xml version="1.0" encoding="UTF-8"?>
19 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
20 <pkgmetadata>
21 <herd>sci</herd>
22 <maintainer>
23 <email>xarthisius@g.o</email>
24 <name>Kacper Kowalik</name>
25 </maintainer>
26 <longdescription>
27 The PathScale EKOPath Compiler Suite offers programmers a rich set of tools and
28 one of the world's most sophisticated optimization infrastructures to maximize
29 program performance on any Intel 64 or AMD64 platform supporting Intel MMX,
30 SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AMD SSE4A and AVX.
31 </longdescription>
32 <use>
33 <flag name='assembler'>Build PathAS</flag>
34 <flag name='debugger'>Build PathDB</flag>
35 <flag name='native'>Use EKOPath/Path64 for bootstraping</flag>
36 <flag name='valgrind'>Use <pkg>dev-util/valgrind</pkg> for memory debbuging</flag>
37 </use>
38 </pkgmetadata>
39
40
41
42 1.1 dev-lang/path64/ChangeLog
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/path64/ChangeLog?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/path64/ChangeLog?rev=1.1&content-type=text/plain
46
47 Index: ChangeLog
48 ===================================================================
49 # ChangeLog for dev-lang/path64
50 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/path64/ChangeLog,v 1.1 2011/07/29 17:40:49 xarthisius Exp $
52
53 *path64-1.0.0_pre20110729 (29 Jul 2011)
54
55 29 Jul 2011; Kacper Kowalik <xarthisius@g.o>
56 +path64-1.0.0_pre20110729.ebuild, +metadata.xml:
57 Initial import, fixes bug 374739. Thanks to DaggyStyle
58 <stompdagger1@×××××.com> for his work.
59
60
61
62
63 1.1 dev-lang/path64/path64-1.0.0_pre20110729.ebuild
64
65 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/path64/path64-1.0.0_pre20110729.ebuild?rev=1.1&view=markup
66 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/path64/path64-1.0.0_pre20110729.ebuild?rev=1.1&content-type=text/plain
67
68 Index: path64-1.0.0_pre20110729.ebuild
69 ===================================================================
70 # Copyright 1999-2011 Gentoo Foundation
71 # Distributed under the terms of the GNU General Public License v2
72 # $Header: /var/cvsroot/gentoo-x86/dev-lang/path64/path64-1.0.0_pre20110729.ebuild,v 1.1 2011/07/29 17:40:49 xarthisius Exp $
73
74 EAPI=4
75 CMAKE_VERBOSE=1
76 MY_MIRROR=http://dev.gentoo.org/~xarthisius/distfiles
77
78 inherit cmake-utils multilib toolchain-funcs
79
80 DESCRIPTION="Path64 Compiler Suite Community Edition"
81 HOMEPAGE="http://www.pathscale.com/ekopath-compiler-suite"
82 SRC_URI="${MY_MIRROR}/${PN}-suite-${PV}.tbz2
83 ${MY_MIRROR}/${PN}-compiler-${PV}.tbz2
84 assembler? ( ${MY_MIRROR}/${PN}-assembler-${PV}.tbz2 )
85 debugger? ( ${MY_MIRROR}/${PN}-debugger-${PV}.tbz2 )"
86
87 LICENSE="GPL-3"
88 SLOT="0"
89 KEYWORDS="~amd64"
90 IUSE="assembler custom-cflags debugger fortran +native +openmp valgrind"
91
92 DEPEND="!native? ( sys-devel/gcc[vanilla] )
93 native? ( || ( dev-lang/ekopath dev-lang/path64 ) )
94 valgrind? ( dev-util/valgrind )"
95 RDEPEND="${DEPEND}"
96
97 S=${WORKDIR}/${PN}
98
99 pkg_setup() {
100 if use custom-cflags ; then
101 ewarn "You are trying to build ${PN} with custom-cflags"
102 ewarn "There is a high chance that you will utterly fail!"
103 ewarn "Unless you know what you are doing you'd better stop now"
104 ewarn "Should you decide to proceed, you are on your own..."
105 epause
106 fi
107 }
108
109 src_prepare() {
110 local ver=$(grep 'SET(PSC_FULL_VERSION' CMakeLists.txt | cut -d'"' -f2)
111 cat > "98${PN}" <<-EOF
112 PATH=/usr/$(get_libdir)/${PN}/bin
113 ROOTPATH=/usr/$(get_libdir)/${PN}/bin
114 LDPATH=/usr/$(get_libdir)/${PN}/lib:/usr/$(get_libdir)/${PN}/lib/${ver}/x8664/64
115 EOF
116 sed -i -e "s/-Wl,-s //" CMakeLists.txt || die #strip
117 }
118
119 src_configure() {
120 local linker=$($(tc-getCC) --help -v 2>&1 >/dev/null | grep '\-dynamic\-linker' | cut -f7 -d' ')
121 local libgcc=$($(tc-getCC) -print-libgcc-file-name)
122 local crt=$($(tc-getCC) -print-file-name=crt1.o)
123 use custom-cflags && flags=(
124 -DCMAKE_C_FLAGS="${CFLAGS}"
125 -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
126 )
127
128 # Yup, I know how bad it is, but I'd rather have a working compiler
129 unset FC F90 F77 FCFLAGS F90FLAGS FFLAGS CFLAGS CXXFLAGS
130
131 if use native ; then
132 export CMAKE_BUILD_TYPE=Release
133 export CC=pathcc
134 export CXX=pathCC
135 export MYCMAKEARGS="-UCMAKE_USER_MAKE_RULES_OVERRIDE"
136 else
137 export CMAKE_BUILD_TYPE=Debug
138 fi
139 mycmakeargs=(
140 -DCMAKE_INSTALL_PREFIX=/usr/$(get_libdir)/${PN}
141 -DPATH64_ENABLE_TARGETS="x86_64"
142 -DPATH64_ENABLE_PROFILING=ON
143 -DPATH64_ENABLE_MATHLIBS=ON
144 -DPATH64_ENABLE_PATHOPT2=OFF
145 $(cmake-utils_use assembler PATH64_ENABLE_PATHAS)
146 $(cmake-utils_use assembler PATH64_ENABLE_DEFAULT_PATHAS)
147 $(cmake-utils_use fortran PATH64_ENABLE_FORTRAN)
148 $(cmake-utils_use openmp PATH64_ENABLE_OPENMP)
149 $(cmake-utils_use debugger PATH64_ENABLE_PATHDB)
150 $(cmake-utils_use valgrind PATH64_ENABLE_VALGRIND)
151 -DPSC_CRT_PATH_x86_64=$(dirname ${crt})
152 -DPSC_CRTBEGIN_PATH=$(dirname ${libgcc})
153 -DPSC_DYNAMIC_LINKER_x86_64=${linker}
154 -DCMAKE_C_COMPILER="$(tc-getCC)"
155 -DCMAKE_CXX_COMPILER="$(tc-getCXX)"
156 "${flags[@]}"
157 )
158 cmake-utils_src_configure
159 }
160
161 src_install() {
162 cmake-utils_src_install
163 doenvd "98${PN}"
164 }