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-23 12:26:04.410869054 +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" +PYTHON_DEPEND="python? 2" -inherit eutils multilib autotools +inherit eutils multilib autotools python MY_P=${P/_rc/-RC} @@ -36,7 +40,5 @@ DEPEND=" mysql? ( virtual/mysql ) - python? ( dev-lang/python ) iconv? ( virtual/libiconv ) mpd? ( media-libs/libmpd ) - lcd_devices_bwct? ( =virtual/libusb-0* ) lcd_devices_g15? ( =virtual/libusb-0* ) lcd_devices_lcd2usb? ( =virtual/libusb-0* ) @@ -66,19 +68,16 @@ 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" } diff -ur lcd4linux-0.10.1-RC2.orig/lcd4linux.c lcd4linux-0.10.1-RC2/lcdinux-0.10.1-RC2/lcd4linux.c --- lcd4linux.c 2007-03-22 15:10:41.000000000 +0900 +++ lcd4linux.c 2011-11-23 12:12:03.782869315 +0800 @@ -26,7 +26,7 @@ */ #include "config.h" - +#include #include #include #include