diff options
author | Carsten Lohrke <carlo@gentoo.org> | 2005-05-27 14:43:23 +0000 |
---|---|---|
committer | Carsten Lohrke <carlo@gentoo.org> | 2005-05-27 14:43:23 +0000 |
commit | 28e124c80d56e84cf2ee1d2a37003540930bfaa5 (patch) | |
tree | 5e08edcc6fe34fd6a90d7776db054e64a06b29a3 /kde-base | |
parent | New version. (diff) | |
download | gentoo-2-28e124c80d56e84cf2ee1d2a37003540930bfaa5.tar.gz gentoo-2-28e124c80d56e84cf2ee1d2a37003540930bfaa5.tar.bz2 gentoo-2-28e124c80d56e84cf2ee1d2a37003540930bfaa5.zip |
install kdeeject with kdialog, #89867
(Portage version: 2.0.51.19)
Diffstat (limited to 'kde-base')
-rw-r--r-- | kde-base/kdialog/ChangeLog | 6 | ||||
-rwxr-xr-x | kde-base/kdialog/files/kdeeject-3.4.0 | 37 | ||||
-rwxr-xr-x | kde-base/kdialog/files/kdeeject-3.4.1 | 37 | ||||
-rw-r--r-- | kde-base/kdialog/kdialog-3.4.0.ebuild | 12 | ||||
-rw-r--r-- | kde-base/kdialog/kdialog-3.4.1.ebuild | 12 |
5 files changed, 101 insertions, 3 deletions
diff --git a/kde-base/kdialog/ChangeLog b/kde-base/kdialog/ChangeLog index e842b94e5dc1..fef3b5fbd1e5 100644 --- a/kde-base/kdialog/ChangeLog +++ b/kde-base/kdialog/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for kde-base/kdialog # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdialog/ChangeLog,v 1.8 2005/05/25 21:23:05 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdialog/ChangeLog,v 1.9 2005/05/27 14:43:23 carlo Exp $ + + 27 May 2005; Carsten Lohrke <carlo@gentoo.org> +files/kdeeject-3.4.0, + +files/kdeeject-3.4.1, kdialog-3.4.0.ebuild, kdialog-3.4.1.ebuild: + install kdeeject with kdialog, #89867 *kdialog-3.4.1 (25 May 2005) diff --git a/kde-base/kdialog/files/kdeeject-3.4.0 b/kde-base/kdialog/files/kdeeject-3.4.0 new file mode 100755 index 000000000000..7c684c68d9f3 --- /dev/null +++ b/kde-base/kdialog/files/kdeeject-3.4.0 @@ -0,0 +1,37 @@ +#!/bin/sh +# Script used by kdesktop to eject a removable media (CDROM/Tape/SCSI/Floppy) +# Relies on the 'eject' program, 'cdcontrol' on *BSD +# +# Copyright GPL v2 by David Faure <david@mandrakesoft.com> +# +if test $# -ge 1 -a "$1" != "--help"; then + quiet=0 + if test "$1" = "-q"; then + quiet=1 + shift + fi + # Checking for stuff in the PATH is ugly with sh. + # I guess this is the reason for making this a kde app... + OS=`uname -s` + case "$OS" in + OpenBSD) + cdio -f $1 eject >/dev/null 2>&1 + ;; + *BSD) + dev=`echo $1 | sed -E -e 's#/dev/##' -e 's/([0-9])./\1/'` + cdcontrol -f $dev eject >/dev/null 2>&1 + ;; + *) + eject $1 >/dev/null 2>&1 + ;; + esac + if test $? -eq 0; then + dcop kdesktop default refreshIcons + exit 0 + elif test $quiet -eq 0; then + kdialog --title "KDE Eject" --error "Eject $1 failed!" + fi +else + kdialog --title "KDE Eject" --msgbox "Usage: $0 <name> where name is a device or a mountpoint." +fi +exit 1 diff --git a/kde-base/kdialog/files/kdeeject-3.4.1 b/kde-base/kdialog/files/kdeeject-3.4.1 new file mode 100755 index 000000000000..7c684c68d9f3 --- /dev/null +++ b/kde-base/kdialog/files/kdeeject-3.4.1 @@ -0,0 +1,37 @@ +#!/bin/sh +# Script used by kdesktop to eject a removable media (CDROM/Tape/SCSI/Floppy) +# Relies on the 'eject' program, 'cdcontrol' on *BSD +# +# Copyright GPL v2 by David Faure <david@mandrakesoft.com> +# +if test $# -ge 1 -a "$1" != "--help"; then + quiet=0 + if test "$1" = "-q"; then + quiet=1 + shift + fi + # Checking for stuff in the PATH is ugly with sh. + # I guess this is the reason for making this a kde app... + OS=`uname -s` + case "$OS" in + OpenBSD) + cdio -f $1 eject >/dev/null 2>&1 + ;; + *BSD) + dev=`echo $1 | sed -E -e 's#/dev/##' -e 's/([0-9])./\1/'` + cdcontrol -f $dev eject >/dev/null 2>&1 + ;; + *) + eject $1 >/dev/null 2>&1 + ;; + esac + if test $? -eq 0; then + dcop kdesktop default refreshIcons + exit 0 + elif test $quiet -eq 0; then + kdialog --title "KDE Eject" --error "Eject $1 failed!" + fi +else + kdialog --title "KDE Eject" --msgbox "Usage: $0 <name> where name is a device or a mountpoint." +fi +exit 1 diff --git a/kde-base/kdialog/kdialog-3.4.0.ebuild b/kde-base/kdialog/kdialog-3.4.0.ebuild index 7ba7a93ee923..c520fdeb0c83 100644 --- a/kde-base/kdialog/kdialog-3.4.0.ebuild +++ b/kde-base/kdialog/kdialog-3.4.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdialog/kdialog-3.4.0.ebuild,v 1.4 2005/04/27 19:12:15 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdialog/kdialog-3.4.0.ebuild,v 1.5 2005/05/27 14:43:23 carlo Exp $ KMNAME=kdebase MAXKDEVER=$PV @@ -11,4 +11,14 @@ DESCRIPTION="KDialog can be used to show nice dialog boxes from shell scripts" KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~ppc64" IUSE="" +RDEPEND="sys-apps/eject" + KMNODOCS=true + +src_install() { + kde-meta_src_install + # see bug 89867 + cp ${FILESDIR}/kdeeject-${PV} ${T}/kdeeject + into ${PREFIX} + dobin ${T}/kdeeject +}
\ No newline at end of file diff --git a/kde-base/kdialog/kdialog-3.4.1.ebuild b/kde-base/kdialog/kdialog-3.4.1.ebuild index 6efc27dbaf55..197737ca02b7 100644 --- a/kde-base/kdialog/kdialog-3.4.1.ebuild +++ b/kde-base/kdialog/kdialog-3.4.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdialog/kdialog-3.4.1.ebuild,v 1.2 2005/05/26 17:14:26 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdialog/kdialog-3.4.1.ebuild,v 1.3 2005/05/27 14:43:23 carlo Exp $ KMNAME=kdebase MAXKDEVER=$PV @@ -11,4 +11,14 @@ DESCRIPTION="KDialog can be used to show nice dialog boxes from shell scripts" KEYWORDS="~x86 ~amd64 ~ppc64 ~ppc ~sparc" IUSE="" +RDEPEND="sys-apps/eject" + KMNODOCS=true + +src_install() { + kde-meta_src_install + # see bug 89867 + cp ${FILESDIR}/kdeeject-${PV} ${T}/kdeeject + into ${PREFIX} + dobin ${T}/kdeeject +}
\ No newline at end of file |