--- /usr/portage/app-crypt/seahorse/seahorse-3.10.2.ebuild 2014-03-09 16:01:02.000000000 +0400 +++ seahorse-3.10.2-r1.ebuild 2014-03-14 18:39:42.125251875 +0400 @@ -5,7 +5,7 @@ EAPI="5" GCONF_DEBUG="yes" -inherit gnome2 +inherit eutils gnome2 vala DESCRIPTION="A GNOME application for managing encryption keys" HOMEPAGE="http://projects.gnome.org/seahorse/index.html" @@ -33,6 +33,8 @@ ldap? ( net-nds/openldap:= ) " DEPEND="${COMMON_DEPEND} + $(vala_depend) + app-crypt/gcr[vala] >=dev-util/intltool-0.35 sys-devel/gettext virtual/pkgconfig @@ -43,11 +45,17 @@ " src_prepare() { + # Regenerate the pre-generated C sources, bug #504582 + rm -f common/*.c # FIXME: Do not mess with CFLAGS with USE="debug" sed -e '/CFLAGS="$CFLAGS -g/d' \ -e '/CFLAGS="$CFLAGS -O0/d' \ -i configure.ac configure || die "sed 1 failed" + # bug #504582 + epatch "${FILESDIR}"/seahorse-3.10.2-include-correct-headers-for-vala.patch + + vala_src_prepare gnome2_src_prepare } @@ -61,6 +69,10 @@ $(use_enable avahi sharing) \ $(use_enable debug) \ $(use_enable ldap) \ - ITSTOOL=$(type -P true) \ - VALAC=$(type -P true) + ITSTOOL=$(type -P true) +} + +src_compile() { + emake -j 1 -C common + gnome2_src_compile }