Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373131 - gnome2.eclass should handle DOCS as default src_install eapi4 phase when that eapi is being used
Summary: gnome2.eclass should handle DOCS as default src_install eapi4 phase when that...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-26 17:59 UTC by Pacho Ramos
Modified: 2012-11-24 19:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2011-06-26 17:59:23 UTC
Currently EAPI 4 installs docs automatically in most cases:
http://devmanual.gentoo.org/ebuild-writing/eapi/index.html

With:
	if ! declare -p DOCS >/dev/null 2>&1 ; then
		local d
		for d in README* ChangeLog AUTHORS NEWS TODO CHANGES THANKS BUGS \
				FAQ CREDITS CHANGELOG ; do
			[[ -s "${d}" ]] && dodoc "${d}"
		done
	# TODO: wrong "declare -a" command...
	elif declare -p DOCS | grep -q `^declare -a` ; then
		dodoc "${DOCS[@]}"
	else
		dodoc ${DOCS}
	fi

This should also be added to gnome2_src_install phase when eapi4 is being used to allow us drop most of "DOCS" setting in ebuilds inheriting this eclass.

Thanks

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2012-11-24 19:00:58 UTC
+  24 Nov 2012; Pacho Ramos <pacho@gentoo.org> gnome2.eclass:
+  Handle documentation as 'default' for eapi5 and newer (as discussed via
+  mail), bug #373131
+