# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools eutils subversion SVN_SUBDIR="${SVN_SUBDIR:=}" E17_PATCHES="${E17_PATCHES:=}" E17_EXTRA_CONF="${E17_EXTRA_CONF:=}" IUSE="${IUSE} nls" DEPENDS="${DEPEND} nls? ( sys-devel/gettext dev-utils/cvs )" LICENSE="BSD" SLOT="0" ESVN_REPO_URI="http://svn.enlightenment.org/svn/e/trunk$SVN_SUBDIR/${PN}" case ${PV} in 20090507) ESVN_REVISION=40538 ;; 20090614) ESVN_REVISION=41040 ;; 20090626) ESVN_REVISION=41211 ;; 20090706) ESVN_REVISION=41258 ;; 20090729) ESVN_REVISION=41533 ;; 20091202) ESVN_REVISION=44150 ;; 99999999) ;; *) die "Unknown revision!" ;; esac enlightenment_svn_src_unpack() { subversion_src_unpack cd "${S}" # Applying all user specified patches for patch in ${E17_PATCHES}; do epatch "${FILESDIR}/${patch}" done if tc-is-cross-compiler; then [ -f configure.ac ] && sed -i -e 's%SDL_CFLAGS=`$SDL_CONFIG --cflags`%SDL_CFLAGS=`$SDL_CONFIG --prefix='${SYSROOT}'/usr --cflags`%' configure.ac fi # Create files that might be missing touch README ABOUT-NLS config.rpath # Delete possible pkg.m4 macro files as they colide # with newer autoconf version. find "${S}" -name pkg.m4 -delete use nls && grep -q AM_GNU_GETTEXT_VERSION configure.ac && autopoint -f eautoreconf || die "eautoreconf failed" use nls && glib-gettextize --force --copy } enlightenment_svn_src_compile() { local myconf use nls || myconf="${myconf} --disable-nls" econf ${E17_EXTRA_CONF} ${myconf} || die "econf failed" emake || die "emake failed" } enlightenment_svn_src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS NEWS README } EXPORT_FUNCTIONS src_unpack src_compile src_install