[OE-core] [CONSOLIDATED 25 July PULL 6/7] docbook-dsssl-stylesheets-native: Add SYSROOT_PREPROCESS_FUNC

Phil Blundell philb at gnu.org
Mon Jul 25 15:33:55 UTC 2011


On Mon, 2011-07-25 at 00:30 -0700, Saul Wold wrote:
>  SSTATEPOSTINSTFUNCS += "docbook_dsssl_stylesheets_sstate_postinst"
> +SYSROOT_PREPROCESS_FUNCS += "docbook_dsssl_sysroot_preprocess"
> +
>  
>  do_install () {
>  	# Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/docbook-dsssl.html
> @@ -42,8 +44,14 @@ docbook_dsssl_stylesheets_sstate_postinst () {
>  	then
>  		# Ensure that the catalog file sgml-docbook.cat is properly
>  		# updated when the package is installed from sstate cache.
> -		install-catalog \
> +		${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-dsssl \
>  			--add ${sysconfdir}/sgml/sgml-docbook.cat \
>  			${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat
>  	fi
>  }
> +
> +docbook_dsssl_sysroot_preprocess () {
> +    install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
> +    install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-dsssl
> +}
> +

This sort of thing seems like it might be better done in a class of some
kind rather than replicating the code in N separate recipes.

p.






More information about the Openembedded-core mailing list