Index: libsigc++-1.0.4-r3.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-libs/libsigc++/libsigc++-1.0.4-r3.ebuild,v retrieving revision 1.4 diff -u -r1.4 libsigc++-1.0.4-r3.ebuild --- libsigc++-1.0.4-r3.ebuild 6 Nov 2006 01:23:40 -0000 1.4 +++ libsigc++-1.0.4-r3.ebuild 8 Nov 2006 15:05:22 -0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libsigc++/libsigc++-1.0.4-r3.ebuild,v 1.4 2006/11/06 01:23:40 opfer Exp $ -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="The GLib library of C routines" HOMEPAGE="http://libsigc.sourceforge.net/" @@ -14,14 +14,27 @@ IUSE="debug" DEPEND="" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i -e '/echo "The entire directory will be removed now." ;\\/d' \ + -e '/rm -rf "$(includedir)\/sigc++" ;\\/d' */Makefile.in || die + + sed -i -e 's:^libsigc_la_LIBADD =:& $(THREAD_LIB):' sigc++/Makefile.in || die + + epatch "${FILESDIR}"/${P}-as-needed.patch +} src_compile() { use debug \ && myconf="--enable-debug=yes" \ || myconf="--enable-debug=no" - econf ${myconf} || die - epatch ${FILESDIR}/sandbox.patch || die + tc-export CC CXX + econf ${myconf} || die emake || die }