blob: 937a694a8ebb78e4f9bc9dca3427d802bd9e0656 (
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-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Converts images from gif format to png format"
HOMEPAGE="http://catb.org/~esr/gif2png/"
SRC_URI="http://catb.org/~esr/${PN}/${P}.tar.gz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
RDEPEND=">=media-libs/libpng-1.2:0=
sys-libs/zlib:="
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-2.5.12-makefile.patch
)
src_prepare() {
default
# this release lacks the NEWS file that is being used to
# query the release version
# https://gitlab.com/esr/gif2png/issues/4
sed "s@^VERSION.*@VERSION = ${PV}@" -i Makefile || die
tc-export CC
}
src_install() {
emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install
}
|