dev-libs/tweeny: New package.

Dependency for net-im/nheko.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2020-05-25 02:06:34 +02:00
parent 655f1afa8d
commit e9ae04bf52
3 changed files with 56 additions and 0 deletions

View File

@@ -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
}