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

Collapse All | Expand All

(-)a/dev-lang/ocaml/ocaml-4.00.1-r1.ebuild (-8 / +8 lines)
Lines 65-74 src_configure() { Link Here
65
	use X || myconf="${myconf} -no-graph"
65
	use X || myconf="${myconf} -no-graph"
66
66
67
	# ocaml uses a home-brewn configure script, preventing it to use econf.
67
	# ocaml uses a home-brewn configure script, preventing it to use econf.
68
	RAW_LDFLAGS="$(raw-ldflags)" ./configure -prefix /usr \
68
	RAW_LDFLAGS="$(raw-ldflags)" ./configure -prefix "${EPREFIX}"/usr \
69
		--bindir /usr/bin \
69
		--bindir "${EPREFIX}"/usr/bin \
70
		--libdir /usr/$(get_libdir)/ocaml \
70
		--libdir "${EPREFIX}"/usr/$(get_libdir)/ocaml \
71
		--mandir /usr/share/man \
71
		--mandir "${EPREFIX}"/usr/share/man \
72
		-host "${CHOST}" \
72
		-host "${CHOST}" \
73
		-cc "$(tc-getCC)" \
73
		-cc "$(tc-getCC)" \
74
		-as "$(tc-getAS)" \
74
		-as "$(tc-getAS)" \
Lines 92-100 src_compile() { Link Here
92
}
92
}
93
93
94
src_install() {
94
src_install() {
95
	make BINDIR="${D}"/usr/bin \
95
	make BINDIR="${ED}"/usr/bin \
96
		LIBDIR="${D}"/usr/$(get_libdir)/ocaml \
96
		LIBDIR="${ED}"/usr/$(get_libdir)/ocaml \
97
		MANDIR="${D}"/usr/share/man \
97
		MANDIR="${ED}"/usr/share/man \
98
		install
98
		install
99
99
100
	# Symlink the headers to the right place
100
	# Symlink the headers to the right place
Lines 105-111 src_install() { Link Here
105
105
106
	# Create and envd entry for latex input files
106
	# Create and envd entry for latex input files
107
	if use latex ; then
107
	if use latex ; then
108
		echo "TEXINPUTS=/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc
108
		echo "TEXINPUTS="${EPREFIX}"/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc
109
		doenvd "${T}"/99ocamldoc
109
		doenvd "${T}"/99ocamldoc
110
	fi
110
	fi
111
111

Return to bug 502426