Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/scrot/, media-gfx/scrot/files/
Date: Tue, 05 Nov 2019 09:29:51
Message-Id: 1572946184.c35534ef9174e6bb9fca609ce671d75c6125d763.jer@gentoo
1 commit: c35534ef9174e6bb9fca609ce671d75c6125d763
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 5 09:26:03 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 5 09:29:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c35534ef
7
8 media-gfx/scrot: Version 1.2
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Fixes: https://bugs.gentoo.org/show_bug.cgi?id=588430
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 media-gfx/scrot/Manifest | 1 +
15 media-gfx/scrot/files/scrot-1.2.bash-completion | 41 +++++++++++++++++++++++
16 media-gfx/scrot/metadata.xml | 3 ++
17 media-gfx/scrot/scrot-1.2.ebuild | 44 +++++++++++++++++++++++++
18 4 files changed, 89 insertions(+)
19
20 diff --git a/media-gfx/scrot/Manifest b/media-gfx/scrot/Manifest
21 index 59dd502e262..06237c18879 100644
22 --- a/media-gfx/scrot/Manifest
23 +++ b/media-gfx/scrot/Manifest
24 @@ -1,2 +1,3 @@
25 +DIST scrot-1.2.tar.gz 36839 BLAKE2B 26ca05fb3c8fa9069ad87bdd5cc93791994e44e2f5cd7a4b729a6c9e3035c349049500b9627fd31532c280465f77f839370d095f1b0f2ccc10649b3e6fa01edb SHA512 b89e7a94e6317fdb7bd260190c6d68a2dfefc08691b4574337afdfff84f55b8b9c955a6ac60642ae9749c1deaa16bee7b855fbd15833a95f602536693daf8c37
26 DIST scrot_0.8-13.debian.tar.gz 7943 BLAKE2B 6c58c76f3a8dcf61a8ca4c31f5845cb27b4d0ed2bf9619cc8ea5824b5e42c66ee5163c7f4e76308763947b933003dbd3df6e641b0596ed342993343fd5418a75 SHA512 3f6d0a8e592088af38a3d90394b6b7246430479f5b0c8451af5eae383725d1896dc4bbf595495f9f2b546f00ef38780123c4ee0e3f06971c55a6ac2dfa5b7d53
27 DIST scrot_0.8.orig.tar.gz 74324 BLAKE2B 56facc81c29f101279ffc6d5d323a0cecd32b1ff6d1d4bb2052a90703353a9ad5b6ab46c8840ed20834f976badab4258fbb0f031645d9689eef1b838ebd4b1a0 SHA512 cba8f589e45758ddbfe4e276399a1ecb0dbe29569be5d85d97733e7f64de2911bd2d03e62700ad0c718a1fc886c2e3def9dee1de5cac884f9e65e772cebe838c
28
29 diff --git a/media-gfx/scrot/files/scrot-1.2.bash-completion b/media-gfx/scrot/files/scrot-1.2.bash-completion
30 new file mode 100644
31 index 00000000000..53c80bc3cd3
32 --- /dev/null
33 +++ b/media-gfx/scrot/files/scrot-1.2.bash-completion
34 @@ -0,0 +1,41 @@
35 +# bash-completion script for scrot
36 +# place this in /etc/bash_completion.d
37 +
38 +_scrot() {
39 + local cur prev opts
40 + COMPREPLY=()
41 + cur=${COMP_WORDS[COMP_CWORD]}
42 + prev=${COMP_WORDS[COMP_CWORD-1]}
43 + opts="
44 + -h --help -v --version -a --autoselect -b --border -c --count -d
45 + --delay -e --exec -q --quality -m --multidisp -s --select -u --focused
46 + -t --thumb -z --silent -p --pointer -f --freeze -o --overwrite -l
47 + --line -n --note
48 + "
49 +
50 + if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then
51 + COMPREPLY=($(compgen -W "${opts}" -- "${cur}"))
52 + fi
53 +
54 + case "${prev}" in
55 + -h|--help) COMPREPLY=($(compgen -W "${opts/-h --help}" -- "${cur}")) ;;
56 + -v|--version) COMPREPLY=($(compgen -W "${opts/-v --version}" -- "${cur}")) ;;
57 + -a|--autoselect) COMPREPLY=($(compgen -W "${opts/-a --autoselect}" -- "${cur}")) ;;
58 + -b|--border) COMPREPLY=($(compgen -W "${opts/-b --border}" -- "${cur}")) ;;
59 + -c|--count) COMPREPLY=($(compgen -W "${opts/-c --count}" -- "${cur}")) ;;
60 + -d|--delay) COMPREPLY=($(compgen -W "${opts/-d --delay}" -- "${cur}")) ;;
61 + -e|--exec) COMPREPLY=($(compgen -A command -- "${cur}")) ;;
62 + -q|--quality) COMPREPLY=($(compgen -W "${opts/-q --quality}" -- "${cur}")) ;;
63 + -m|--multidisp) COMPREPLY=($(compgen -W "${opts/-m --multidisp}" -- "${cur}")) ;;
64 + -s|--select) COMPREPLY=($(compgen -W "${opts/-s --select}" -- "${cur}")) ;;
65 + -u|--focused) COMPREPLY=($(compgen -W "${opts/-u --focused}" -- "${cur}")) ;;
66 + -t|--thumb) COMPREPLY=($(compgen -W "${opts/-t --thumb}" -- "${cur}")) ;;
67 + -z|--silent) COMPREPLY=($(compgen -W "${opts/-z --silent}" -- "${cur}")) ;;
68 + -p|--pointer) COMPREPLY=($(compgen -W "${opts/-p --pointer}" -- "${cur}")) ;;
69 + -f|--freeze) COMPREPLY=($(compgen -W "${opts/-f --freeze}" -- "${cur}")) ;;
70 + -o|--overwrite) COMPREPLY=($(compgen -W "${opts/-o --overwrite}" -- "${cur}")) ;;
71 + -l|--line) COMPREPLY=($(compgen -W "${opts/-l --line}" -- "${cur}")) ;;
72 + -n|--note) COMPREPLY=($(compgen -W "${opts/-n --note}" -- "${cur}")) ;;
73 + esac
74 +}
75 +complete -F _scrot scrot
76
77 diff --git a/media-gfx/scrot/metadata.xml b/media-gfx/scrot/metadata.xml
78 index 19bf1be2581..ed83e476a26 100644
79 --- a/media-gfx/scrot/metadata.xml
80 +++ b/media-gfx/scrot/metadata.xml
81 @@ -5,4 +5,7 @@
82 <email>graphics@g.o</email>
83 <name>Gentoo Graphics Project</name>
84 </maintainer>
85 +<maintainer type="person">
86 + <email>jer@g.o</email>
87 +</maintainer>
88 </pkgmetadata>
89
90 diff --git a/media-gfx/scrot/scrot-1.2.ebuild b/media-gfx/scrot/scrot-1.2.ebuild
91 new file mode 100644
92 index 00000000000..d61d7a45964
93 --- /dev/null
94 +++ b/media-gfx/scrot/scrot-1.2.ebuild
95 @@ -0,0 +1,44 @@
96 +# Copyright 1999-2019 Gentoo Authors
97 +# Distributed under the terms of the GNU General Public License v2
98 +
99 +EAPI=7
100 +inherit autotools bash-completion-r1
101 +
102 +DESCRIPTION="Screen capture utility using imlib2 library"
103 +HOMEPAGE="https://github.com/resurrecting-open-source-projects/scrot"
104 +SRC_URI="https://github.com/resurrecting-open-source-projects/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
105 +
106 +LICENSE="feh LGPL-2+"
107 +SLOT="0"
108 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86"
109 +
110 +RDEPEND="
111 + >=media-libs/giblib-1.2.3
112 + x11-libs/libX11
113 + x11-libs/libXcursor
114 + x11-libs/libXfixes
115 + || (
116 + media-libs/imlib2[gif]
117 + media-libs/imlib2[jpeg]
118 + media-libs/imlib2[png]
119 + media-libs/imlib2[tiff]
120 + )
121 +"
122 +DEPEND="
123 + ${RDEPEND}
124 + x11-base/xorg-proto
125 +"
126 +DOCS=(
127 + AUTHORS ChangeLog CONTRIBUTING.md README TODO
128 +)
129 +
130 +src_prepare() {
131 + default
132 + eautoreconf
133 +}
134 +
135 +src_install() {
136 + default
137 +
138 + newbashcomp "${FILESDIR}"/${PN}-1.2.bash-completion ${PN}
139 +}