media-gfx/feh: Version bump
authorMarkos Chandras <hwoarang@gentoo.org>
Tue, 6 Oct 2015 16:50:14 +0000 (17:50 +0100)
committerMarkos Chandras <hwoarang@gentoo.org>
Tue, 6 Oct 2015 16:50:34 +0000 (17:50 +0100)
Package-Manager: portage-2.2.22

media-gfx/feh/Manifest
media-gfx/feh/feh-2.14.ebuild [new file with mode: 0644]

index d9d7747ce34b8014c08b5a7b72d8dc26651f56ce..3a80460ca7c74980c7ed23f04785dea4f3f81388 100644 (file)
@@ -3,4 +3,5 @@ DIST feh-2.11.tar.bz2 2083324 SHA256 9dcc3612d33196cdfa9b3a0513e7048c22f1c243d04
 DIST feh-2.12.1.tar.bz2 2116784 SHA256 9026ece01d79560e1eff9715fa1765eef82e22c766da5994ee787984a6f466a1 SHA512 4afde8ed5e5bc3e44f1989aeafd26d10042e2064f1bf6edd9a01f075a42cfcdd83d6fa5f5698a2e43138b9a3c553a5604748b6b807eba25f83971f645269d993 WHIRLPOOL 1b380bff5f92c843337cde85c567df45c913f9e84dfbdcfb34f46e2e667fb4fef2705b2d3ebbcd80effe44a337bfa9df0426cbfb7d7d32ce13112f9ec45b6c1c
 DIST feh-2.12.tar.bz2 2090538 SHA256 60e07a0f545f6fb7af7b6c0d2ce1ba6bacfa65380e83cbbc2c54e8aa6b8b7032 SHA512 4d24c293ef062eb91dfd009b45f5362bccae26ebb93519f6e324b9c34b3fba4ec1ffda6c01ee71dca4f55e08d6f5101f0f9c3cbf577814eedca956790e745872 WHIRLPOOL b0b647e6785124fdaf4a36615bae081ffcc1b349739da750c6c8c1be2442050344e1bc5b65d3edfd2c6f220ae356321c9a346f5c8e9e4ecb0083fe65de24f359
 DIST feh-2.13.1.tar.bz2 2117354 SHA256 865088d0481f6862d79d7c08d7b6cf1d25058a74a5784e511a1422fea8aba980 SHA512 60f2d691c24495fc126f868d3a4b3e43c7a41d0a3ff9ecfcec66a26b62012ef68bbbab897398c1d054d8eaa747baa180c8a41ed77e750071fde4e57a058b179b WHIRLPOOL 2259b2a2b704dcc27ddb0dd8d879be1445151fc5d0b6d0155df7dd0d1376f54f7a8766f08c68fcffabb10826d8f359a092376e51b316713ff9ff31c9d055afcd
+DIST feh-2.14.tar.bz2 2118007 SHA256 3829cd8995ec7cc08095a2b22a6c98d1e2638bd87c8b4f0e85a059c6f0edbc48 SHA512 6a50ff787d4eecbfa830da7d7c6eec6feffbe883d48fb52b2a08471c8e1b5f0952e5c316ae67aad2b4feaa517bcb16ab8d5a19bd02832f33933dfd78f3a16243 WHIRLPOOL 0e3ed2614ac1a311a6fe73f9cf6e27b99d4c7ef17f69e9ff72cdf8d31bd8fa66308ebd954c6226415fd5103bd4405b49bb07038008a7ea44f724c83723374e35
 DIST feh-2.9.3.tar.bz2 2082188 SHA256 b4e8d603033af12afa77ae8020bcf4ff51c6950b9a6880a0fe32b04fdf7290f2 SHA512 9a0194d43037b1f1b1bd19dc4a9a1c6073504622283c466de1d1952798f37db21b5f2f61c14eeb732c49cc22707a5b47c7009fdaec6141eb3e1b936e2b7b038d WHIRLPOOL e77bd586e26b6ad1e2fb4189fdd33a19e7b45347417223ed65669955903b4ee5efbfa9fd52763b0724efc3bd9f490fa62c77323b5ee3f89445a0338e5fb2eed5
diff --git a/media-gfx/feh/feh-2.14.ebuild b/media-gfx/feh/feh-2.14.ebuild
new file mode 100644 (file)
index 0000000..e5b2f3f
--- /dev/null
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A fast, lightweight imageviewer using imlib2"
+HOMEPAGE="http://feh.finalrewind.org/"
+SRC_URI="http://feh.finalrewind.org/${P}.tar.bz2"
+
+LICENSE="feh"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE="debug curl exif test xinerama"
+
+COMMON_DEPEND="media-libs/imlib2[X]
+       >=media-libs/libpng-1.2:0=
+       x11-libs/libX11
+       curl? ( net-misc/curl )
+       exif? ( media-libs/libexif )
+       xinerama? ( x11-libs/libXinerama )"
+RDEPEND="${COMMON_DEPEND}
+       virtual/jpeg:0"
+DEPEND="${COMMON_DEPEND}
+       x11-libs/libXt
+       x11-proto/xproto
+       test? (
+               >=dev-lang/perl-5.10
+               dev-perl/Test-Command
+               )"
+
+pkg_setup() {
+       use_feh() { usex $1 1 0; }
+
+       fehopts=(
+               DESTDIR="${D}"
+               PREFIX=/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)
+               )
+}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-2.6.2-debug-cflags.patch
+       # fix desktop file
+       sed -i -e "s:^Icon=.*:Icon=/usr/share/feh/images/logo.svg:" \
+               share/applications/${PN}.pre || die
+}
+
+src_compile() {
+       tc-export CC
+       emake "${fehopts[@]}"
+}
+
+src_install() {
+       emake "${fehopts[@]}" install
+}