Skip to content

Commit

Permalink
www-apps/pleroma: synchronize current release with live
Browse files Browse the repository at this point in the history
Signed-off-by: Haelwenn (lanodan) Monnier <[email protected]>
  • Loading branch information
lanodan committed Aug 2, 2024
1 parent 5a4573b commit de8e8ee
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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' \
Expand All @@ -72,6 +75,9 @@ src_prepare() {

src_compile() {
mkdir -p pleroma || die

export VIX_COMPILATION_MODE="PLATFORM_PROVIDED_LIBVIPS"

emix release --overwrite --path pleroma
}

Expand All @@ -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

Expand Down

0 comments on commit de8e8ee

Please sign in to comment.