commit:     de8e8ee418aa5867cbcb73bd1105b56ed0e49fd9
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Fri Aug  2 09:16:37 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Fri Aug  2 09:16:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=de8e8ee4

www-apps/pleroma: synchronize current release with live

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

 .../{pleroma-2.7.0.ebuild => pleroma-2.7.0-r1.ebuild}     | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/www-apps/pleroma/pleroma-2.7.0.ebuild 
b/www-apps/pleroma/pleroma-2.7.0-r1.ebuild
similarity index 87%
rename from www-apps/pleroma/pleroma-2.7.0.ebuild
rename to www-apps/pleroma/pleroma-2.7.0-r1.ebuild
index 02d502a4d..0465384fa 100644
--- a/www-apps/pleroma/pleroma-2.7.0.ebuild
+++ b/www-apps/pleroma/pleroma-2.7.0-r1.ebuild
@@ -24,14 +24,15 @@ RESTRICT="network-sandbox"
 
 BDEPEND="
        <dev-lang/erlang-27:=
-       <dev-lang/elixir-1.15:=
+       <dev-lang/elixir-1.16:=
        dev-build/cmake
        >=dev-util/rebar-3.20.0-r1
        dev-elixir/hex
 "
 DEPEND="
-       sys-libs/ncurses:=
+       media-libs/vips:=
        sys-apps/file
+       sys-libs/ncurses:=
 "
 RDEPEND="
        ${DEPEND}
@@ -57,7 +58,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' \
@@ -72,6 +75,9 @@ src_prepare() {
 
 src_compile() {
        mkdir -p pleroma || die
+
+       export VIX_COMPILATION_MODE="PLATFORM_PROVIDED_LIBVIPS"
+
        emix release --overwrite --path pleroma
 }
 
@@ -80,7 +86,8 @@ src_install() {
        mkdir -p "${ED}/opt" || die
        cp -pr ./pleroma "${ED}/opt/pleroma" || die
        fperms 0750 /opt/pleroma
-       fowners 0:pleroma /opt/pleroma
+       fperms -R g-w,o= /opt/pleroma
+       fowners -R 0:pleroma /opt/pleroma
 
        doinitd ./pleroma/installation/init.d/pleroma
 

Reply via email to