blob: 0a16b7236a95adf50907aa09105bebdc27a6beed (
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
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cargo flag-o-matic
DESCRIPTION="Rust library for drawing Lottie animations"
HOMEPAGE="https://github.com/dkaraush/tlottie"
SRC_URI="https://github.com/dkaraush/tlottie/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SV="${PV}"
SLOT="0/${SV}"
KEYWORDS="~amd64"
if [ ${PV} = 1.0.6 ]; then
# Failing tests
RESTRICT+=" test"
fi
src_prepare() {
# Patch out optional dependencies (this package has no crate dependencies)
sed -e '/optional = true/d' \
-e '/^no-std =/cno-std = []' \
-i Cargo.toml || die
default
}
src_configure() {
local myfeatures=(
c-api
)
cargo_src_configure
}
src_compile() {
local -Ix LDFLAGS
append-ldflags -Wl,-soname,libtlottie.so.${SV}
cargo_src_compile
}
src_install() {
einstalldocs
newlib.so "$(cargo_target_dir)/libtlottie.so" libtlottie.so.${SV}
dosym libtlottie.so.${SV} /usr/$(get_libdir)/libtlottie.so
insinto /usr/include
doins include/tlottie.h
}
|