odrling-overlay/media-plugins/vapoursynth-adaptivegrain/vapoursynth-adaptivegrain-9999.ebuild

58 lines
1.3 KiB
Bash

# Copyright 2017-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.3.0
EAPI=7
CRATES="
backtrace-0.3.46
backtrace-sys-0.1.35
bitflags-1.2.1
cc-1.0.50
cfg-if-0.1.10
failure-0.1.7
failure_derive-0.1.7
lazy_static-1.4.0
libc-0.2.68
proc-macro2-1.0.10
quote-1.0.3
rustc-demangle-0.1.16
syn-1.0.17
synstructure-0.12.3
unicode-xid-0.2.0
vapoursynth-0.3.0
vapoursynth-sys-0.3.0
"
inherit git-r3 cargo
DESCRIPTION="Reimplementation of the masking logic of adaptivegrain in Rust"
# Double check the homepage as the cargo_metadata crate
# does not provide this value so instead repository is used
HOMEPAGE="https://git.kageru.moe/kageru/adaptivegrain"
SRC_URI="$(cargo_crate_uris ${CRATES})"
EGIT_REPO_URI="https://git.kageru.moe/kageru/adaptivegrain.git"
RESTRICT="mirror"
# License set may be more restrictive as OR is not respected
# use cargo-license for a more accurate license picture
LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS=""
IUSE=""
src_unpack() {
git-r3_src_unpack
cargo_src_unpack
}
src_install() {
into /usr
LIBDIR_VAR="/" newlib.so "${S}/target/release/libadaptivegrain_rs.so" "libadaptivegrain.so"
mkdir -p "${ED}/usr/$(get_libdir)/vapoursynth"
mv "${ED}/usr/$(get_libdir)/libadaptivegrain.so" "${ED}/usr/$(get_libdir)/vapoursynth/libadaptivegrain.so"
}
DEPEND=""
RDEPEND=""