commit:     c35534ef9174e6bb9fca609ce671d75c6125d763
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  5 09:26:03 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Nov  5 09:29:44 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c35534ef

media-gfx/scrot: Version 1.2

Package-Manager: Portage-2.3.78, Repoman-2.3.17
Fixes:  https://bugs.gentoo.org/show_bug.cgi?id=588430
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 media-gfx/scrot/Manifest                        |  1 +
 media-gfx/scrot/files/scrot-1.2.bash-completion | 41 +++++++++++++++++++++++
 media-gfx/scrot/metadata.xml                    |  3 ++
 media-gfx/scrot/scrot-1.2.ebuild                | 44 +++++++++++++++++++++++++
 4 files changed, 89 insertions(+)

diff --git a/media-gfx/scrot/Manifest b/media-gfx/scrot/Manifest
index 59dd502e262..06237c18879 100644
--- a/media-gfx/scrot/Manifest
+++ b/media-gfx/scrot/Manifest
@@ -1,2 +1,3 @@
+DIST scrot-1.2.tar.gz 36839 BLAKE2B 
26ca05fb3c8fa9069ad87bdd5cc93791994e44e2f5cd7a4b729a6c9e3035c349049500b9627fd31532c280465f77f839370d095f1b0f2ccc10649b3e6fa01edb
 SHA512 
b89e7a94e6317fdb7bd260190c6d68a2dfefc08691b4574337afdfff84f55b8b9c955a6ac60642ae9749c1deaa16bee7b855fbd15833a95f602536693daf8c37
 DIST scrot_0.8-13.debian.tar.gz 7943 BLAKE2B 
6c58c76f3a8dcf61a8ca4c31f5845cb27b4d0ed2bf9619cc8ea5824b5e42c66ee5163c7f4e76308763947b933003dbd3df6e641b0596ed342993343fd5418a75
 SHA512 
3f6d0a8e592088af38a3d90394b6b7246430479f5b0c8451af5eae383725d1896dc4bbf595495f9f2b546f00ef38780123c4ee0e3f06971c55a6ac2dfa5b7d53
 DIST scrot_0.8.orig.tar.gz 74324 BLAKE2B 
56facc81c29f101279ffc6d5d323a0cecd32b1ff6d1d4bb2052a90703353a9ad5b6ab46c8840ed20834f976badab4258fbb0f031645d9689eef1b838ebd4b1a0
 SHA512 
cba8f589e45758ddbfe4e276399a1ecb0dbe29569be5d85d97733e7f64de2911bd2d03e62700ad0c718a1fc886c2e3def9dee1de5cac884f9e65e772cebe838c

diff --git a/media-gfx/scrot/files/scrot-1.2.bash-completion 
b/media-gfx/scrot/files/scrot-1.2.bash-completion
new file mode 100644
index 00000000000..53c80bc3cd3
--- /dev/null
+++ b/media-gfx/scrot/files/scrot-1.2.bash-completion
@@ -0,0 +1,41 @@
+# 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 -a --autoselect -b --border -c --count -d
+               --delay -e --exec -q --quality -m --multidisp -s --select -u 
--focused
+               -t --thumb -z --silent -p --pointer -f --freeze -o --overwrite 
-l
+               --line -n --note
+       "
+
+       if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then
+               COMPREPLY=($(compgen -W "${opts}" -- "${cur}"))
+       fi
+
+       case "${prev}" in
+               -h|--help) COMPREPLY=($(compgen -W "${opts/-h --help}" -- 
"${cur}")) ;;
+               -v|--version) COMPREPLY=($(compgen -W "${opts/-v --version}" -- 
"${cur}")) ;;
+               -a|--autoselect) COMPREPLY=($(compgen -W "${opts/-a 
--autoselect}" -- "${cur}")) ;;
+               -b|--border) COMPREPLY=($(compgen -W "${opts/-b --border}" -- 
"${cur}")) ;;
+               -c|--count) COMPREPLY=($(compgen -W "${opts/-c --count}" -- 
"${cur}")) ;;
+               -d|--delay) COMPREPLY=($(compgen -W "${opts/-d --delay}" -- 
"${cur}")) ;;
+               -e|--exec) COMPREPLY=($(compgen -A command -- "${cur}")) ;;
+               -q|--quality) COMPREPLY=($(compgen -W "${opts/-q --quality}" -- 
"${cur}")) ;;
+               -m|--multidisp) COMPREPLY=($(compgen -W "${opts/-m 
--multidisp}" -- "${cur}")) ;;
+               -s|--select) COMPREPLY=($(compgen -W "${opts/-s --select}" -- 
"${cur}")) ;;
+               -u|--focused) COMPREPLY=($(compgen -W "${opts/-u --focused}" -- 
"${cur}")) ;;
+               -t|--thumb) COMPREPLY=($(compgen -W "${opts/-t --thumb}" -- 
"${cur}")) ;;
+               -z|--silent) COMPREPLY=($(compgen -W "${opts/-z --silent}" -- 
"${cur}")) ;;
+               -p|--pointer) COMPREPLY=($(compgen -W "${opts/-p --pointer}" -- 
"${cur}")) ;;
+               -f|--freeze) COMPREPLY=($(compgen -W "${opts/-f --freeze}" -- 
"${cur}")) ;;
+               -o|--overwrite) COMPREPLY=($(compgen -W "${opts/-o 
--overwrite}" -- "${cur}")) ;;
+               -l|--line) COMPREPLY=($(compgen -W "${opts/-l --line}" -- 
"${cur}")) ;;
+               -n|--note) COMPREPLY=($(compgen -W "${opts/-n --note}" -- 
"${cur}")) ;;
+       esac
+}
+complete -F _scrot scrot

diff --git a/media-gfx/scrot/metadata.xml b/media-gfx/scrot/metadata.xml
index 19bf1be2581..ed83e476a26 100644
--- a/media-gfx/scrot/metadata.xml
+++ b/media-gfx/scrot/metadata.xml
@@ -5,4 +5,7 @@
        <email>[email protected]</email>
        <name>Gentoo Graphics Project</name>
 </maintainer>
+<maintainer type="person">
+       <email>[email protected]</email>
+</maintainer>
 </pkgmetadata>

diff --git a/media-gfx/scrot/scrot-1.2.ebuild b/media-gfx/scrot/scrot-1.2.ebuild
new file mode 100644
index 00000000000..d61d7a45964
--- /dev/null
+++ b/media-gfx/scrot/scrot-1.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools bash-completion-r1
+
+DESCRIPTION="Screen capture utility using imlib2 library"
+HOMEPAGE="https://github.com/resurrecting-open-source-projects/scrot";
+SRC_URI="https://github.com/resurrecting-open-source-projects/${PN}/archive/${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="feh LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86"
+
+RDEPEND="
+       >=media-libs/giblib-1.2.3
+       x11-libs/libX11
+       x11-libs/libXcursor
+       x11-libs/libXfixes
+       || (
+               media-libs/imlib2[gif]
+               media-libs/imlib2[jpeg]
+               media-libs/imlib2[png]
+               media-libs/imlib2[tiff]
+       )
+"
+DEPEND="
+       ${RDEPEND}
+       x11-base/xorg-proto
+"
+DOCS=(
+       AUTHORS ChangeLog CONTRIBUTING.md README TODO
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_install() {
+       default
+
+       newbashcomp "${FILESDIR}"/${PN}-1.2.bash-completion ${PN}
+}

Reply via email to