mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-11 23:59:13 +02:00
Fixed upstream in >=6.0.0. Bug: https://bugs.gentoo.org/859823 Signed-off-by: Sam James <sam@gentoo.org>
61 lines
1.3 KiB
Bash
61 lines
1.3 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake desktop xdg-utils
|
|
|
|
JUMBOV=20070520
|
|
DESCRIPTION="Interactive image manipulation program supporting a wide variety of formats"
|
|
HOMEPAGE="https://github.com/jasper-software/xv/"
|
|
SRC_URI="https://github.com/jasper-software/xv/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
|
https://dev.gentoo.org/~bkohler/dist/xv-3.10a.png.bz2"
|
|
|
|
LICENSE="xv"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 ~hppa ~mips ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
|
IUSE="jpeg tiff png webp"
|
|
|
|
DEPEND="
|
|
x11-libs/libXt
|
|
jpeg? ( media-libs/libjpeg-turbo:= )
|
|
tiff? ( media-libs/tiff:= )
|
|
png? (
|
|
>=media-libs/libpng-1.2:=
|
|
sys-libs/zlib
|
|
)
|
|
webp? ( media-libs/libwebp:= )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/xv-5.2.0-osx-bsd.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
|
|
-DXV_ENABLE_JPEG=$(usex jpeg)
|
|
-DXV_ENABLE_JP2K=OFF
|
|
-DXV_ENABLE_PNG=$(usex png)
|
|
-DXV_ENABLE_TIFF=$(usex tiff)
|
|
-DXV_ENABLE_WEBP=$(usex webp)
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
cmake_src_install
|
|
|
|
newicon "${WORKDIR}"/xv-3.10a.png ${PN}.png
|
|
make_desktop_entry xv "" "" "Graphics;Viewer"
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_desktop_database_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
xdg_desktop_database_update
|
|
}
|