summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-08-24 02:57:05 +0300
committerJoonas Niilola <juippis@gentoo.org>2020-09-29 08:55:14 +0300
commitb158900e389a0fe14e37ffabfb3965210ec7bcd8 (patch)
treecc6489cd5fe23d1d73770c4ab63ba6bed05763ed /media-gfx
parentapp-misc/todo: update upstream repo in metadata (diff)
downloadgentoo-b158900e389a0fe14e37ffabfb3965210ec7bcd8.tar.gz
gentoo-b158900e389a0fe14e37ffabfb3965210ec7bcd8.tar.bz2
gentoo-b158900e389a0fe14e37ffabfb3965210ec7bcd8.zip
media-gfx/qiv: update HOMEPAGE and SRC_URI
Closes: https://bugs.gentoo.org/738754 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17245 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/qiv/Manifest1
-rw-r--r--media-gfx/qiv/metadata.xml3
-rw-r--r--media-gfx/qiv/qiv-2.3.2-r1.ebuild63
3 files changed, 64 insertions, 3 deletions
diff --git a/media-gfx/qiv/Manifest b/media-gfx/qiv/Manifest
index b1a72d480ccf..4d5c17faf5f6 100644
--- a/media-gfx/qiv/Manifest
+++ b/media-gfx/qiv/Manifest
@@ -1 +1,2 @@
DIST qiv-2.3.2.tar.gz 135164 BLAKE2B b6b82c3007cd3214bb0b812026d22ab0a3c7fce87e51c1f2e19634fe131656f7adc1e92d2e1fcdcc563f1fd8b7c298307e48823bb26e077b336a6983f31894ac SHA512 a6750ecf26bc5b78fbebfdfcfd7a8ab0a5d3ba4e4b19c4a5563e1631dfaf8cc98f7a0bc9449956bc06f8b98cb307b31f78178676ddc9df4fa03429fa31c174e8
+DIST qiv-2.3.2.tgz 133614 BLAKE2B f06f36524db8cdde1baf3e118e8ceeeb654dd49a674b55d661255734c0bedaa765fcf8bb77b03d3c2bac8d75a9088b3290f1d802d670393b6795fee85dd4f778 SHA512 c4636591f79e8e4c13807433a4101a461e614439e497a5637b958bd9d0937b04515854483d4060d9b1004d6c6060b437d634fdbe491eb0747a660ba65240472d
diff --git a/media-gfx/qiv/metadata.xml b/media-gfx/qiv/metadata.xml
index 14169f8501b5..7a38bb900964 100644
--- a/media-gfx/qiv/metadata.xml
+++ b/media-gfx/qiv/metadata.xml
@@ -2,7 +2,4 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
- <upstream>
- <remote-id type="bitbucket">ciberandy/qiv</remote-id>
- </upstream>
</pkgmetadata>
diff --git a/media-gfx/qiv/qiv-2.3.2-r1.ebuild b/media-gfx/qiv/qiv-2.3.2-r1.ebuild
new file mode 100644
index 000000000000..bb8d07f04ab6
--- /dev/null
+++ b/media-gfx/qiv/qiv-2.3.2-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop toolchain-funcs xdg
+
+DESCRIPTION="Quick Image Viewer"
+HOMEPAGE="https://spiegl.de/qiv/ https://codeberg.org/ciberandy/qiv"
+SRC_URI="https://spiegl.de/qiv/download/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~x86"
+IUSE="exif lcms magic"
+
+RDEPEND="
+ media-libs/imlib2[X]
+ >=x11-libs/gtk+-2.12:2
+ exif? ( media-libs/libexif )
+ lcms? (
+ media-libs/lcms:2
+ media-libs/tiff:0
+ virtual/jpeg:0
+ )
+ magic? ( sys-apps/file )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-optional-tiff.patch )
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' \
+ Makefile || die
+
+ if ! use exif ; then
+ sed -i 's/^EXIF =/#\0/' Makefile || die
+ fi
+
+ if ! use lcms ; then
+ sed -i 's/^LCMS =/#\0/' Makefile || die
+ fi
+
+ if ! use magic ; then
+ sed -i 's/^MAGIC =/#\0/' Makefile || die
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin qiv
+ doman qiv.1
+ dodoc Changelog contrib/qiv-command.example README README.TODO
+
+ domenu qiv.desktop
+ doicon qiv.png
+}