public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] light kde
@ 2001-11-27 22:52 Sebastian Werner
  0 siblings, 0 replies; only message in thread
From: Sebastian Werner @ 2001-11-27 22:52 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

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

[-- Attachment #2: kde.eclass.diff --]
[-- Type: text/x-diff, Size: 311 bytes --]

--- /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)

[-- Attachment #3: kde.disabler.sh --]
[-- Type: text/plain, Size: 1089 bytes --]

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

															      

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-27 22:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-27 22:52 [gentoo-dev] light kde Sebastian Werner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox