From bc20d1a205b0a879c55de11b31b327db3321fa05 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Fri, 12 Aug 2022 15:24:44 +0200 Subject: [PATCH] media-video/davinci-resolve: chmod be specific Package-Manager: Portage-3.0.30, Repoman-3.0.3 --- media-video/davinci-resolve/ChangeLog | 6 + media-video/davinci-resolve/Manifest | 6 +- .../davinci-resolve-17.4.6.ebuild | 108 ++++++++++++++++++ .../davinci-resolve-18.0.1.ebuild | 2 +- 4 files changed, 119 insertions(+), 3 deletions(-) create mode 100644 media-video/davinci-resolve/davinci-resolve-17.4.6.ebuild diff --git a/media-video/davinci-resolve/ChangeLog b/media-video/davinci-resolve/ChangeLog index 402dd513..ddb9ad42 100644 --- a/media-video/davinci-resolve/ChangeLog +++ b/media-video/davinci-resolve/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2022 Gentoo Authors; Distributed under the GPL v2 # $Header: $ +*davinci-resolve-17.4.6 (12 Aug 2022) + + 12 Aug 2022; Mario Fetka + +davinci-resolve-17.4.6.ebuild, davinci-resolve-18.0.1.ebuild: + media-video/davinci-resolve: chmod be specific + *davinci-resolve-18.0.1 (12 Aug 2022) 12 Aug 2022; Mario Fetka diff --git a/media-video/davinci-resolve/Manifest b/media-video/davinci-resolve/Manifest index cba58cee..dcb50089 100644 --- a/media-video/davinci-resolve/Manifest +++ b/media-video/davinci-resolve/Manifest @@ -1,6 +1,8 @@ AUX makeresolvedeb_gentoo_1.6.0.patch 3462 BLAKE2B 8072b571bc370b9f0c7b3b62504c9b48f1dbda6e661e60082178244afd9c91e8e969f7d667e70a690066e4cb76c1d7c2425dbd781c5d3815e02663274be1eb07 SHA512 3cb9f7ba8b9a68dced129511e51f1842d81df77cbc98b4ad9b9f4e830d451ad0e8ece2d1dbadf1af636e5202f960b62331478de71466f19706c297ba847be9b8 +DIST DaVinci_Resolve_17.4.6_Linux.zip 2340066824 BLAKE2B 6e87a65f6657a8e9bd5cbcecb62b6dd74b45e4a8d6ae0d6e2aca6643d669a8aa49736e21e9826518897adbbf2d7f36d26bec402424158e4cb232560ab0c7ecdf SHA512 5067737e66d355d28aed34a5ff810ce552c6e8f07b9fcf1935cc7b2bfc65054de67e1a53c68560f58a60e3d63078bc47cba2c4257d0afaa3d76bfc50840a1409 DIST DaVinci_Resolve_18.0.1_Linux.zip 2872982286 BLAKE2B ebdb40b4d2a744857c31b3d9387571fe55f39080633e4df6af71bbd5ee3dc3d14dbeeb9579653c28d1df81d0d96bc21a4ffbd139edbd1c9f490d2b25cafc1313 SHA512 9433e31043aad890c53adf14abfef68ec6fedff92a9afabff7e93fbebef6dc38fb059ad3cfe5d4b9f3de68356b9a618937f94f0f59a01ebc4cbc5fd0fdb2d955 DIST makeresolvedeb_1.6.0_multi.sh.tar.gz 4191 BLAKE2B ab2f09f339700ee31e011811152c6b97cc7e172698236efba0c0254cf69966c776dd222302e1da0266423f0af9c54ae426de4f5354d0d4550ae89b354f0a3d7a SHA512 02baae42c1e9d2163660b765ee6556660b337a3dfe25a60ee4bad9331d84700538ff9b339d045dd91cc0d89d1cd805e56437ae3a8d6ddf6502d0be0f0e5bc114 -EBUILD davinci-resolve-18.0.1.ebuild 2456 BLAKE2B 46d0c333a79ec89a2c14668cf49b92722660f44e806964dd03782e7e8fe88aff0ef38d2592b1e67591f69c33228a2499031dd0605a3f45c88ffac673f6e1d84b SHA512 f71de45d097584a246b3be6e16bd52183ad1723d42d7ee0a1f4c54f0fca695668836b6367782f58bc1a91df75adc06cb1a3f7f9741065e73fabee20399c17748 -MISC ChangeLog 779 BLAKE2B 9f998e11e24a19a9a472c760129b4d70f858ec9616935799aff48fe51f80fc6298439bff39b25daf551a0762738eeec42d8db37f464ce51e722ec0f918aa65ea SHA512 f94d0437290a450cfd8c087d5c0d9b3b0a7c8c5f320023e401c3bbc30465d25959b30ee4e4092085a44927e4d44c8e1744ab40149d6224b751dbb0837672b28f +EBUILD davinci-resolve-17.4.6.ebuild 2467 BLAKE2B fb9de7cd7a13482dcfe42f8e6823179daf144c72d4b8a8024b5aa5f502288862848dacc52bbe40f565f91c04dc991aaf02d5a0ef95e9ac626847f95ffbb16780 SHA512 dbc71120a6131aac4eeb7ab48a67ec153fb9a38316ce38a581fd99cae7f7479daa08b1afc3a88a208fc7c034b13df87fab0c7b104219f391e74fec2ab39781c7 +EBUILD davinci-resolve-18.0.1.ebuild 2467 BLAKE2B fb9de7cd7a13482dcfe42f8e6823179daf144c72d4b8a8024b5aa5f502288862848dacc52bbe40f565f91c04dc991aaf02d5a0ef95e9ac626847f95ffbb16780 SHA512 dbc71120a6131aac4eeb7ab48a67ec153fb9a38316ce38a581fd99cae7f7479daa08b1afc3a88a208fc7c034b13df87fab0c7b104219f391e74fec2ab39781c7 +MISC ChangeLog 984 BLAKE2B 6b5afde0d34caa62f7a6e336c651652380e9144d8c3382dcca2ee680b85724d93deca09c903565ccd79987d39ed61c517f1a5e717f37d3b00d24ac95c038edf3 SHA512 8110c143fd18310b7f12b9eb575f5179a574f0941bf1d6978c96ff4887289ecabfc4c3ab5fb4a9125d9b9d5e65d9d430ebc349965b925ba0bd35cf86466badba MISC metadata.xml 408 BLAKE2B 66a3e2838d5c5f95c7463733cd13b1230ef3ca005ec0c5dac797561be30f950da98dfa41eeb4d43cf97500c9a2e0d04c57b0b084d60107072a988dd7c4d16ded SHA512 9cac3e4a07c425e87274de776e03d243e462341168235cd3991ef4706aa1a902cf6591ae8e965b9c4ed370fc2ebef3ca805a9c761d05c4b994ae8667198b267c diff --git a/media-video/davinci-resolve/davinci-resolve-17.4.6.ebuild b/media-video/davinci-resolve/davinci-resolve-17.4.6.ebuild new file mode 100644 index 00000000..84609da3 --- /dev/null +++ b/media-video/davinci-resolve/davinci-resolve-17.4.6.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +MAJOR_VER="$(ver_cut 1-3)" +#MAJOR_VER="18.0b1" +if [[ "${PN}" == "davinci-resolve-studio" ]] ; then + BASE_NAME="DaVinci_Resolve_Studio_${MAJOR_VER}_Linux" + CONFLICT_PKG="!!media-video/davinci-resolve" +else + BASE_NAME="DaVinci_Resolve_${MAJOR_VER}_Linux" + CONFLICT_PKG="!!media-video/davinci-resolve-studio" +fi +ARC_NAME="${BASE_NAME}.zip" +MRD_VER=1.6.0 +inherit udev xdg + +DESCRIPTION="Professional A/V post-production software suite" +HOMEPAGE=" + https://www.blackmagicdesign.com/support/family/davinci-resolve-and-fusion +" +SRC_URI="${ARC_NAME} + https://www.danieltufvesson.com/download/?file=makeresolvedeb/makeresolvedeb_${MRD_VER}_multi.sh.tar.gz" + +LICENSE="all-rights-reserved" +KEYWORDS="-* ~amd64" +SLOT="0" +IUSE="doc udev" + +RESTRICT="strip mirror bindist fetch userpriv" + +RDEPEND=" + virtual/glu + x11-libs/gtk+:= + ${CONFLICT_PKG} +" + +DEPEND=" + app-arch/libarchive + dev-libs/openssl-compat + dev-qt/qtcore:5 + dev-qt/qtsvg:5 + dev-qt/qtwebengine:5 + dev-qt/qtwebsockets:5 + media-libs/gstreamer + media-libs/libpng + sys-fs/fuse[suid] + udev? ( virtual/udev ) + virtual/opencl + x11-misc/xdg-user-dirs + ${RDEPEND} +" + +BDEPEND="dev-util/patchelf" + +S="${WORKDIR}" +DR="${WORKDIR}/davinci-resolve_${MAJOR_VER}-mrd${MRD_VER}_amd64" + +QA_PREBUILT="*" + +pkg_nofetch() { + einfo "Please download installation file" + einfo " - ${ARC_NAME}" + einfo "from ${HOMEPAGE} and place it in \$\{DISTDIR\}." + einfo "====" + einfo "Please download installation file" + einfo " - makeresolvedeb_${MRD_VER}_multi.sh.tar.gz" + einfo "from https://www.danieltufvesson.com/makeresolvedeb and place it in \$\{DISTDIR\}." +} + +src_prepare() { + mv "${WORKDIR}"/makeresolvedeb*.sh "${WORKDIR}"/makeresolvedeb.sh + eapply -p0 "${FILESDIR}/makeresolvedeb_gentoo_${MRD_VER}.patch" + + eapply_user + + sed -i -e "s!#LIBDIR#!$(get_libdir)!" "${WORKDIR}"/makeresolvedeb.sh || die "Sed failed!" +} + +_adjust_sandbox() { + addwrite /dev + addread /dev + addpredict /root + addpredict /etc + addpredict /lib + addpredict /usr + addpredict /sys + addpredict "/var/BlackmagicDesign/DaVinci Resolve" +} + +src_compile() { + _adjust_sandbox + cd "${WORKDIR}" + chmod u+x ${BASE_NAME}.run + CI_TEST="1" "${WORKDIR}"/makeresolvedeb.sh ${BASE_NAME}.run +} + +src_install() { + cp -a ${DR}/lib "${ED}" || die + cp -a ${DR}/opt "${ED}" || die + cp -a ${DR}/usr "${ED}" || die + cp -a ${DR}/var "${ED}" || die + + if use doc ; then + dodoc *.pdf + fi +} \ No newline at end of file diff --git a/media-video/davinci-resolve/davinci-resolve-18.0.1.ebuild b/media-video/davinci-resolve/davinci-resolve-18.0.1.ebuild index 8df783fd..84609da3 100644 --- a/media-video/davinci-resolve/davinci-resolve-18.0.1.ebuild +++ b/media-video/davinci-resolve/davinci-resolve-18.0.1.ebuild @@ -92,7 +92,7 @@ _adjust_sandbox() { src_compile() { _adjust_sandbox cd "${WORKDIR}" - chmod u+x *.run + chmod u+x ${BASE_NAME}.run CI_TEST="1" "${WORKDIR}"/makeresolvedeb.sh ${BASE_NAME}.run }