summaryrefslogtreecommitdiff
blob: a88b74156eb867364bdc4d9ddf725587b42bd051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit vcs-snapshot toolchain-funcs

# Commit Date: Dec 18th 2018
COMMIT="362bc381c1c2449509e732d68f07656caf46b420"

DESCRIPTION="Convert terminal recordings to animated gifs"
HOMEPAGE="https://github.com/icholy/ttygif"
SRC_URI="https://github.com/icholy/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"

KEYWORDS="~amd64 ~x86"
LICENSE="MIT"
SLOT="0"

DOCS=( LICENSE README.md )

PATCHES=( "${FILESDIR}/ldflags-support.patch" )

RDEPEND="
	x11-apps/xwd
	app-misc/ttyrec
	media-gfx/imagemagick"

src_compile() {
	emake CC=$(tc-getCC) \
		CFLAGS="${CFLAGS} -DVERSION='\"${PV}\"' -DOS_LINUX" \
		LDFLAGS="${LDFLAGS}"
}

src_install() {
	dobin "${PN}"
	einstalldocs
}