diff options
author | Yixun Lan <dlan@gentoo.org> | 2023-12-05 12:25:20 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2023-12-05 14:19:59 +0000 |
commit | eff0bfa316adcd7ecfa2161e19f8cbe8345f5427 (patch) | |
tree | 547c40471986710eac57c68ab6d9e225e439f9c6 /media-gfx | |
parent | media-gfx/feh: Stabilize 3.10.1 x86, #919273 (diff) | |
download | gentoo-eff0bfa316adcd7ecfa2161e19f8cbe8345f5427.tar.gz gentoo-eff0bfa316adcd7ecfa2161e19f8cbe8345f5427.tar.bz2 gentoo-eff0bfa316adcd7ecfa2161e19f8cbe8345f5427.zip |
media-gfx/feh: add 3.10.2
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/feh/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/feh/feh-3.10.2.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/media-gfx/feh/Manifest b/media-gfx/feh/Manifest index f12ce3fed494..b49a8babb7e7 100644 --- a/media-gfx/feh/Manifest +++ b/media-gfx/feh/Manifest @@ -1,2 +1,3 @@ DIST feh-3.10.1.tar.bz2 2109459 BLAKE2B 1b63a49cf29f2c869ff99ce5bc92134943d7f0854b2c87c694ef3dce953687558330e453c67878b566b19e4b64212173119287d07291e9b81f47cba1d553549e SHA512 fed215f4c1e0c23fdf6454e07bb5a31d4bfe6473b5ac2240d85ce44fabfe5764b396e336154841f0d9e90fee78807ed10b7aa12b7dfcf53e520913cd41779421 +DIST feh-3.10.2.tar.bz2 2113183 BLAKE2B 0f4662068917628be6046d3f2ebd8177b7cc1699d693de31229d2ebc6188cc7a5170202188a426ec2e3d900f2c8fb34007395aecc151f8f034e5461d287f058f SHA512 698501347224887162631397bb3b6c5da81b88993876f001407dea87fdc4f458290272d75b400aea6c0927d3c53f290483b6a89cd2cb426f56957a4fe6267797 DIST feh-3.10.tar.bz2 2109603 BLAKE2B 2c3f52c7536110b5aef7e29fea366b502e39034b2de8b218faa071996f24ce0bf4b3283feeda96bc7542ce15bb6f1e68d2a2895a75949fe2e7c6ba08b779daee SHA512 9dc242a545590ab20847662613c289f4b78d44a1647c3696a65fd05c307628f869adf68fa3a66ca637b3974a309efb0b96d58a7aaa3d29725faf21208f40383e diff --git a/media-gfx/feh/feh-3.10.2.ebuild b/media-gfx/feh/feh-3.10.2.ebuild new file mode 100644 index 000000000000..591d0d3d06a3 --- /dev/null +++ b/media-gfx/feh/feh-3.10.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit toolchain-funcs xdg-utils + +DESCRIPTION="A fast, lightweight imageviewer using imlib2" +HOMEPAGE="https://feh.finalrewind.org/" +SRC_URI="https://feh.finalrewind.org/${P}.tar.bz2" + +LICENSE="feh" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86" +IUSE="debug curl exif test xinerama inotify" +RESTRICT="test" # Tests are broken. + +COMMON_DEPEND=" + media-libs/imlib2[X,text(+)] + >=media-libs/libpng-1.2:0= + x11-libs/libX11 + curl? ( net-misc/curl ) + exif? ( media-libs/libexif ) + xinerama? ( x11-libs/libXinerama )" +RDEPEND="${COMMON_DEPEND} + media-libs/libjpeg-turbo:0" +DEPEND="${COMMON_DEPEND} + x11-base/xorg-proto + x11-libs/libXt + test? ( + >=dev-lang/perl-5.10 + dev-perl/Test-Command + media-libs/imlib2[gif,jpeg,png] + )" + +PATCHES=( "${FILESDIR}"/${PN}-3.2-debug-cflags.patch ) + +pkg_setup() { + use_feh() { usex $1 1 0; } + + fehopts=( + PREFIX="${EPREFIX}"/usr + doc_dir='${main_dir}'/share/doc/${PF} + example_dir='${main_dir}'/share/doc/${PF}/examples + curl=$(use_feh curl) + debug=$(use_feh debug) + xinerama=$(use_feh xinerama) + exif=$(use_feh exif) + inotify=$(use_feh inotify) + ) +} + +src_compile() { + tc-export CC + emake "${fehopts[@]}" +} + +src_install() { + emake "${fehopts[@]}" DESTDIR="${D}" install +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +} |