summaryrefslogtreecommitdiff
path: root/dev-util/lottieconverter/lottieconverter-0.2-r2.ebuild
blob: 7022304d29845c87d120e9c0ad245d43f9592628 (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
38
39
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Simple lottie (telegram animated sticker) converter"
HOMEPAGE="https://github.com/sot-tech/LottieConverter"
SRC_URI="https://github.com/sot-tech/${PN}/archive/refs/tags/r${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/LottieConverter-r${PV}"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc64"

DEPEND="
	media-libs/giflib:=
	media-libs/libpng:=
	media-libs/rlottie:=
	virtual/zlib:=
"
RDEPEND="${DEPEND}"

PATCHES=( "${FILESDIR}"/${PN}-0.2-buildtype.patch )

src_configure() {
	local mycmakeargs=(
		-DSYSTEM_PNG=ON
		-DSYSTEM_RL=ON
		-DSYSTEM_GL=ON
	)
	cmake_src_configure
}

src_install() {
	dobin "${BUILD_DIR}"/lottieconverter
	einstalldocs
}