media-gfx/img2xterm - 9999 (haarp)

Search

Install

Install this version:

emerge -a =media-gfx/img2xterm-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-gfx/img2xterm-9999

Or alternatively:

emerge --autounmask-write -a =media-gfx/img2xterm-9999

Package Information

Description:
Displays images on your 256-color terminal with Unicode block characters
Homepage:
https://github.com/rossy/img2xterm
License:
CC0-1.0

Ebuild Details

Version EAPI Keywords Slot
9999 7 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit git-r3

DESCRIPTION="Displays images on your 256-color terminal with Unicode block characters"
HOMEPAGE="https://github.com/rossy/img2xterm"
EGIT_REPO_URI="https://github.com/rossy/img2xterm.git"

LICENSE="CC0-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=sys-libs/ncurses-5
	media-gfx/imagemagick"
DEPEND=${RDEPEND}

src_prepare() {
	sed -i -e '/CC = gcc/d' -e '/CFLAGS = -O2 -Wall/d' -e '/LDFLAGS = -s/d' Makefile || die
	sed -i -e 's@wand/MagickWand.h@MagickWand/MagickWand.h@' img2xterm.c || die

	eapply_user
}

src_install() {
	dobin img2xterm
	gzip -dc man6/img2xterm.6.gz > img2xterm.6 || die
	doman img2xterm.6
}

Inherited Eclasses

Dependencies

DEPEND

>=sys-libs/ncurses-5
	media-gfx/imagemagick

RDEPEND

>=sys-libs/ncurses-5
	media-gfx/imagemagick