+++ /dev/null
-Bug: https://bugs.gentoo.org/595832
-Commit: http://svn.savannah.gnu.org/viewvc/fbi-improved?view=revision&revision=735
-
---- a/src/fim.cpp
-+++ b/src/fim.cpp
-@@ -114,7 +114,7 @@
- {"device", required_argument, NULL, 'd',"specify a {framebuffer device}","{framebuffer device}",
- "Framebuffer device to use. Default is the one your vc is mapped to (as in fbi)."
- },
-- {"dump-reference-help", optional_argument /*no_argument*/, NULL, 0xd15cbab3,"dump reference info","[=man]",
-+ {"dump-reference-help", optional_argument /*no_argument*/, NULL, 0x6472690a,"dump reference info","[=man]",
- "Will dump to stdout the language reference help."
- },
- {"dump-default-fimrc", no_argument, NULL, 'D',"dump on standard output the default configuration",NULL,
-@@ -182,7 +182,7 @@
- /* FIXME: shall document this */
- #endif /* FIM_WITH_LIBIMLIB2 */
- },
-- {"offset", required_argument, NULL, 0xFFD8FFE0,"will open the first image file at the specified offset","{bytes-offset}",
-+ {"offset", required_argument, NULL, 0x6f66660a, "will open the first image file at the specified offset","{bytes-offset}",
- "Will use the specified \\fBoffset\\fP (in bytes) for opening the specified files (useful for viewing images on damaged file systems; however, since the internal variables representation is sizeof(int) bytes based, you have a limited offset range: using already chopped image files may be a workaround to this limitation)."
- },/* NEW */
- {"text-reading", no_argument, NULL, 'P',"proceed scrolling as reading through a text document",NULL,
-@@ -979,9 +979,8 @@
- cc.pre_autocmd_add(FIM_VID_SCALE_STYLE"='1';" "autocmd \"" FIM_ACM_POSTSCALE "\" \"\" \"" FIM_FLT_DISPLAY "'resize';\";");
- #endif /* FIM_AUTOCMDS */
- break;
-- case 0xFFD8FFE0:
-- //fbi's
-- // NEW
-+ case 0x6f66660a:
-+ //fim's
- #ifdef FIM_AUTOCMDS
- {
- int ipeppe_offset;
-@@ -1191,7 +1190,7 @@
- }
- #endif /* FIM_WANT_OUTPUT_DEVICE_STRING_CASE_INSENSITIVE */
- break;
-- case 0xd15cbab3:
-+ case 0x6472690a:
- //fim's
- {
- args_t args;
\ No newline at end of file
+++ /dev/null
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils
-
-DESCRIPTION="Fbi-IMproved is a framebuffer image viewer based on Fbi and inspired from Vim"
-HOMEPAGE="https://savannah.nongnu.org/projects/fbi-improved"
-SRC_URI="http://download.savannah.gnu.org/releases/fbi-improved/${P/_rc/-rc}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
-IUSE="aalib dia djvu exif fbcon gif graphicsmagick imagemagick jpeg pdf png postscript readline sdl static svg tiff xfig"
-
-RDEPEND="media-fonts/terminus-font
- aalib? ( media-libs/aalib[slang] )
- dia? ( app-office/dia )
- djvu? ( app-text/djvu )
- exif? ( media-libs/libexif )
- gif? ( media-libs/giflib )
- graphicsmagick? ( media-gfx/graphicsmagick )
- imagemagick? ( virtual/imagemagick-tools )
- jpeg? ( virtual/jpeg:0 )
- pdf? ( >=app-text/poppler-0.31 )
- png? ( media-libs/libpng:0 )
- postscript? ( app-text/libspectre )
- readline? ( sys-libs/readline:0 )
- sdl? ( media-libs/libsdl )
- svg? ( media-gfx/inkscape )
- tiff? ( media-libs/tiff:0 )
- xfig? ( media-gfx/xfig )"
-DEPEND="${RDEPEND}
- sys-devel/bison
- sys-devel/flex"
-
-S=${WORKDIR}/${P/_rc/-rc}
-
-src_prepare() {
- epatch "${FILESDIR}/${P}-poppler031.patch"
- epatch "${FILESDIR}/${PN}-0.4_rc3-gcc6.patch"
-}
-
-src_configure() {
- econf \
- $(use_enable aalib aa) \
- $(use_enable dia) \
- $(use_enable djvu) \
- $(use_enable exif) \
- $(use_enable fbcon framebuffer) \
- $(use_enable gif) \
- $(use_enable graphicsmagick) \
- $(use_enable imagemagick convert) \
- $(use_enable pdf poppler) \
- $(use_enable png) \
- $(use_enable postscript ps) \
- $(use_enable readline) \
- $(use_enable sdl) \
- $(use_enable static) \
- $(use_enable svg inkscape) \
- $(use_enable tiff) \
- $(use_enable xfig) \
- --disable-hardcoded-font \
- --disable-imlib2 \
- --disable-matrices-rendering \
- --disable-xcftopnm \
- --enable-fimrc \
- --enable-history \
- --enable-loader-string-specification \
- --enable-mark-and-dump \
- --enable-output-console \
- --enable-raw-bits-rendering \
- --enable-read-dirs \
- --enable-recursive-dirs \
- --enable-resize-optimizations \
- --enable-scan-consolefonts \
- --enable-screen \
- --enable-scripting \
- --enable-seek-magic \
- --enable-stdin-image-reading \
- --enable-unicode \
- --enable-warnings \
- --enable-windows \
- --with-default-consolefont=/usr/share/consolefonts/ter-114n.psf.gz
-}
-
-src_compile() {
- emake -j1
-}
-
-src_install() {
- emake DESTDIR="${D}" docdir=/usr/share/doc/${PF} install
-}