--- protobuf-2.3.0.ebuild.orig 2010-05-15 14:00:43.000000000 +0200 +++ protobuf-2.3.0.ebuild 2010-05-15 14:00:31.000000000 +0200 @@ -7,7 +7,7 @@ JAVA_PKG_IUSE="source" PYTHON_DEPEND="python? 2" -inherit eutils distutils python java-pkg-opt-2 elisp-common +inherit autotools eutils distutils python java-pkg-opt-2 elisp-common DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data" HOMEPAGE="http://code.google.com/p/protobuf/" @@ -28,10 +28,12 @@ DISTUTILS_SRC_TEST="setup.py" src_prepare() { + epatch "${FILESDIR}"/${P}-asneeded.patch use python && { python_convert_shebangs -r 2 . distutils_src_prepare } + eautoreconf } src_compile() {