Skip to content

Commit

Permalink
set CG_BLENDER_SCRIPTS_DIR not necessary for cg USE
Browse files Browse the repository at this point in the history
  • Loading branch information
brothermechanic committed May 21, 2024
1 parent 0fbc3c0 commit dedf2d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 6 additions & 4 deletions media-gfx/blender/blender-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ RDEPEND="
rocm? ( >=dev-util/hip-5.4.0 )
ffmpeg? (
<media-video/ffmpeg-7:=[encode,jpeg2k?,mp3?,opus?,sdl,theora?,vorbis?,vpx?,x264?,xvid?,zlib]
>=media-video/ffmpeg-4:=[encode,jpeg2k?,mp3?,opus?,sdl,theora?,vorbis?,vpx?,x264?,xvid?,zlib]
>media-video/ffmpeg-5:=[encode,jpeg2k?,mp3?,opus?,sdl,theora?,vorbis?,vpx?,x264?,xvid?,zlib]
)
fftw? ( sci-libs/fftw:3.0=[openmp?] )
flac? ( >=media-libs/flac-1.4.2 )
gmp? ( >=dev-libs/gmp-6.2.1[cxx] )
dev-cpp/gflags:=
gtests? (
dev-cpp/gflags:=
dev-cpp/glog:=[gflags]
dev-cpp/gmock:=
)
Expand Down Expand Up @@ -420,10 +420,12 @@ src_prepare() {
use elibc_musl && eapply "${FILESDIR}/blender-4.0.0-support-building-with-musl-libc.patch"
eapply "${FILESDIR}/blender-fix-lld-17-linking.patch"

if use cg && [ -d ${CG_BLENDER_SCRIPTS_DIR} ]; then
#no need `if use cg && [ -d ${CG_BLENDER_SCRIPTS_DIR} ]; then`
#because CG_BLENDER_SCRIPTS_DIR set in cg/eclass/cg-blender-scripts-dir.eclass
if use cg; then
eapply "${WORKDIR}"/cg_preferences/patches/cg-defaults.patch
cp "${WORKDIR}"/cg_preferences/share/startup.blend release/datafiles/ || die
# cp "${WORKDIR}"/cg_preferences/share/splash.png release/datafiles/ || die
cp "${WORKDIR}"/cg_preferences/share/splash.png release/datafiles/ || die
cp "${WORKDIR}"/cg_preferences/share/00_cg_preferences_service.py "${S}"/scripts/startup/ || die
cp "${FILESDIR}"/99_cg_scripts_dir_service.py "${S}"/scripts/startup/ || die
sed -i -e "s|cg_blender_scripts_dir =.*|cg_blender_scripts_dir = \"${CG_BLENDER_SCRIPTS_DIR}\"|" "${S}"/scripts/startup/99_cg_scripts_dir_service.py || die
Expand Down
5 changes: 4 additions & 1 deletion media-libs/audaspace/audaspace-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ BDEPEND="
virtual/libc
sdl? ( media-libs/libsdl2[sound] )
sndfile? ( media-libs/libsndfile )
ffmpeg? ( media-video/ffmpeg:=[mp3,encode,theora,vorbis,opus] )
ffmpeg? (
<media-video/ffmpeg-7:=[mp3,encode,theora,vorbis,opus]
>media-video/ffmpeg-5:=[mp3,encode,theora,vorbis,opus]
)
fftw? ( sci-libs/fftw:3.0= )
jack? ( virtual/jack )
openal? ( media-libs/openal )
Expand Down

0 comments on commit dedf2d8

Please sign in to comment.