aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2020-02-22 21:41:38 +0100
committerGerion Entrup <gerion.entrup@flump.de>2020-02-22 21:41:38 +0100
commit1c8e74299a61fa9c4c4b9de368d45681374531d8 (patch)
tree90813c5bfafda9aed1e51c0852e3dfc11259f3cc
parentdev-util/cargo-c: add package (diff)
downloadgerislay-1c8e74299a61fa9c4c4b9de368d45681374531d8.tar.gz
gerislay-1c8e74299a61fa9c4c4b9de368d45681374531d8.tar.bz2
gerislay-1c8e74299a61fa9c4c4b9de368d45681374531d8.zip
media-video/rav1e: support for c library
Signed-off-by: Gerion Entrup <gerion.entrup@flump.de>
-rw-r--r--media-video/rav1e/Manifest2
-rw-r--r--media-video/rav1e/metadata.xml8
-rw-r--r--media-video/rav1e/rav1e-9999.ebuild54
3 files changed, 64 insertions, 0 deletions
diff --git a/media-video/rav1e/Manifest b/media-video/rav1e/Manifest
new file mode 100644
index 0000000..3a8b895
--- /dev/null
+++ b/media-video/rav1e/Manifest
@@ -0,0 +1,2 @@
+EBUILD rav1e-9999.ebuild 1115 BLAKE2B 663d7583ecb0274d82839a31935c857648ceb2600d302b6a780a1d74088bb4b5b933ceec16a989338908ae1793ea961d46c315e43159377f7f5b7093c10e4e07 SHA512 4537622f81ace4dcf86735aee245fc72b595f4c93590963aebfb3715f46a1007604068a5522b93b71181aae45ebdcb3a473d9b03a2b316cbcc94014da329c5b7
+MISC metadata.xml 257 BLAKE2B badba0fbfa1f75f96f5bcb2c87ac66b6eb63b243914e9587f515295031fa781f4951490b12a7f18e813dd499187ac2f078b7794acb1f0c6e85e3aa6780696597 SHA512 5da541252f64d35e3c348855e9db16a7aeb9451e152710347953281a9d080f52ddf571a686a5cad7d5f7e90e5a6f33853c0056e6c28ea9ff58096344983725d5
diff --git a/media-video/rav1e/metadata.xml b/media-video/rav1e/metadata.xml
new file mode 100644
index 0000000..894544c
--- /dev/null
+++ b/media-video/rav1e/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Gerion Entrup</name>
+ <email>gerion.entrup@flump.de</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-video/rav1e/rav1e-9999.ebuild b/media-video/rav1e/rav1e-9999.ebuild
new file mode 100644
index 0000000..e375c83
--- /dev/null
+++ b/media-video/rav1e/rav1e-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2017-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Auto-Generated by cargo-ebuild 0.2.0
+
+EAPI=7
+
+inherit cargo
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/xiph/rav1e.git"
+ inherit git-r3
+fi
+
+DESCRIPTION="The fastest and safest AV1 encoder"
+HOMEPAGE="https://github.com/xiph/rav1e/"
+SRC_URI="$(cargo_crate_uris ${CRATES})"
+RESTRICT="mirror"
+LICENSE="BSD-2"
+SLOT="0"
+
+KEYWORDS=""
+IUSE="library"
+
+ASM_DEP=">=dev-lang/nasm-2.14"
+DEPEND="
+ amd64? ( ${ASM_DEP} )
+ library? ( dev-util/cargo-c )
+"
+RDEPEND=""
+
+src_unpack() {
+ if [[ "${PV}" == *9999* ]]; then
+ git-r3_src_unpack
+ cargo_live_src_unpack
+ fi
+}
+
+src_compile() {
+ cargo_src_compile
+ if use library ; then
+ cargo cbuild --release || die
+ fi
+}
+
+src_install() {
+ cargo_src_install
+ if use library ; then
+ cargo cinstall --destdir="${ED}" --prefix="/usr" --libdir "/usr/lib64" --release || die
+ # cargo cinstall seems not to work here so dirty patch the generated pc file
+ sed -i 's,prefix=/usr/local,prefix=/usr,;s,^\(libdir.*\),\164,' "${ED}"/usr/lib64/pkgconfig/rav1e.pc
+ fi
+}
+