--- libglade-2.6.4.ebuild.orig 2012-08-05 15:24:24.000000000 -0600 +++ libglade-2.6.4.ebuild 2012-08-05 15:26:16.000000000 -0600 @@ -7,14 +7,14 @@ GNOME2_LA_PUNT="yes" PYTHON_DEPEND="2" -inherit autotools eutils gnome2 python virtualx +inherit autotools eutils flag-o-matic gnome2 python virtualx DESCRIPTION="Library to construct graphical interfaces at runtime" HOMEPAGE="http://library.gnome.org/devel/libglade/stable/" LICENSE="LGPL-2" SLOT="2.0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" IUSE="doc static-libs test" RDEPEND=">=dev-libs/glib-2.10:2 @@ -49,6 +49,9 @@ sed 's/ tests//' -i Makefile.am Makefile.in || die "sed failed" fi + # Needed for solaris, else gcc finds a syntax error in /usr/include/signal.h + [[ ${CHOST} == *-solaris* ]] && append-flags "-D__EXTENSIONS__" + gnome2_src_prepare AT_NOELIBTOOLIZE=yes eautoreconf } @@ -65,15 +68,15 @@ pkg_postinst() { echo ">>> Updating XML catalog" - /usr/bin/xmlcatalog --noout --add "system" \ + "${EPREFIX}"/usr/bin/xmlcatalog --noout --add "system" \ "http://glade.gnome.org/glade-2.0.dtd" \ - /usr/share/xml/libglade/glade-2.0.dtd /etc/xml/catalog + "${EPREFIX}"/usr/share/xml/libglade/glade-2.0.dtd /etc/xml/catalog gnome2_pkg_postinst } pkg_postrm() { gnome2_pkg_postrm echo ">>> removing entries from the XML catalog" - /usr/bin/xmlcatalog --noout --del \ - /usr/share/xml/libglade/glade-2.0.dtd /etc/xml/catalog + "${EPREFIX}"/usr/bin/xmlcatalog --noout --del \ + "${EPREFIX}"/usr/share/xml/libglade/glade-2.0.dtd /etc/xml/catalog }