[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] light kde
From:       Sebastian Werner <sebastian () werner-productions ! de>
Date:       2001-11-27 22:52:00
[Download RAW message or body]

Hey,

my old idea - a better solution...

I want to have a easy way to select the single programs in the big-kde-base 
packages. I have written a shell script (attached) to correct the subdirs 
list in each the current package.

I think we can introduce easy a new use flag named 'lightkde' to make this 
skript interactive. The extension for the eclass-file is attached, too. This 
could be a easy way:

use lightkde && source /usr/bin/kde.disabler.sh

Please test it and tell me commands and extending ideas. Thanks in advance.

Sebastian Werner
["kde.eclass.diff" (text/x-diff)]

--- /usr/portage/eclass/kde.eclass	Sun Nov 25 10:06:57 2001
+++ kde.eclass	Tue Nov 27 17:42:00 2001
@@ -57,6 +57,7 @@
 		configure)
 			debug-print-section configure
 			debug-print "configure: myconf=$myconf"
+			use lightkde && source /usr/bin/kde.disabler.sh
 			./configure ${myconf} || die
 			;;
 		make)

["kde.disabler.sh" (text/plain)]

DIR="."
KDE_DONT_INSTALL=""

for dir in `find $DIR -type d -maxdepth 1 -mindepth 1 ! -name doc ! -name \
  bsd-port ! -name admin ! -name CVS ! -name debian ! -name "*lib*" -exec basename {} \;`
do
  echo -n ">>> Do you want to disable ${dir}? [y|n] "
  read input
  if [ "$input" = "y" -o "$input" = "Y" ]; then
    KDE_DONT_INSTALL="$KDE_DONT_INSTALL $dir"
  fi
done

# reversed sort to place for example kfaxview before kfax:
# this don't create an error with to near equal words
SORTLIST=`for pkg in $KDE_DONT_INSTALL; do echo $pkg; done | sort -r`

# Backup
cp subdirs subdirs.orig

for pkg in $SORTLIST; do
  cp subdirs subdirs.old
  grep "$pkg" subdirs > /dev/null 2>&1
  if [ $? == 0 ]; then
    cat subdirs.old | sed s/"$pkg"/""/g > subdirs && \
    echo ">>> Succesfull disabled $pkg" || \
    echo ">>> Error while disabling $pkg"    
  else
    echo ">>> Error while disabling $pkg"
  fi
done

#echo ">>> Creating configure.in"
#make -f Makefile.am top_srcdir=. configure.in 
echo ">>> Creating aclocal.m4"
aclocal
echo ">>> Creating configure"
autoconf

															      


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic