summaryrefslogtreecommitdiff
path: root/media-video/rav1e
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
commit623ee73d661e5ed8475cb264511f683407d87365 (patch)
tree993eb27c93ec7a2d2d19550300d888fc1fed9e69 /media-video/rav1e
parentceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff)
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'media-video/rav1e')
-rw-r--r--media-video/rav1e/Manifest4
-rw-r--r--media-video/rav1e/metadata.xml3
-rw-r--r--media-video/rav1e/rav1e-9999.ebuild35
3 files changed, 35 insertions, 7 deletions
diff --git a/media-video/rav1e/Manifest b/media-video/rav1e/Manifest
index d983647fb5a6..fd38f4cee872 100644
--- a/media-video/rav1e/Manifest
+++ b/media-video/rav1e/Manifest
@@ -1,2 +1,2 @@
-EBUILD rav1e-9999.ebuild 639 BLAKE2B 5fab52058ecc7456d4696cccc2db1bedc97f088e5cb27b7db755f358aabdc2f17932cdb70f3e3231e872261ad54c0d5f90c92b12809c4f803ecd959e97c15506 SHA512 367e4f8025b9472097d81fa3435ad616dfd72aa2fe099559013f5fcb858f827ef2754e82fa6c16813f43a901f14d480ba40af1a1d5990ef86118d53e2af69377
-MISC metadata.xml 222 BLAKE2B 1c7746701a7405c30d961a743df2c2b3b1c5f20c863057e76862844f34bcf701a01f5b31d6b6dc4b4c3192a0f833b783d0c1db3c79f25ea45b576e1c575b502f SHA512 f5b07576edb64cee121aab00dd2a5f0c080fa947e00b6ff6ad6c514a82c132230426ca81e3430d7785c212786f7ead5f6c3f48e58478507df7d96a4e734168ab
+EBUILD rav1e-9999.ebuild 1194 BLAKE2B a171494aae26d0b01698b2e84eb688ea3ecfec3c8fd61f11dc335e5ba79969e10f8f2c5838ff2777296a9838d26a71ce5ede139b18238a23d5452d838e6b4d5a SHA512 7a38e0d27bb2c215a13e1e9668d1dffcd6a089fea16e0ed0a1f78a1dd06f81beda54ddce86b02c264550f19c082d49b0fc9092a07ece8c3f7f58a0b34cb73766
+MISC metadata.xml 308 BLAKE2B 8069331c8143a40bb23e76cbcd9651e16ab3452208db3493cf41c183aa7960921cb49b35edf6a2539bf74e1d1f492c726fd15f85598a506f97d57abefa30ee92 SHA512 62b616a2f3efa944259725f572b15fb298c7bd1704e818d5b1b2826817518587172ad273a8678381339ec8732c451458367fc4dd9c08c345f2a4d8ca56cb2685
diff --git a/media-video/rav1e/metadata.xml b/media-video/rav1e/metadata.xml
index 71e948fffb95..8d7337c607f9 100644
--- a/media-video/rav1e/metadata.xml
+++ b/media-video/rav1e/metadata.xml
@@ -4,4 +4,7 @@
<maintainer type="person">
<email>lu_zero@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="capi">Build the C-API library and header file</flag>
+ </use>
</pkgmetadata>
diff --git a/media-video/rav1e/rav1e-9999.ebuild b/media-video/rav1e/rav1e-9999.ebuild
index 131796f9e62c..3865291f3bed 100644
--- a/media-video/rav1e/rav1e-9999.ebuild
+++ b/media-video/rav1e/rav1e-9999.ebuild
@@ -1,8 +1,6 @@
-# Copyright 2017-2019 Gentoo Authors
+# Copyright 2017-2020 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
@@ -20,11 +18,11 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS=""
-IUSE=""
+IUSE="+capi"
ASM_DEP=">=dev-lang/nasm-2.14"
DEPEND="amd64? ( ${ASM_DEP} )"
-RDEPEND=""
+RDEPEND="capi? ( dev-util/cargo-c )"
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
@@ -32,3 +30,30 @@ src_unpack() {
cargo_live_src_unpack
fi
}
+
+src_compile() {
+ export CARGO_HOME="${ECARGO_HOME}"
+ local args=$(usex debug "" --release)
+
+ cargo build ${args} \
+ || die "cargo build failed"
+
+ if use capi; then
+ cargo cbuild ${args} \
+ --prefix="/usr" --libdir="/usr/$(get_libdir)" --destdir="${ED}" \
+ || die "cargo cbuild failed"
+ fi
+}
+
+src_install() {
+ export CARGO_HOME="${ECARGO_HOME}"
+ local args=$(usex debug "" --release)
+
+ if use capi; then
+ cargo cinstall $args \
+ --prefix="/usr" --libdir="/usr/$(get_libdir)" --destdir="${ED}" \
+ || die "cargo cinstall failed"
+ fi
+
+ cargo_src_install
+}