-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
packages/atoms/base-multimedia4/media-libs/rlottie/build.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/atoms/base-multimedia4/media-libs/rlottie/definition.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: rlottie | ||
version: "0.2" | ||
version: 0.2+1 | ||
category: media-libs | ||
use_flags: | ||
- -test | ||
|
56 changes: 56 additions & 0 deletions
56
packages/atoms/base-multimedia4/media-libs/rlottie/rlottie-0.2.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
inherit meson | ||
|
||
DESCRIPTION="A platform independent standalone library that plays Lottie Animations" | ||
HOMEPAGE="https://github.com/Samsung/rlottie" | ||
SRC_URI="https://api.github.com/repos/Samsung/rlottie/tarball/v0.2 -> rlottie-0.2.tar.gz" | ||
|
||
LICENSE="BSD FTL JSON MIT" | ||
SLOT="0/0.2" | ||
KEYWORDS="*" | ||
IUSE="debug test" | ||
|
||
RESTRICT="!test? ( test )" | ||
|
||
DEPEND="test? ( dev-cpp/gtest )" | ||
|
||
fix_src_dirs() { | ||
pushd "${WORKDIR}" | ||
mv Samsung-rlottie-* rlottie-0.2 | ||
popd | ||
} | ||
|
||
src_unpack() { | ||
default | ||
fix_src_dirs | ||
} | ||
|
||
src_configure() { | ||
|
||
# Fix compilation with gcc11 | ||
sed -i -e "s|^#include <cstring>.*|#include <cstring>\n#include <limits>|g" \ | ||
src/vector/vrle.cpp | ||
|
||
local emesonargs=( | ||
-D cache=true | ||
-D module=true | ||
-D thread=true | ||
|
||
-D cmake=false | ||
-D example=false | ||
|
||
$(meson_use debug dumptree) | ||
$(meson_use debug log) | ||
$(meson_use test) | ||
) | ||
|
||
meson_src_configure | ||
} | ||
|
||
src_test() { | ||
cd "${BUILD_DIR}" || die "Failed to switch into BUILD_DIR." | ||
eninja test | ||
} |