All pastes #287625 Raw Edit

e_modules !!

public text v1 · immutable
#287625 ·published 2006-12-21 17:03 UTC
rendered paste body
more /usr/local/portage/x11-plugins/e_modules/e_modules-9999.e                                                                                                  build 
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/e_modules/e_modules-9999.ebuild,v
 1.3 2006/05/14 20:42:20 vapier Exp $

ECVS_MODULE="e_modules"
inherit enlightenment

DESCRIPTION="add-on modules for e17 (snow/flame/notes/etc...)"

ALL_MODULES="bling calendar cpu deskshow devian eveil emu evolume flame language
   mail mbar mem mixer moon net photo rain screenshot slideshow snow tclock
   taskbar uptime weather wlan winselector"

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"

src_unpack() {
   enlightenment_src_unpack
   cd ${S}

   MODULES_BUILD="";

   # Create the list of modules that will be built
   for d in ${ALL_MODULES};
   do
      use $d && MODULES_BUILD="${MODULES_BUILD} $d";
   done

   # If new modules are introduced into CVS the user should be warned that
   # the module will not be built until the ebuild is patched
   for d in `ls -1`;
   do
      [[ -d $d ]] && case $d in
      CVS | debian)
         ## skip these directories
      ;;
      *)
         if ! echo ${ALL_MODULES} | grep -q "$d"; then
#            MODULES_BUILD="${MODULES_BUILD} $d"
            ewarn "$d is a new module in cvs. It will not be built"
            ewarn "Please update your e_modules ebuild to include this new module $d."
         fi
      ;;
      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
   done

}