Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 392651
Collapse All | Expand All

(-)a/eclass/autotools-utils.eclass (-6 / +33 lines)
Lines 93-99 case ${EAPI:-0} in Link Here
93
	*) die "EAPI=${EAPI} is not supported" ;;
93
	*) die "EAPI=${EAPI} is not supported" ;;
94
esac
94
esac
95
95
96
inherit autotools base eutils libtool
96
inherit autotools eutils libtool
97
97
98
EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_test
98
EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_test
99
99
Lines 125-130 EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_test Link Here
125
# }
125
# }
126
# @CODE
126
# @CODE
127
127
128
# @ECLASS-VARIABLE: DOCS
129
# @DESCRIPTION:
130
# Array containing documents passed to dodoc command.
131
#
132
# DOCS=( NEWS README )
133
134
# @ECLASS-VARIABLE: HTML_DOCS
135
# @DESCRIPTION:
136
# Array containing documents passed to dohtml command.
137
#
138
# HTML_DOCS=( doc/html/ )
139
140
# @ECLASS-VARIABLE: PATCHES
141
# @DESCRIPTION:
142
# PATCHES array variable containing all various patches to be applied.
143
#
144
# PATCHES=( "${FILESDIR}/mypatch.patch" )
145
128
# Determine using IN or OUT source build
146
# Determine using IN or OUT source build
129
_check_build_dir() {
147
_check_build_dir() {
130
	: ${ECONF_SOURCE:=${S}}
148
	: ${ECONF_SOURCE:=${S}}
Lines 224-230 remove_libtool_files() { Link Here
224
autotools-utils_src_prepare() {
242
autotools-utils_src_prepare() {
225
	debug-print-function ${FUNCNAME} "$@"
243
	debug-print-function ${FUNCNAME} "$@"
226
244
227
	base_src_prepare
245
	[[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
246
	epatch_user
247
228
	elibtoolize --patch-only
248
	elibtoolize --patch-only
229
}
249
}
230
250
Lines 260-266 autotools-utils_src_configure() { Link Here
260
	_check_build_dir
280
	_check_build_dir
261
	mkdir -p "${AUTOTOOLS_BUILD_DIR}" || die "mkdir '${AUTOTOOLS_BUILD_DIR}' failed"
281
	mkdir -p "${AUTOTOOLS_BUILD_DIR}" || die "mkdir '${AUTOTOOLS_BUILD_DIR}' failed"
262
	pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
282
	pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
263
	base_src_configure "${econfargs[@]}" "$@"
283
	default_src_configure "${econfargs[@]}" "$@"
264
	popd > /dev/null
284
	popd > /dev/null
265
}
285
}
266
286
Lines 272-278 autotools-utils_src_compile() { Link Here
272
292
273
	_check_build_dir
293
	_check_build_dir
274
	pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
294
	pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
275
	base_src_compile "$@"
295
	default_src_compile "$@"
276
	popd > /dev/null
296
	popd > /dev/null
277
}
297
}
278
298
Lines 289-297 autotools-utils_src_install() { Link Here
289
309
290
	_check_build_dir
310
	_check_build_dir
291
	pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
311
	pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
292
	base_src_install "$@"
312
	emake DESTDIR="${D}" "$@" install || die "emake install failed"
293
	popd > /dev/null
313
	popd > /dev/null
294
314
315
	# XXX: support installing them from builddir as well?
316
	if [[ ${DOCS} ]]; then
317
		dodoc "${DOCS[@]}" || die "dodoc failed"
318
	fi
319
	if [[ ${HTML_DOCS} ]]; then
320
		dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed"
321
	fi
322
295
	# Remove libtool files and unnecessary static libs
323
	# Remove libtool files and unnecessary static libs
296
	remove_libtool_files
324
	remove_libtool_files
297
}
325
}
298
- 

Return to bug 392651