# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="a netscape-compatible browser plugin which uses bonobo controls to display supported mime types." HOMEPAGE="http://www.nongnu.org/moz-bonobo/" SRC_URI="http://savannah.nongnu.org/download/moz-bonobo/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND=">=libbonobo-2.4.0" src_compile(){ ./configure \ --host=${CHOST} \ --prefix=${D}/usr \ --infodir=${D}/usr/share/info \ --mandir=${D}/usr/share/man \ --with-plugin-install-dir=${D}/usr/lib/nsbrowser/plugins \ || die "./configure failed" emake || die } src_install(){ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" einstall || die unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL } pkg_postinst(){ ${ROOT}/usr/bin/gconftool-2 --shutdown chmod o+rX ${ROOT}/etc/gconf -R SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source` GCONF_CONFIG_SOURCE=${SOURCE} \ ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule \ /etc/gconf/schemas/${PN}.schemas } pkg_prerm(){ ${ROOT}/usr/bin/gconftool-2 --shutdown GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 \ --get-default-source` ${ROOT}/usr/bin/gconftool-2 \ --makefile-uninstall-rule /etc/gconf/schemas/${PN}.schemas }