Gentoo Archives: gentoo-commits

From: Kacper Kowalik <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-lang/path64/
Date: Fri, 29 Jul 2011 17:48:16
Message-Id: 0afb13a4feb8c5c7d511bfdc489cc6d92bb0ca1b.xarthisius@gentoo
1 commit: 0afb13a4feb8c5c7d511bfdc489cc6d92bb0ca1b
2 Author: Kacper Kowalik (Xarthisius) <xarthisius.kk <AT> gmail <DOT> com>
3 AuthorDate: Fri Jul 29 17:47:55 2011 +0000
4 Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 17:47:55 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=0afb13a4
7
8 [dev-lang/path64] move snapshot to g-x86
9
10 ---
11 dev-lang/path64/ChangeLog | 4 +
12 dev-lang/path64/path64-1.0.0_pre20110729.ebuild | 95 -----------------------
13 2 files changed, 4 insertions(+), 95 deletions(-)
14
15 diff --git a/dev-lang/path64/ChangeLog b/dev-lang/path64/ChangeLog
16 index 3cf389a..b462b71 100644
17 --- a/dev-lang/path64/ChangeLog
18 +++ b/dev-lang/path64/ChangeLog
19 @@ -3,6 +3,10 @@
20 # $Header: $
21
22 29 Jul 2011; Kacper Kowalik <xarthisius@g.o>
23 + -path64-1.0.0_pre20110729.ebuild:
24 + Moved to g-x86
25 +
26 + 29 Jul 2011; Kacper Kowalik <xarthisius@g.o>
27 path64-1.0.0_pre20110729.ebuild:
28 Fix SRC_URI for snapshot
29
30
31 diff --git a/dev-lang/path64/path64-1.0.0_pre20110729.ebuild b/dev-lang/path64/path64-1.0.0_pre20110729.ebuild
32 deleted file mode 100644
33 index 878fa44..0000000
34 --- a/dev-lang/path64/path64-1.0.0_pre20110729.ebuild
35 +++ /dev/null
36 @@ -1,95 +0,0 @@
37 -# Copyright 1999-2011 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -# $Header: $
40 -
41 -EAPI=4
42 -CMAKE_VERBOSE=1
43 -MY_MIRROR=http://dev.gentoo.org/~xarthisius/distfiles
44 -
45 -inherit cmake-utils multilib toolchain-funcs
46 -
47 -DESCRIPTION="Path64 Compiler Suite Community Edition"
48 -HOMEPAGE="http://www.pathscale.com/ekopath-compiler-suite"
49 -SRC_URI="${MY_MIRROR}/${PN}-suite-${PV}.tbz2
50 - ${MY_MIRROR}/${PN}-compiler-${PV}.tbz2
51 - assembler? ( ${MY_MIRROR}/${PN}-assembler-${PV}.tbz2 )
52 - debugger? ( ${MY_MIRROR}/${PN}-debugger-${PV}.tbz2 )"
53 -
54 -LICENSE="GPL-3"
55 -SLOT="0"
56 -KEYWORDS="~amd64"
57 -IUSE="assembler custom-cflags debugger fortran +native +openmp valgrind"
58 -
59 -DEPEND="!native? ( sys-devel/gcc[vanilla] )
60 - native? ( || ( dev-lang/ekopath dev-lang/path64 ) )
61 - valgrind? ( dev-util/valgrind )"
62 -RDEPEND="${DEPEND}"
63 -
64 -S=${WORKDIR}/${PN}
65 -
66 -pkg_setup() {
67 - if use custom-cflags ; then
68 - ewarn "You are trying to build ${PN} with custom-cflags"
69 - ewarn "There is a high chance that you will utterly fail!"
70 - ewarn "Unless you know what you are doing you'd better stop now"
71 - ewarn "Should you decide to proceed, you are on your own..."
72 - epause
73 - fi
74 -}
75 -
76 -src_prepare() {
77 - local ver=$(grep 'SET(PSC_FULL_VERSION' CMakeLists.txt | cut -d'"' -f2)
78 - cat > "98${PN}" <<-EOF
79 - PATH=/usr/$(get_libdir)/${PN}/bin
80 - ROOTPATH=/usr/$(get_libdir)/${PN}/bin
81 - LDPATH=/usr/$(get_libdir)/${PN}/lib:/usr/$(get_libdir)/${PN}/lib/${ver}/x8664/64
82 - EOF
83 - sed -i -e "s/-Wl,-s //" CMakeLists.txt || die #strip
84 -}
85 -
86 -src_configure() {
87 - local linker=$($(tc-getCC) --help -v 2>&1 >/dev/null | grep '\-dynamic\-linker' | cut -f7 -d' ')
88 - local libgcc=$($(tc-getCC) -print-libgcc-file-name)
89 - local crt=$($(tc-getCC) -print-file-name=crt1.o)
90 - use custom-cflags && flags=(
91 - -DCMAKE_C_FLAGS="${CFLAGS}"
92 - -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
93 - )
94 -
95 - # Yup, I know how bad it is, but I'd rather have a working compiler
96 - unset FC F90 F77 FCFLAGS F90FLAGS FFLAGS CFLAGS CXXFLAGS
97 -
98 - if use native ; then
99 - export CMAKE_BUILD_TYPE=Release
100 - export CC=pathcc
101 - export CXX=pathCC
102 - export MYCMAKEARGS="-UCMAKE_USER_MAKE_RULES_OVERRIDE"
103 - else
104 - export CMAKE_BUILD_TYPE=Debug
105 - fi
106 - mycmakeargs=(
107 - -DCMAKE_INSTALL_PREFIX=/usr/$(get_libdir)/${PN}
108 - -DPATH64_ENABLE_TARGETS="x86_64"
109 - -DPATH64_ENABLE_PROFILING=ON
110 - -DPATH64_ENABLE_MATHLIBS=ON
111 - -DPATH64_ENABLE_PATHOPT2=OFF
112 - $(cmake-utils_use assembler PATH64_ENABLE_PATHAS)
113 - $(cmake-utils_use assembler PATH64_ENABLE_DEFAULT_PATHAS)
114 - $(cmake-utils_use fortran PATH64_ENABLE_FORTRAN)
115 - $(cmake-utils_use openmp PATH64_ENABLE_OPENMP)
116 - $(cmake-utils_use debugger PATH64_ENABLE_PATHDB)
117 - $(cmake-utils_use valgrind PATH64_ENABLE_VALGRIND)
118 - -DPSC_CRT_PATH_x86_64=$(dirname ${crt})
119 - -DPSC_CRTBEGIN_PATH=$(dirname ${libgcc})
120 - -DPSC_DYNAMIC_LINKER_x86_64=${linker}
121 - -DCMAKE_C_COMPILER="$(tc-getCC)"
122 - -DCMAKE_CXX_COMPILER="$(tc-getCXX)"
123 - "${flags[@]}"
124 - )
125 - cmake-utils_src_configure
126 -}
127 -
128 -src_install() {
129 - cmake-utils_src_install
130 - doenvd "98${PN}"
131 -}