Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/qiv/
Date: Tue, 29 Sep 2020 06:37:54
Message-Id: 1601358914.b158900e389a0fe14e37ffabfb3965210ec7bcd8.juippis@gentoo
1 commit: b158900e389a0fe14e37ffabfb3965210ec7bcd8
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Sun Aug 23 23:57:05 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 29 05:55:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b158900e
7
8 media-gfx/qiv: update HOMEPAGE and SRC_URI
9
10 Closes: https://bugs.gentoo.org/738754
11 Package-Manager: Portage-2.3.103, Repoman-2.3.23
12 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/17245
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 media-gfx/qiv/Manifest | 1 +
17 media-gfx/qiv/metadata.xml | 3 --
18 media-gfx/qiv/qiv-2.3.2-r1.ebuild | 63 +++++++++++++++++++++++++++++++++++++++
19 3 files changed, 64 insertions(+), 3 deletions(-)
20
21 diff --git a/media-gfx/qiv/Manifest b/media-gfx/qiv/Manifest
22 index b1a72d480cc..4d5c17faf5f 100644
23 --- a/media-gfx/qiv/Manifest
24 +++ b/media-gfx/qiv/Manifest
25 @@ -1 +1,2 @@
26 DIST qiv-2.3.2.tar.gz 135164 BLAKE2B b6b82c3007cd3214bb0b812026d22ab0a3c7fce87e51c1f2e19634fe131656f7adc1e92d2e1fcdcc563f1fd8b7c298307e48823bb26e077b336a6983f31894ac SHA512 a6750ecf26bc5b78fbebfdfcfd7a8ab0a5d3ba4e4b19c4a5563e1631dfaf8cc98f7a0bc9449956bc06f8b98cb307b31f78178676ddc9df4fa03429fa31c174e8
27 +DIST qiv-2.3.2.tgz 133614 BLAKE2B f06f36524db8cdde1baf3e118e8ceeeb654dd49a674b55d661255734c0bedaa765fcf8bb77b03d3c2bac8d75a9088b3290f1d802d670393b6795fee85dd4f778 SHA512 c4636591f79e8e4c13807433a4101a461e614439e497a5637b958bd9d0937b04515854483d4060d9b1004d6c6060b437d634fdbe491eb0747a660ba65240472d
28
29 diff --git a/media-gfx/qiv/metadata.xml b/media-gfx/qiv/metadata.xml
30 index 14169f8501b..7a38bb90096 100644
31 --- a/media-gfx/qiv/metadata.xml
32 +++ b/media-gfx/qiv/metadata.xml
33 @@ -2,7 +2,4 @@
34 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 <pkgmetadata>
36 <!-- maintainer-needed -->
37 - <upstream>
38 - <remote-id type="bitbucket">ciberandy/qiv</remote-id>
39 - </upstream>
40 </pkgmetadata>
41
42 diff --git a/media-gfx/qiv/qiv-2.3.2-r1.ebuild b/media-gfx/qiv/qiv-2.3.2-r1.ebuild
43 new file mode 100644
44 index 00000000000..bb8d07f04ab
45 --- /dev/null
46 +++ b/media-gfx/qiv/qiv-2.3.2-r1.ebuild
47 @@ -0,0 +1,63 @@
48 +# Copyright 1999-2020 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=7
52 +
53 +inherit desktop toolchain-funcs xdg
54 +
55 +DESCRIPTION="Quick Image Viewer"
56 +HOMEPAGE="https://spiegl.de/qiv/ https://codeberg.org/ciberandy/qiv"
57 +SRC_URI="https://spiegl.de/qiv/download/${P}.tgz"
58 +
59 +LICENSE="GPL-2"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~mips ~x86"
62 +IUSE="exif lcms magic"
63 +
64 +RDEPEND="
65 + media-libs/imlib2[X]
66 + >=x11-libs/gtk+-2.12:2
67 + exif? ( media-libs/libexif )
68 + lcms? (
69 + media-libs/lcms:2
70 + media-libs/tiff:0
71 + virtual/jpeg:0
72 + )
73 + magic? ( sys-apps/file )"
74 +DEPEND="${RDEPEND}"
75 +BDEPEND="virtual/pkgconfig"
76 +
77 +PATCHES=( "${FILESDIR}"/${P}-optional-tiff.patch )
78 +
79 +src_prepare() {
80 + default
81 +
82 + sed -i \
83 + -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' \
84 + Makefile || die
85 +
86 + if ! use exif ; then
87 + sed -i 's/^EXIF =/#\0/' Makefile || die
88 + fi
89 +
90 + if ! use lcms ; then
91 + sed -i 's/^LCMS =/#\0/' Makefile || die
92 + fi
93 +
94 + if ! use magic ; then
95 + sed -i 's/^MAGIC =/#\0/' Makefile || die
96 + fi
97 +}
98 +
99 +src_compile() {
100 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
101 +}
102 +
103 +src_install() {
104 + dobin qiv
105 + doman qiv.1
106 + dodoc Changelog contrib/qiv-command.example README README.TODO
107 +
108 + domenu qiv.desktop
109 + doicon qiv.png
110 +}