Only in lcd4linux/files: lcd4linux-header.patch diff -ur lcd4linux.orig//lcd4linux-0.10.1_rc2-r2.ebuild lcd4linux/lcd4linux-0.10.1_rc2-r2.ebuild --- lcd4linux.orig//lcd4linux-0.10.1_rc2-r2.ebuild 2010-03-06 07:26:14.000000000 +0800 +++ lcd4linux/lcd4linux-0.10.1_rc2-r2.ebuild 2011-11-26 18:22:44.643000055 +0800 @@ -2,8 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/lcd4linux-0.10.1_rc2-r2.ebuild,v 1.8 2010/03/05 23:26:14 ssuominen Exp $ +EAPI="3" WANT_AUTOMAKE="1.9" -inherit eutils multilib autotools +PYTHON_DEPEND="python? 2" +inherit eutils multilib autotools python MY_P=${P/_rc/-RC} @@ -36,7 +38,6 @@ DEPEND=" mysql? ( virtual/mysql ) - python? ( dev-lang/python ) iconv? ( virtual/libiconv ) mpd? ( media-libs/libmpd ) @@ -66,19 +67,17 @@ echo } -src_unpack() { - unpack ${A} - cd "${S}" - +src_prepare() { epatch "${FILESDIR}/${P}-warnings.patch" epatch "${FILESDIR}/${P}-mpd.patch" epatch "${FILESDIR}/${P}-nordtsc.patch" epatch "${FILESDIR}/${P}-autoconf-2.65.patch" + epatch "${FILESDIR}/${PN}"-header.patch || die eautoreconf } -src_compile() { +src_configure() { # This array contains the driver names required by configure --with-drivers= # The positions must be the same as the corresponding use_expand flags local DEVICE_DRIVERS=(BeckmannEgle BWCT CrystalFontz Curses Cwlinux @@ -153,7 +152,9 @@ || die "econf failed" sed -i.orig -e 's/-L -lX11/ -lX11 /g' Makefile || die "sed fixup failed" +} +src_compile() { emake || die "make failed" }