From 37b19b0b828c3003e5243bd5f423164c0178d16b Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sat, 16 Dec 2023 02:19:16 +0100 Subject: www-apps/pleroma: add 2.6.1, drop 2.6.0 Closes: https://bugs.gentoo.org/916730 Closes: https://bugs.gentoo.org/916731 Closes: https://bugs.gentoo.org/916732 Closes: https://bugs.gentoo.org/916733 Signed-off-by: Haelwenn (lanodan) Monnier --- www-apps/pleroma/Manifest | 2 +- www-apps/pleroma/pleroma-2.6.0.ebuild | 112 ---------------------------------- www-apps/pleroma/pleroma-2.6.1.ebuild | 112 ++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+), 113 deletions(-) delete mode 100644 www-apps/pleroma/pleroma-2.6.0.ebuild create mode 100644 www-apps/pleroma/pleroma-2.6.1.ebuild (limited to 'www-apps') diff --git a/www-apps/pleroma/Manifest b/www-apps/pleroma/Manifest index 67b494cd6..9e9c7dd5a 100644 --- a/www-apps/pleroma/Manifest +++ b/www-apps/pleroma/Manifest @@ -1 +1 @@ -DIST pleroma-v2.6.0.tar.gz 27813368 BLAKE2B 0142662828d98372717dfb0d956b33e18cbfda75b5e8a8bdb13b013b5375803f57226f9fcb875233e6052f5dab41f97f1c8fa6ff4667b84b207daf89791f5d5b SHA512 cba8aef6b840ef8a3f96eede41b126f0adc7872acb88f9bd9d932538a4a2508f59edf39758156b832791b536168af83ffbf41a1ce77db3228bf3a5f44d33ada6 +DIST pleroma-v2.6.1.tar.gz 28130367 BLAKE2B e4d742b439efea9e23c02813d6a012b62c317dc64c5c404224513304c38bb14bf26639f89d0c6271f68c312a976a464b0dd6b7616e8aac4397d7f198d306c36e SHA512 02202371e6feebd132c5bdd490a5b94a750006eaf9d86cab6c9459891ec456ee6b4e9ba681d5ca4bb23af1e0ee92baa9ccfb7f5dbaebc35b9d1aad153007d9c3 diff --git a/www-apps/pleroma/pleroma-2.6.0.ebuild b/www-apps/pleroma/pleroma-2.6.0.ebuild deleted file mode 100644 index 57a9e770e..000000000 --- a/www-apps/pleroma/pleroma-2.6.0.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 2022-2023 Haelwenn (lanodan) Monnier -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix optfeature - -DESCRIPTION="ActivityPub social networking software compatible with other Fediverse software" -HOMEPAGE="https://pleroma.social/" -if [[ "${PV}" == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://git.pleroma.social/pleroma/pleroma" - KEYWORDS="" -else - SRC_URI="https://git.pleroma.social/pleroma/pleroma/-/archive/v${PV}/${PN}-v${PV}.tar.gz" - S="${WORKDIR}/${PN}-v${PV}" - KEYWORDS="~amd64" -fi -LICENSE="AGPL-3 CC-BY-SA-4.0 CC-BY-4.0" -SLOT="otp" -IUSE="" - -# Requires network access (https) as long as elixir dependencies aren't packaged -# said dependencies have their checksum verified via `mix.lock` -RESTRICT="network-sandbox" - -BDEPEND=" - =dev-util/rebar-3.20.0-r1 - dev-elixir/hex -" -DEPEND=" - sys-libs/ncurses:= - sys-apps/file -" -RDEPEND=" - ${DEPEND} - acct-user/pleroma - acct-group/pleroma - dev-db/postgresql[uuid] -" - -src_unpack() { - default - - [[ "${PV}" == *9999 ]] && git-r3_src_unpack - - cd "${S}" || die - emix deps.get --only prod -} - -src_prepare() { - default - - # Point to the correct source repo, needed for AGPL compliance - if [[ "${PV}" == *9999 ]] && [[ -n "${EGIT_OVERRIDE_REPO}" ]]; then - 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 - - sed -i \ - -e '/update \[OPTIONS\]/,/--tmp-dir/d' \ - -e 's;update "$@";echo "Unsupported, check the '"${CATEGORY}/${PN}"' package instead.";' \ - rel/files/bin/pleroma_ctl || die - - # Default ends up being inside /opt/pleroma which should be kept read-only to pleroma - echo 'config :tzdata, :data_dir, "/var/lib/pleroma/tzdata"' >> config/prod.exs || die - - echo "import Config" > config/prod.secret.exs || die -} - -src_compile() { - mkdir -p pleroma || die - emix release --overwrite --path pleroma -} - -src_install() { - # doins doesn't seems to preserve permissions - mkdir -p "${ED}/opt" || die - cp -pr ./pleroma "${ED}/opt/pleroma" || die - fperms 0750 /opt/pleroma - fowners 0:pleroma /opt/pleroma - - doinitd ./pleroma/installation/init.d/pleroma - - dosym /opt/pleroma/bin/pleroma /usr/bin/pleroma - dosym /opt/pleroma/bin/pleroma_ctl /usr/bin/pleroma_ctl - - # This file controls console access - fperms 0750 /opt/pleroma/releases/COOKIE - fowners 0:pleroma /opt/pleroma/releases/COOKIE - - keepdir /etc/pleroma - fperms 0750 /etc/pleroma - fowners 0:pleroma /etc/pleroma - - keepdir /var/lib/pleroma - fperms 0750 /var/lib/pleroma - fowners pleroma:pleroma /var/lib/pleroma - - dosym /opt/pleroma-fe/dist /var/lib/pleroma/static/frontends/pleroma-fe/gentoo -} - -pkg_postinst() { - optfeature "For Pleroma.Upload.Filters.{Mogrify,Mogrifun} & images in previews" media-gfx/imagemagick - optfeature "For video support in Media Preview Proxy" media-video/ffmpeg - optfeature "For Pleroma.Upload.Filters.Exiftool.* filters" media-libs/exiftool - optfeature "Allows to pick system-managed frontend instead of bundled" www-apps/pleroma-fe -} diff --git a/www-apps/pleroma/pleroma-2.6.1.ebuild b/www-apps/pleroma/pleroma-2.6.1.ebuild new file mode 100644 index 000000000..57a9e770e --- /dev/null +++ b/www-apps/pleroma/pleroma-2.6.1.ebuild @@ -0,0 +1,112 @@ +# Copyright 2022-2023 Haelwenn (lanodan) Monnier +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit mix optfeature + +DESCRIPTION="ActivityPub social networking software compatible with other Fediverse software" +HOMEPAGE="https://pleroma.social/" +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.pleroma.social/pleroma/pleroma" + KEYWORDS="" +else + SRC_URI="https://git.pleroma.social/pleroma/pleroma/-/archive/v${PV}/${PN}-v${PV}.tar.gz" + S="${WORKDIR}/${PN}-v${PV}" + KEYWORDS="~amd64" +fi +LICENSE="AGPL-3 CC-BY-SA-4.0 CC-BY-4.0" +SLOT="otp" +IUSE="" + +# Requires network access (https) as long as elixir dependencies aren't packaged +# said dependencies have their checksum verified via `mix.lock` +RESTRICT="network-sandbox" + +BDEPEND=" + =dev-util/rebar-3.20.0-r1 + dev-elixir/hex +" +DEPEND=" + sys-libs/ncurses:= + sys-apps/file +" +RDEPEND=" + ${DEPEND} + acct-user/pleroma + acct-group/pleroma + dev-db/postgresql[uuid] +" + +src_unpack() { + default + + [[ "${PV}" == *9999 ]] && git-r3_src_unpack + + cd "${S}" || die + emix deps.get --only prod +} + +src_prepare() { + default + + # Point to the correct source repo, needed for AGPL compliance + if [[ "${PV}" == *9999 ]] && [[ -n "${EGIT_OVERRIDE_REPO}" ]]; then + 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 + + sed -i \ + -e '/update \[OPTIONS\]/,/--tmp-dir/d' \ + -e 's;update "$@";echo "Unsupported, check the '"${CATEGORY}/${PN}"' package instead.";' \ + rel/files/bin/pleroma_ctl || die + + # Default ends up being inside /opt/pleroma which should be kept read-only to pleroma + echo 'config :tzdata, :data_dir, "/var/lib/pleroma/tzdata"' >> config/prod.exs || die + + echo "import Config" > config/prod.secret.exs || die +} + +src_compile() { + mkdir -p pleroma || die + emix release --overwrite --path pleroma +} + +src_install() { + # doins doesn't seems to preserve permissions + mkdir -p "${ED}/opt" || die + cp -pr ./pleroma "${ED}/opt/pleroma" || die + fperms 0750 /opt/pleroma + fowners 0:pleroma /opt/pleroma + + doinitd ./pleroma/installation/init.d/pleroma + + dosym /opt/pleroma/bin/pleroma /usr/bin/pleroma + dosym /opt/pleroma/bin/pleroma_ctl /usr/bin/pleroma_ctl + + # This file controls console access + fperms 0750 /opt/pleroma/releases/COOKIE + fowners 0:pleroma /opt/pleroma/releases/COOKIE + + keepdir /etc/pleroma + fperms 0750 /etc/pleroma + fowners 0:pleroma /etc/pleroma + + keepdir /var/lib/pleroma + fperms 0750 /var/lib/pleroma + fowners pleroma:pleroma /var/lib/pleroma + + dosym /opt/pleroma-fe/dist /var/lib/pleroma/static/frontends/pleroma-fe/gentoo +} + +pkg_postinst() { + optfeature "For Pleroma.Upload.Filters.{Mogrify,Mogrifun} & images in previews" media-gfx/imagemagick + optfeature "For video support in Media Preview Proxy" media-video/ffmpeg + optfeature "For Pleroma.Upload.Filters.Exiftool.* filters" media-libs/exiftool + optfeature "Allows to pick system-managed frontend instead of bundled" www-apps/pleroma-fe +} -- cgit v1.2.3-65-gdbad