diff --git a/media-plugins/vapoursynth-descale/Manifest b/media-plugins/vapoursynth-descale/Manifest new file mode 100644 index 0000000..98c206e --- /dev/null +++ b/media-plugins/vapoursynth-descale/Manifest @@ -0,0 +1 @@ +DIST vapoursynth-descale-2.tar.gz 7535 BLAKE2B 65b98d5cb19c40d415c1b19cc807555684e9165d23240394be3acc08969ed54ac6c7304234236e6068d4c0d0d83c1cca5ee7a3a6bba318d19084dedf2232c0b4 SHA512 02cd494a6de7b1374bd7580523639e0ad41ed7c835876363a4432dd6baeeb65f64d6b8a5dcf78850ffed4fad28b0f21fe6df5ad575e5d9ec9903f643b2ab003a diff --git a/media-plugins/vapoursynth-descale/vapoursynth-descale-2.ebuild b/media-plugins/vapoursynth-descale/vapoursynth-descale-2.ebuild new file mode 100644 index 0000000..f514c48 --- /dev/null +++ b/media-plugins/vapoursynth-descale/vapoursynth-descale-2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="VapourSynth plugin to undo upscaling" +HOMEPAGE="https://github.com/Frechdachs/vapoursynth-descale" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Frechdachs/vapoursynth-descale.git" + KEYWORDS="" +else + inherit vcs-snapshot + SRC_URI="https://github.com/Frechdachs/${PN}/archive/r${PV}.tar.gz -> ${PN}-${PV}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="WTFPL" +SLOT="0" + +RDEPEND+=" + media-libs/vapoursynth +" +DEPEND="${RDEPEND}" + +LIBNAME="libdescale.so" +EXTRAFLAGS="-fPIC -shared -std=c++11" + +src_compile(){ + echo "$(tc-getCXX) ${CFLAGS} ${EXTRAFLAGS} ${LDFLAGS} -o ${LIBNAME} descale.cpp" + $(tc-getCXX) ${CFLAGS} ${EXTRAFLAGS} ${LDFLAGS} -o ${LIBNAME} descale.cpp || die "Build failed" +} + +src_install(){ + exeinto /usr/$(get_libdir)/vapoursynth/ + doexe ${LIBNAME} +}