commit:     1b57a207330b9ec4746ef5f9bb25a8d3b289bc3f
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Fri Feb 23 08:36:50 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Fri Feb 23 08:37:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1b57a207

www-apps/pleroma-9999: Use system vips

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>

 www-apps/pleroma/pleroma-9999.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/www-apps/pleroma/pleroma-9999.ebuild 
b/www-apps/pleroma/pleroma-9999.ebuild
index fa8957b176..292dcac0f6 100644
--- a/www-apps/pleroma/pleroma-9999.ebuild
+++ b/www-apps/pleroma/pleroma-9999.ebuild
@@ -32,8 +32,9 @@ BDEPEND="
        dev-elixir/hex
 "
 DEPEND="
-       sys-libs/ncurses:=
+       media-libs/vips:=
        sys-apps/file
+       sys-libs/ncurses:=
 "
 RDEPEND="
        ${DEPEND}
@@ -59,7 +60,9 @@ src_prepare() {
                sed -i "s!source_url: .*!source_url: 
\"${EGIT_OVERRIDE_REPO}\",!" mix.exs || die
        fi
 
-       sed -i -e '/include_executables_for:/a\          strip_beams: false,\n\ 
         include_erts: false,' mix.exs || die
+       # strip_beams: Keep debug information in Erlang BEAM bytecode
+       # include_erts: Depend on system erlang for the runtime
+       sed -i '/include_executables_for:/a\          strip_beams: false,\n\    
      include_erts: false,' mix.exs || die
 
        sed -i \
                -e '/update \[OPTIONS\]/,/--tmp-dir/d' \
@@ -74,6 +77,9 @@ src_prepare() {
 
 src_compile() {
        mkdir -p pleroma || die
+
+       export VIX_COMPILATION_MODE="PLATFORM_PROVIDED_LIBVIPS"
+
        emix release --overwrite --path pleroma
 }
 

Reply via email to