diff --git a/dev-libs/tweeny/Manifest b/dev-libs/tweeny/Manifest new file mode 100644 index 0000000000..f11cb8539f --- /dev/null +++ b/dev-libs/tweeny/Manifest @@ -0,0 +1 @@ +DIST tweeny-3.1.0.tar.gz 49467 BLAKE2B 7b1a3b7a7dba22d291c89dc3b2ee07458070aa55f2e77adfc1f0de4095187d2a2e0e0960a17a17fd96cccdd114d42d5e1bb4a6a76edc4b97500b2615c0eb574e SHA512 8109c241f866b565d15f1f5f87837f178a4fd3c5169d73e73e18334c54274024b48c9baed1f1935201ab872687bacb9ff3f8ecbae8078de4e1b459242450b9a5 diff --git a/dev-libs/tweeny/metadata.xml b/dev-libs/tweeny/metadata.xml new file mode 100644 index 0000000000..04b071e1b7 --- /dev/null +++ b/dev-libs/tweeny/metadata.xml @@ -0,0 +1,18 @@ + + + + + gentoo@tastytea.de + Ronny (tastytea) Gutbrod + + + Tweeny is an inbetweening library designed for the creation of complex + animations for games and other beautiful interactive software. It + leverages features of modern C++ to empower developers with an intuitive + API for declaring tweenings of any type of value, as long as they + support arithmetic operations. + + + mobius3/tweeny + + diff --git a/dev-libs/tweeny/tweeny-3.1.0.ebuild b/dev-libs/tweeny/tweeny-3.1.0.ebuild new file mode 100644 index 0000000000..e36d70c222 --- /dev/null +++ b/dev-libs/tweeny/tweeny-3.1.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="C++ tweening (inbetweening) library" +HOMEPAGE="https://mobius3.github.io/tweeny/" +SRC_URI="https://github.com/mobius3/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +RDEPEND="" +DEPEND="${RDEPEND}" + +src_prepare() { + cmake_src_prepare + + if use doc; then + sed -i "s@DESTINATION share/doc/Tweeny@DESTINATION share/doc/${PF}@" \ + doc/CMakeLists.txt || die "Could not change documentation path." + fi +} + +src_configure() { + local -a mycmakeargs=( + -DTWEENY_BUILD_EXAMPLES=NO + -DTWEENY_BUILD_DOCUMENTATION=$(usex doc) + -DTWEENY_BUILD_EXTRAS=NO + ) + + cmake_src_configure +}