# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ECVS_MODULE="e_modules" inherit enlightenment DESCRIPTION="add-on modules for e17 (snow/flame/notes/etc...)" ALL_MODULES="alarm bling calendar cpu deskshow emu engage flame language mail mem mixer moon net photo rain screenshot slideshow snow taskbar tclock uptime weather winselector wlan" IUSE="${ALL_MODULES}" DEPEND="x11-wm/e x11-libs/ecore x11-libs/evas x11-libs/esmart media-libs/edje dev-libs/eet dev-libs/exml" RDEPEND="${DEPEND}" src_unpack() { enlightenment_src_unpack cd "${S}" local d f mod MODULES_BUILD MODULES_BUILD="" # Create the list of modules that will be built for d in ${ALL_MODULES} ; do if use ${d}; then MODULES_BUILD="${MODULES_BUILD} ${d}"; fi done # If new modules are introduced into CVS they should be automatically # built until the ebuild is patched for mod in $(ls -1) ; do [[ -d ${mod} ]] && case ${mod} in CVS | debian) ## skip these directories ;; *) [[ -z "$(echo ${ALL_MODULES} | grep ${mod} 2>/dev/null)" ]] && \ MODULES_BUILD="${MODULES_BUILD} ${mod}" ;; esac done # Patch the relevant files for f in autogen.sh configure.in Makefile.in; do sed -i -e "s:for d in \*:for d in ${MODULES_BUILD}:" ${f} || die "sed failed" done }