--- openbox-3.5.0-r1.ebuild.old 2011-09-18 13:39:25.677775416 +0200 +++ openbox-3.5.0-r1.ebuild.old 2011-09-18 13:40:12.561775455 +0200 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-wm/openbox/openbox-3.5.0-r1.ebuild,v 1.1 2011/09/03 10:27:07 hwoarang Exp $ -EAPI="2" +EAPI="4" WANT_AUTOMAKE="1.9" inherit multilib autotools eutils @@ -37,6 +37,7 @@ epatch "${FILESDIR}"/${PN}-gnome-session-3.4.9.patch epatch "${FILESDIR}"/${PN}-as-needed.patch epatch "${FILESDIR}"/${P}-configure-imlib2.patch + sed -i "s:-O0 -ggdb ::" ./m4/openbox.m4 || die eautopoint eautoreconf } @@ -57,6 +58,6 @@ dodir /etc/X11/Sessions echo "/usr/bin/openbox-session" > "${D}/etc/X11/Sessions/${PN}" fperms a+x /etc/X11/Sessions/${PN} - emake DESTDIR="${D}" install || die "emake install failed" + default ! use static-libs && rm "${D}"/usr/$(get_libdir)/lib{obt,obrender}.la }