diff options
Diffstat (limited to 'media-gfx/feh')
-rw-r--r-- | media-gfx/feh/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/feh/feh-3.10.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/media-gfx/feh/Manifest b/media-gfx/feh/Manifest index a31da4b42f09..c999600725f8 100644 --- a/media-gfx/feh/Manifest +++ b/media-gfx/feh/Manifest @@ -1,5 +1,7 @@ AUX feh-3.2-debug-cflags.patch 193 BLAKE2B 298f65a8f9142167d1cd2cfce0bc61ad9d7d4a5519ab8e78d1259ea60b5566376f8d9ddba660db65ef5e229bdc0ff254d9aab2284d8929ea0ac171da44f8c44d SHA512 336d23b767c5c3da9b94a1e6759129c242caf70a611b2410816a562d90720e3abab6a3444ce06975d62b4ebbe8e54c70942800516c7575cc6d5e13ce69679884 +DIST feh-3.10.tar.bz2 2109603 BLAKE2B 2c3f52c7536110b5aef7e29fea366b502e39034b2de8b218faa071996f24ce0bf4b3283feeda96bc7542ce15bb6f1e68d2a2895a75949fe2e7c6ba08b779daee SHA512 9dc242a545590ab20847662613c289f4b78d44a1647c3696a65fd05c307628f869adf68fa3a66ca637b3974a309efb0b96d58a7aaa3d29725faf21208f40383e DIST feh-3.9.1.tar.bz2 2108873 BLAKE2B af559837224a90e403015648717cb9aa516d18bceb0a49a0635b471435370209c80b77a7a87f66b22c99615d44be0832a0d03152aabde72917417e5f992a5d8a SHA512 78682ec80df6b6655dbc18774ee95b3d68f1711a50129a9befb8adfb8c1a74aeede2493a35955687cdc2aa079978927727dac02543643418ef8deefa0d8c6d05 +EBUILD feh-3.10.ebuild 1546 BLAKE2B 79abfd9e44d752b7b68d3a0b76bb153ce6c6b45be2f507f4a1d36a01a1503b7b6e0aed6555c9c85c1617e2a8c408f33a074336205d0ff79ba7923db4ac50c887 SHA512 86fffbeeba8461d7203dee78a0c7cd249cc296e1a8c65b598a1e3d13c20c5c022392d9c16995d6c07b47a3d6a4d861df1b20b334948fbd38b016d28ab5a86cb8 EBUILD feh-3.9.1-r1.ebuild 1546 BLAKE2B 79abfd9e44d752b7b68d3a0b76bb153ce6c6b45be2f507f4a1d36a01a1503b7b6e0aed6555c9c85c1617e2a8c408f33a074336205d0ff79ba7923db4ac50c887 SHA512 86fffbeeba8461d7203dee78a0c7cd249cc296e1a8c65b598a1e3d13c20c5c022392d9c16995d6c07b47a3d6a4d861df1b20b334948fbd38b016d28ab5a86cb8 EBUILD feh-3.9.1.ebuild 1532 BLAKE2B e2a475b618b97749c568e6afd10b4047c137964b7f71b8cef77277968a42a228801ce924ea6e9a47dd6b2dde66771404fd6d970029a0829757299b0b820b7bdf SHA512 279bd900631c97e9e14998ba7629b92a4f057f0229f440db0f1080b087810f9a49366ea5c5e0892c5fd5bd25c6709baed6da3c55bb1bfd9508aa01f60b29ffc9 MISC metadata.xml 253 BLAKE2B ac07d0a4457abddec76b322a6e7f175661559091067a6f3d92658d4e6c2f1f90a57f5d0c139de0a91a19a5a797fed39fc66fd90ca25bfd0c66497ee8e4088810 SHA512 40abc637528fae614d2eb151b5834c323cb151d5c9ebbee415d70efb4603df0fa7483e0d689ea1658a424ac1e54fb944d8eca37a4bd80bbc15222ed9259096df diff --git a/media-gfx/feh/feh-3.10.ebuild b/media-gfx/feh/feh-3.10.ebuild new file mode 100644 index 000000000000..ccf4a73ffa70 --- /dev/null +++ b/media-gfx/feh/feh-3.10.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 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 +} |