diff options
author | Sam James <sam@gentoo.org> | 2021-06-10 03:34:39 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-06-10 03:34:39 +0000 |
commit | d1442490653cf38e422983fbe89b23a27bd14993 (patch) | |
tree | 989ac54a13794061f30dff89bdf5fb05f6b614d4 /media-gfx/blender | |
parent | media-gfx/blender: disable tests for now (diff) | |
download | gentoo-d1442490653cf38e422983fbe89b23a27bd14993.tar.gz gentoo-d1442490653cf38e422983fbe89b23a27bd14993.tar.bz2 gentoo-d1442490653cf38e422983fbe89b23a27bd14993.zip |
media-gfx/blender: add test distfile
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/blender')
-rw-r--r-- | media-gfx/blender/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/blender/blender-2.83.15.ebuild | 13 | ||||
-rw-r--r-- | media-gfx/blender/blender-2.93.0.ebuild | 10 | ||||
-rw-r--r-- | media-gfx/blender/blender-9999.ebuild | 10 |
4 files changed, 16 insertions, 19 deletions
diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest index a0063395f2e6..cd0d802dee5e 100644 --- a/media-gfx/blender/Manifest +++ b/media-gfx/blender/Manifest @@ -1,2 +1,4 @@ +DIST blender-2.83.1-tests.tar.bz2 266633785 BLAKE2B 8d8102c3107480de95dfd9ef9dabba1cd82893aad553af2ff5ef1afadc831dc5ccf5553c41466511ecb2a1435bc79c936ad64a78bdd4375e3e30af85b69807c6 SHA512 3ffba6fa8401bba3e2bdbccf7067761114d516371c7778a2f6604a243fd8610e26a30b88a32728c26f7e6274182d298752f32b5e76abf8216be0ec4b3ce38cd9 DIST blender-2.83.15.tar.xz 39125740 BLAKE2B 687097b45b76b474b1c172c9b8ccf5da1bfc24539d0db894d04c7837572b16c1f552757fd1482219d58afa56c573229878fb43bbecd95e3d61314f2ab05efafa SHA512 2836533691bae0a7942197e67232b396b892cd95c0f07ab561f7de8458b354fe4045453855585484dd533ae76588ea3888f880763b042a264fb813a43933fc25 +DIST blender-2.93.0-tests.tar.bz2 286918586 BLAKE2B a2c2c2e900e401a470208e8e5d0082d45e2f8db13b45213f31808d50ae5ea330360702b8e775bdb3307eb753aa7c3264803e9e470b3fb778f8bd87272cd72513 SHA512 0e5e4c67944c4f76df62cdbaf26ba284c415675074e66685c01ec9584a544c47f616bae8fb2ff2b7e03290620d54dc1033b4b0fc617acb1232a90439e96325fe DIST blender-2.93.0.tar.xz 42967016 BLAKE2B 1e7b54f08415de8a8908a285ae35c1e18558bf7cab42c5c135323d10ac9a73ec69aa0addd536355a4d19262438a615e03f09dc123b697cbab484e33350bb5ee3 SHA512 660962e5368c8ff52ed095aba97d63c22aa8e2fdcb2042b1299b6d6edeb7eb1f702a9ee95ee7e47824681f9f48b971d2e32ec32cc6264165a4196b5f36c4a66d diff --git a/media-gfx/blender/blender-2.83.15.ebuild b/media-gfx/blender/blender-2.83.15.ebuild index ebb25670c0df..28616ae54a13 100644 --- a/media-gfx/blender/blender-2.83.15.ebuild +++ b/media-gfx/blender/blender-2.83.15.ebuild @@ -5,8 +5,6 @@ EAPI=7 PYTHON_COMPAT=( python3_{7,8,9} ) -# TODO: restore subversion later -# https://github.com/gentoo/gentoo/pull/20565#issuecomment-857235672 inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 toolchain-funcs xdg-utils DESCRIPTION="3D Creation/Animation/Publishing System" @@ -17,6 +15,7 @@ if [[ ${PV} = *9999* ]] ; then EGIT_REPO_URI="https://git.blender.org/blender.git" else SRC_URI="https://download.blender.org/source/${P}.tar.xz" + SRC_URI+=" test? ( https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-2.83.1-tests.tar.bz2 )" KEYWORDS="~amd64 ~x86" fi @@ -93,7 +92,6 @@ RDEPEND="${PYTHON_DEPS} sdl? ( media-libs/libsdl2[sound,joystick] ) sndfile? ( media-libs/libsndfile ) tbb? ( dev-cpp/tbb ) - test? ( dev-vcs/subversion ) tiff? ( media-libs/tiff ) valgrind? ( dev-util/valgrind ) " @@ -149,16 +147,15 @@ pkg_setup() { src_unpack() { if [[ ${PV} = *9999* ]] ; then - TESTS_SVN_URL=https://svn.blender.org/svnroot/bf-blender/trunk/lib/tests git-r3_src_unpack else default - TESTS_SVN_URL=https://svn.blender.org/svnroot/bf-blender/tags/blender-${SLOT}-release/lib/tests fi - #if use test; then - # subversion_fetch ${TESTS_SVN_URL} ../lib/tests - #fi + if use test; then + mkdir -p lib/tests || die + mv "${WORKDIR}"/blender*tests* lib/tests || die + fi } src_prepare() { diff --git a/media-gfx/blender/blender-2.93.0.ebuild b/media-gfx/blender/blender-2.93.0.ebuild index 3f44583e7dfa..a3689a00f3d6 100644 --- a/media-gfx/blender/blender-2.93.0.ebuild +++ b/media-gfx/blender/blender-2.93.0.ebuild @@ -17,6 +17,7 @@ if [[ ${PV} = *9999* ]] ; then EGIT_REPO_URI="https://git.blender.org/blender.git" else SRC_URI="https://download.blender.org/source/${P}.tar.xz" + SRC_URI+=" test? ( https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-2.93.0-tests.tar.bz2 )" KEYWORDS="~amd64" fi @@ -154,16 +155,15 @@ pkg_setup() { src_unpack() { if [[ ${PV} = *9999* ]] ; then - TESTS_SVN_URL=https://svn.blender.org/svnroot/bf-blender/trunk/lib/tests git-r3_src_unpack else default - TESTS_SVN_URL=https://svn.blender.org/svnroot/bf-blender/tags/blender-${SLOT}-release/lib/tests fi - #if use test; then - # subversion_fetch ${TESTS_SVN_URL} ../lib/tests - #fi + if use test; then + mkdir -p lib/tests || die + mv "${WORKDIR}"/blender*tests* lib/tests || die + fi } src_prepare() { diff --git a/media-gfx/blender/blender-9999.ebuild b/media-gfx/blender/blender-9999.ebuild index ab73c944ca82..9595d28c855f 100644 --- a/media-gfx/blender/blender-9999.ebuild +++ b/media-gfx/blender/blender-9999.ebuild @@ -5,9 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_9 ) -# TODO: subversion commented out for tests for now -# restoring shortly, see https://github.com/gentoo/gentoo/pull/20565#issuecomment-857235672 -inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 toolchain-funcs xdg-utils +inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 toolchain-funcs subversion xdg-utils DESCRIPTION="3D Creation/Animation/Publishing System" HOMEPAGE="https://www.blender.org" @@ -161,9 +159,9 @@ src_unpack() { TESTS_SVN_URL=https://svn.blender.org/svnroot/bf-blender/tags/blender-${SLOT}-release/lib/tests fi - #if use test; then - # subversion_fetch ${TESTS_SVN_URL} ../lib/tests - #fi + if use test; then + subversion_fetch ${TESTS_SVN_URL} ../lib/tests + fi } src_prepare() { |