diff -ur ekg.orig/ekg-1.8_rc1-r1.ebuild ekg/ekg-1.8_rc1-r1.ebuild --- ekg.orig/ekg-1.8_rc1-r1.ebuild 2011-03-22 01:04:44.000000000 +0800 +++ ekg/ekg-1.8_rc1-r1.ebuild 2011-11-28 01:23:10.202987228 +0800 @@ -2,8 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/ekg/ekg-1.8_rc1-r1.ebuild,v 1.1 2011/03/21 17:04:44 signals Exp $ -EAPI=2 -inherit autotools eutils +EAPI=4 +inherit autotools eutils python IUSE="gif gtk jpeg ncurses python readline spell ssl zlib" @@ -15,8 +15,6 @@ LICENSE="GPL-2" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86" -S="${WORKDIR}/${P/_/}" - RDEPEND="net-libs/libgadu ssl? ( >=dev-libs/openssl-0.9.6 ) ncurses? ( sys-libs/ncurses ) @@ -32,6 +30,10 @@ >=sys-devel/autoconf-2.50 ${RDEPEND}" +pkg_setup() { + python_pkg_setup +} + src_prepare() { epatch "${FILESDIR}/"${P}-gtkutil-button-decl.patch \ "${FILESDIR}/"${P}-as-needed.patch \ @@ -56,19 +58,14 @@ `use_with python` \ `use_with jpeg libjpeg` \ `use_with zlib` \ - `use_with gif libgif` \ `use_enable spell aspell` \ `use_with ssl openssl` \ `use_enable ssl openssl` \ `use_enable gtk ui-gtk` \ - || die -} -src_compile() { - emake || die } src_install() { - make DESTDIR="${D}" install || die + emake DESTDIR="${D}" install dodoc docs/{*.txt,ULOTKA,TODO,README,FAQ} }