public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sebastian Werner <sebastian@werner-productions.de>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] light kde
Date: Tue, 27 Nov 2001 23:52:00 +0100	[thread overview]
Message-ID: <E168r5L-0005fQ-00@mrvdom04.kundenserver.de> (raw)

[-- 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

															      

                 reply	other threads:[~2001-11-27 22:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E168r5L-0005fQ-00@mrvdom04.kundenserver.de \
    --to=sebastian@werner-productions.de \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox