summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2004-09-11 20:51:07 +0000
committerAaron Walker <ka0ttic@gentoo.org>2004-09-11 20:51:07 +0000
commitcbe504bc66313937473cb5f220f4cf9a4757f591 (patch)
treee14dd3a390532f9b0a6a513fd7aacad0b7dfa7c2 /media-gfx
parentinitial version of mlmmj (Manifest recommit) (diff)
downloadgentoo-2-cbe504bc66313937473cb5f220f4cf9a4757f591.tar.gz
gentoo-2-cbe504bc66313937473cb5f220f4cf9a4757f591.tar.bz2
gentoo-2-cbe504bc66313937473cb5f220f4cf9a4757f591.zip
Fixed LICENSE declaration, updated metadata info, and added a bash-completion script (please test).
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/scrot/ChangeLog7
-rw-r--r--media-gfx/scrot/Manifest5
-rw-r--r--media-gfx/scrot/files/scrot.bash-completion40
-rw-r--r--media-gfx/scrot/metadata.xml4
-rw-r--r--media-gfx/scrot/scrot-0.8.ebuild15
5 files changed, 64 insertions, 7 deletions
diff --git a/media-gfx/scrot/ChangeLog b/media-gfx/scrot/ChangeLog
index 24ad4cd9893d..be83a23e1ee9 100644
--- a/media-gfx/scrot/ChangeLog
+++ b/media-gfx/scrot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-gfx/scrot
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/scrot/ChangeLog,v 1.11 2004/07/31 01:37:20 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/scrot/ChangeLog,v 1.12 2004/09/11 20:51:07 ka0ttic Exp $
+
+ 11 Sep 2004; Aaron Walker <ka0ttic@gentoo.org> metadata.xml,
+ scrot-0.8.ebuild:
+ Fixed LICENSE declaration, updated metadata info, and added a bash-completion
+ script (please test).
31 Jul 2004; Tom Gall <tgall@gentoo.org> scrot-0.8.ebuild:
stable on ppc64, bug #57034
diff --git a/media-gfx/scrot/Manifest b/media-gfx/scrot/Manifest
index 1ae698ea0f56..6f82f48b74f3 100644
--- a/media-gfx/scrot/Manifest
+++ b/media-gfx/scrot/Manifest
@@ -1,4 +1,5 @@
+MD5 2ab4dc642127e5639a692196e0b11ccb scrot-0.8.ebuild 873
MD5 bcfa02e3db3ab5bed2a553a8c21ea509 ChangeLog 1544
-MD5 1652522405f5936eb29776ef8d5ffa5b metadata.xml 310
-MD5 d0ae27a835be4362bc5ee2d341a0f8b9 scrot-0.8.ebuild 583
+MD5 f8d10f350e91f30316ea4e1bd1e76470 metadata.xml 254
+MD5 b3873efbdcaeb0d52ab7ffd1ecbf5071 files/scrot.bash-completion 1063
MD5 f7254c66a5852d7a6e48a39da63d5fe3 files/digest-scrot-0.8 60
diff --git a/media-gfx/scrot/files/scrot.bash-completion b/media-gfx/scrot/files/scrot.bash-completion
new file mode 100644
index 000000000000..d7e5729cd849
--- /dev/null
+++ b/media-gfx/scrot/files/scrot.bash-completion
@@ -0,0 +1,40 @@
+# bash-completion script for scrot
+# place this in /etc/bash_completion.d
+
+_scrot() {
+ local cur prev opts
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+ opts="-h --help -v --version -b --border -c --count -d --delay -e --exec \
+ -q --quality -m --multidisp -s --select -t --thumb"
+
+ if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then
+ COMPREPLY=($(compgen -W "${opts}" -- "${cur}"))
+ fi
+
+ case "${prev}" in
+ -e|--exec)
+ COMPREPLY=($(compgen -A command -- "${cur}"))
+ ;;
+ -h|--help)
+ COMPREPLY=($(compgen -W "${opts/-h --help}" -- "${cur}"))
+ ;;
+ -v|--version)
+ COMPREPLY=($(compgen -W "${opts/-v --version}" -- "${cur}"))
+ ;;
+ -b|--border)
+ COMPREPLY=($(compgen -W "${opts/-b --border}" -- "${cur}"))
+ ;;
+ -c|--count)
+ COMPREPLY=($(compgen -W "${opts/-c --count}" -- "${cur}"))
+ ;;
+ -m|--multidisp)
+ COMPREPLY=($(compgen -W "${opts/-m --multidisp}" -- "${cur}"))
+ ;;
+ -s|--select)
+ COMPREPLY=($(compgen -W "${opts/-s --select}" -- "${cur}"))
+ ;;
+ esac
+}
+complete -F _scrot scrot
diff --git a/media-gfx/scrot/metadata.xml b/media-gfx/scrot/metadata.xml
index d8b96be3c5cd..d31152aca840 100644
--- a/media-gfx/scrot/metadata.xml
+++ b/media-gfx/scrot/metadata.xml
@@ -3,7 +3,7 @@
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
- <email>bug-wranglers@gentoo.org</email>
- <description>This package lacks a primary herd or maintainer.</description>
+ <email>ka0ttic@gentoo.org</email>
+ <name>Aaron Walker</name>
</maintainer>
</pkgmetadata>
diff --git a/media-gfx/scrot/scrot-0.8.ebuild b/media-gfx/scrot/scrot-0.8.ebuild
index 4331dae86f2c..f455f8eded95 100644
--- a/media-gfx/scrot/scrot-0.8.ebuild
+++ b/media-gfx/scrot/scrot-0.8.ebuild
@@ -1,13 +1,13 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/scrot/scrot-0.8.ebuild,v 1.7 2004/07/31 01:37:20 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/scrot/scrot-0.8.ebuild,v 1.8 2004/09/11 20:51:07 ka0ttic Exp $
DESCRIPTION="Screen Shooter"
SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz"
HOMEPAGE="http://www.linuxbrit.co.uk/"
SLOT="0"
-LICENSE="as-is | BSD"
+LICENSE="as-is BSD"
KEYWORDS="x86 ~alpha ~ppc ~amd64 ~sparc ppc64"
IUSE=""
@@ -18,4 +18,15 @@ src_install () {
make DESTDIR=${D} install || die
dodoc TODO README AUTHORS ChangeLog
+
+ insinto /usr/share/bash-completion
+ newins ${FILESDIR}/${PN}.bash-completion ${PN}
+}
+
+pkg_postinst() {
+ echo
+ einfo "To enable command-line completion for scrot, issue the following"
+ einfo "command as root:"
+ einfo " ln -s /usr/share/bash-completion/scrot /etc/bash_completion.d/"
+ echo
}