Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 332605 | Differences between
and this patch

Collapse All | Expand All

(-)clang-2.7-r2.ebuild (-4 / +19 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-2.7-r2.ebuild,v 1.1 2010/07/27 13:06:47 voyageur Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-2.7-r2.ebuild,v 1.1 2010/07/27 13:06:47 voyageur Exp $
4
4
5
EAPI=2
5
EAPI=3
6
6
7
RESTRICT_PYTHON_ABIS="3.*"
7
RESTRICT_PYTHON_ABIS="3.*"
8
SUPPORT_PYTHON_ABIS="1"
8
SUPPORT_PYTHON_ABIS="1"
Lines 17-23 Link Here
17
17
18
LICENSE="UoI-NCSA"
18
LICENSE="UoI-NCSA"
19
SLOT="0"
19
SLOT="0"
20
KEYWORDS="~amd64 ~x86"
20
KEYWORDS="~amd64 ~x86 ~ppc-macos"
21
IUSE="debug +static-analyzer system-cxx-headers test"
21
IUSE="debug +static-analyzer system-cxx-headers test"
22
22
23
# Note: for LTO support, clang will depend on binutils with gold plugins, and LLVM built after that - http://llvm.org/docs/GoldPlugin.html
23
# Note: for LTO support, clang will depend on binutils with gold plugins, and LLVM built after that - http://llvm.org/docs/GoldPlugin.html
Lines 50-56 Link Here
50
	# From llvm src_prepare
50
	# From llvm src_prepare
51
	einfo "Fixing install dirs"
51
	einfo "Fixing install dirs"
52
	sed -e 's,^PROJ_docsdir.*,PROJ_docsdir := $(PROJ_prefix)/share/doc/'${PF}, \
52
	sed -e 's,^PROJ_docsdir.*,PROJ_docsdir := $(PROJ_prefix)/share/doc/'${PF}, \
53
		-e 's,^PROJ_etcdir.*,PROJ_etcdir := /etc/llvm,' \
53
		-e 's,^PROJ_etcdir.*,PROJ_etcdir := '"${EPREFIX}"'/etc/llvm,' \
54
		-e 's,^PROJ_libdir.*,PROJ_libdir := $(PROJ_prefix)/'$(get_libdir), \
54
		-e 's,^PROJ_libdir.*,PROJ_libdir := $(PROJ_prefix)/'$(get_libdir), \
55
		-i Makefile.config.in || die "Makefile.config sed failed"
55
		-i Makefile.config.in || die "Makefile.config sed failed"
56
56
Lines 73-78 Link Here
73
			--disable-expensive-checks"
73
			--disable-expensive-checks"
74
	fi
74
	fi
75
75
76
	# Setup the search path to include the Prefix includes
77
	if use prefix ; then
78
		CONF_FLAGS="${CONF_FLAGS} \
79
			--with-c-include-dirs=${EPREFIX}/usr/include:/usr/include"
80
	fi
81
76
	if use amd64; then
82
	if use amd64; then
77
		CONF_FLAGS="${CONF_FLAGS} --enable-pic"
83
		CONF_FLAGS="${CONF_FLAGS} --enable-pic"
78
	fi
84
	fi
Lines 127-136 Link Here
127
		install-scan-view() {
133
		install-scan-view() {
128
			insinto "$(python_get_sitedir)"/clang
134
			insinto "$(python_get_sitedir)"/clang
129
			doins Reporter.py Resources ScanView.py startfile.py
135
			doins Reporter.py Resources ScanView.py startfile.py
130
			touch "${D}"/"$(python_get_sitedir)"/clang/__init__.py
136
			touch "${ED}"/"$(python_get_sitedir)"/clang/__init__.py
131
		}
137
		}
132
		python_execute_function install-scan-view
138
		python_execute_function install-scan-view
133
	fi
139
	fi
140
	
141
	# Fix install_names on Darwin.  The build system is too complicated
142
	# to just fix this, so we correct it post-install
143
	if [[ ${CHOST} == *-darwin* ]] ; then
144
		for lib in libCIndex.dylib ; do
145
			install_name_tool -id "${EPREFIX}"/usr/lib/${lib} \
146
				"${ED}"/usr/lib/${lib}
147
		done
148
	fi
134
}
149
}
135
150
136
pkg_postinst() {
151
pkg_postinst() {

Return to bug 332605