Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 280479 Details for
Bug 374739
dev-lang/path64-9999: new ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
path64-suite-9999.ebuild, updated ebuild, no need to change cmakeutils.
path64-suite-9999.ebuild (text/plain), 4.87 KB, created by
DaggyStyle
on 2011-07-20 17:47:18 UTC
(
hide
)
Description:
path64-suite-9999.ebuild, updated ebuild, no need to change cmakeutils.
Filename:
MIME Type:
Creator:
DaggyStyle
Created:
2011-07-20 17:47:18 UTC
Size:
4.87 KB
patch
obsolete
># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=4 >CMAKE_VERBOSE=1 > >if [ "${PV%9999}" != "${PV}" ] ; then > SCM=git-2 > EGIT_REPO_URI="git://github.com/pathscale/path64-suite.git" > EGIT_REPO_URI_LIST="git://github.com/path64/compiler.git git://github.com/pathscale/compiler-rt.git git://github.com/path64/assembler.git git://github.com/pathscale/libcxxrt.git git://github.com/pathscale/libdwarf-bsd.git git://github.com/pathscale/libunwind.git git://github.com/pathscale/stdcxx.git git://github.com/path64/debugger.git" >fi > >inherit cmake-utils ${SCM} multilib toolchain-funcs > >DESCRIPTION="PathScale Path64 Compiler Suite" >HOMEPAGE="http://www.path64.org/pathscale/" > >LICENSE="GPL-3" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="+assembler debugger fortran +mathlibs +native +openmp pathopt2 +profiling valgrind" > >DEPEND="!native? ( sys-devel/gcc:4.2[vanilla] ) > native? ( || ( dev-lang/ekopath-bin sys-devel/path64-suite ) > sys-libs/glibc > ) > valgrind? ( dev-util/valgrind ) " > >RDEPEND="${DEPEND}" > >pkg_setup() { > export COMPILER_PATH="" > if use native; then > export CMAKE_BUILD_TYPE="Release" > export MYCMAKEARGS="-UCMAKE_USER_MAKE_RULES_OVERRIDE" > if has_version sys-devel/path64-suite; then > COMPILER_NAME="path64" > export COMPILER_PATH="/usr/bin/" > else > COMPILER_NAME="ekopath-bin" > export COMPILER_PATH="$(cat /etc/env.d/99ekopath-bin | egrep "^PATH" | sed 's/=/ /g' | awk '{print $2}')/" > fi > unset CFLAGS > unset CXXFLAGS > else > [[ $(gcc-version) != 4.2 ]] && \ > die "To bootstrap Path64 you'll need to use gcc:4.2[vanilla]" > export COMPILER_PATH=$($(tc-getCC) -print-search-dirs | head -n 1 | cut -f2- -d' ') > export CMAKE_BUILD_TYPE="Debug" > COMPILER_NAME="gcc" > fi > elog "using ${COMPILER_NAME} compiler, building ${CMAKE_BUILD_TYPE} mode" >} > >src_unpack() { > cd "${WORKDIR}" > elog "checking out the suite..." > declare -a headers=($(echo ${EGIT_REPO_URI} | sed 's/[\/\.]/ /'g) ) > local index=$((${#headers[@]} - 2)) > export EGIT_PROJECT="${headers[$index]}" > git-2_src_unpack > mkdir ${P}/compiler > elog "checking out modules..." > for repo in $(echo ${EGIT_REPO_URI_LIST}); do > unset EGIT_DIR > export EGIT_REPO_URI="${repo}" > declare -a headers=($(echo ${EGIT_REPO_URI} | sed 's/[\/\.]/ /'g) ) > index=$((${#headers[@]} - 2)) > export EGIT_SOURCEDIR="${S}/compiler/${headers[$index]}" > export EGIT_PROJECT="${PN}-${headers[$index]}" > cd "${WORKDIR}/${P}/compiler" > git-2_src_unpack > done > cd ${S} ># elog "searching for config files..." ># CMakeList_Files=$(find . -name "CMakeLists.txt" -o -name "*.cmake" | xargs) ># elog "updating config files..." ># sed -i 's/\/${PSC_FULL_VERSION}/\/ekopath-${PSC_FULL_VERSION}/g' ${CMakeList_Files} > mv compiler/debugger compiler/pathdb >} > >src_prepare() { > if ! use native; then > epatch "${FILESDIR}"/${PN}-fixlinks.patch \ > "${FILESDIR}"/${PN}-implicits.patch > fi >} > >src_configure() { > local MY_CFLAGS="" > local MY_CXXFLAGS="" > local FORTRAN_COMPILER="" > local C_COMPILER="" > local CXX_COMPILER="" > local BUILD_ARCH="x86" > local DEBUGGER_STATE=OFF > local FORTRAN_STATE=OFF > local OPENMP_STATE=OFF > local MATHLIBS_STATE=OFF > local PROFILING_STATE=OFF > local PATHOPT2_STATE=OFF > local VALGRIND_STATE=OFF > > if use amd64; then > BUILD_ARCH="x86_64" > fi > > use valgrind && VALGRIND_STATE=ON > use openmp && OPENMP_STATE=ON > use mathlibs && MATHLIBS_STATE=ON > use profiling && PROFILING_STATE=ON > use pathopt2 && PATHOPT2_STATE=ON > use fortran && FORTRAN_STATE=ON > use debugger && DEBUGGER_STATE=ON > > if use native; then > use fortran && FORTRAN_COMPILER="${COMPILER_PATH}/pathFC" > C_COMPILER="${COMPILER_PATH}pathcc" > CXX_COMPILER="${COMPILER_PATH}pathCC" > else > use fortran && FORTRAN_COMPILER=$(tc-getFC) > C_COMPILER=$(tc-getCC) > CXX_COMPILER=$(tc-getCXX) > fi > > mycmakeargs=( > -DPATH64_ENABLE_TARGETS=${BUILD_ARCH} > -DPSC_CRT_PATH_${BUILD_ARCH}=$(dirname $(gcc -print-file-name=crt1.o) ) > -DPSC_CRTBEGIN_PATH_${BUILD_ARCH}=$(dirname $(gcc -print-libgcc-file-name) ) > -DPSC_DYNAMIC_LINKER_${BUILD_ARCH}=$(gcc --help -v 2>&1 >/dev/null | awk '/-dynamic-linker/ { match($0, "-dynamic-linker +[^ ]+"); print substr($0, RSTART+16, RLENGTH-16) }') > -DPATH64_ENABLE_MATHLIBS=${MATHLIBS_STATE} > -DPATH64_ENABLE_FORTRAN=${FORTRAN_STATE} > -DPATH64_ENABLE_VALGRIND=${VALGRIND_STATE} > -DPATH64_ENABLE_PATHOPT2=${PATHOPT2_STATE} > -DPATH64_ENABLE_PROFILING=${PROFILING_STATE} > -DPATH64_ENABLE_PATHDB=${DEBUGGER_STATE} > -DPATH64_ENABLE_OPENMP=${OPENMP_STATE} > -DCMAKE_C_COMPILER=${C_COMPILER} > -DCMAKE_CXX_COMPILER=${CXX_COMPILER} > ) > if [ ! -z "${FORTRAN_COMPILER}" ]; then > mycmakeargs="${mycmakeargs} -DCMAKE_Fortran_COMPILER=${FORTRAN_COMPILER}" > fi > cmake-utils_src_configure >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 374739
:
279685
|
279687
|
280479