logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: b25ec85c55d34e6793c44f09caa30e1707a74c59
parent 287d0df0c249b6b39e30befc2e492c01668f808a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 13 Jun 2023 15:28:20 +0200

www-apps/pleroma: Use optfeature for optionnal runtime dependencies

Diffstat:

Mwww-apps/pleroma/pleroma-2.5.2.ebuild13++++++++-----
Mwww-apps/pleroma/pleroma-9999.ebuild13++++++++-----
2 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/www-apps/pleroma/pleroma-2.5.2.ebuild b/www-apps/pleroma/pleroma-2.5.2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit mix +inherit mix optfeature DESCRIPTION="ActivityPub social networking software compatible with other Fediverse software" HOMEPAGE="https://pleroma.social/" @@ -19,7 +19,7 @@ fi LICENSE="AGPL-3 CC-BY-SA-4.0 CC-BY-4.0" SLOT="otp" KEYWORDS="~amd64" -IUSE="imagemagick ffmpeg exiftool" +IUSE="" # Requires network access (https) as long as elixir dependencies aren't packaged # said dependencies have their checksum verified via `mix.lock` @@ -41,9 +41,6 @@ RDEPEND=" acct-user/pleroma acct-group/pleroma dev-db/postgresql[uuid] - imagemagick? ( media-gfx/imagemagick ) - ffmpeg? ( media-video/ffmpeg ) - exiftool? ( media-libs/exiftool ) " src_unpack() { @@ -100,3 +97,9 @@ src_install() { fperms 0750 /var/lib/pleroma fowners pleroma:pleroma /var/lib/pleroma } + +pkg_postinst() { + optfeature "For Pleroma.Upload.Filters.{Mogrify,Mogrifun} and still image support in Media Preview Proxy" media-gfx/imagemagick + optfeature "For video support in Media Preview Proxy" media-video/ffmpeg + optfeature "For Pleroma.Upload.Filters.Exiftool.* filters" media-libs/exiftool +} diff --git a/www-apps/pleroma/pleroma-9999.ebuild b/www-apps/pleroma/pleroma-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit mix +inherit mix optfeature DESCRIPTION="ActivityPub social networking software compatible with other Fediverse software" HOMEPAGE="https://pleroma.social/" @@ -19,7 +19,7 @@ fi LICENSE="AGPL-3 CC-BY-SA-4.0 CC-BY-4.0" SLOT="otp" KEYWORDS="~amd64" -IUSE="imagemagick ffmpeg exiftool" +IUSE="" # Requires network access (https) as long as elixir dependencies aren't packaged # said dependencies have their checksum verified via `mix.lock` @@ -41,9 +41,6 @@ RDEPEND=" acct-user/pleroma acct-group/pleroma dev-db/postgresql[uuid] - imagemagick? ( media-gfx/imagemagick ) - ffmpeg? ( media-video/ffmpeg ) - exiftool? ( media-libs/exiftool ) " src_unpack() { @@ -100,3 +97,9 @@ src_install() { fperms 0750 /var/lib/pleroma fowners pleroma:pleroma /var/lib/pleroma } + +pkg_postinst() { + optfeature "For Pleroma.Upload.Filters.{Mogrify,Mogrifun} and still image support in Media Preview Proxy" media-gfx/imagemagick + optfeature "For video support in Media Preview Proxy" media-video/ffmpeg + optfeature "For Pleroma.Upload.Filters.Exiftool.* filters" media-libs/exiftool +}