--- sphinx-0.9.9-r1.ebuild 2010-11-02 19:13:16.000000000 +0100 +++ sphinx-0.9.9-r2.ebuild 2010-11-04 14:18:16.000000000 +0100 @@ -18,7 +18,7 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~x86 ~ppc-macos" +KEYWORDS="~amd64 ~x86 ~ppc-macos ~amd64-linux" IUSE="debug id64 mysql postgres stemmer test" RDEPEND="mysql? ( virtual/mysql ) @@ -39,6 +39,9 @@ src_prepare() { # drop nasty hardcoded search path breaking Prefix sed -i -e '/\/usr\/local\//d' configure.ac || die + # fix for upstream building bug #468 + sed -i -e '270,290s/void sock_close/static void sock_close/' \ + api/libsphinxclient/sphinxclient.c || die eautoreconf } @@ -50,10 +53,13 @@ $(use_with mysql) \ $(use_with postgres pgsql) \ $(use_with stemmer libstemmer) + cd api/libsphinxclient || die + econf STRIP=: } src_compile() { emake || die "emake failed" + emake -j1 -C api/libsphinxclient || die "emake libsphinxclient failed" } src_test() { @@ -63,6 +69,7 @@ src_install() { emake DESTDIR="${D}" install || die "install failed" + emake -C api/libsphinxclient DESTDIR="${D}" install || die "install failed" dodoc doc/* dodir /var/lib/sphinx