commit: e5d64556ee74ed4a82cd5c7e1bb1e2d6b1c4108e parent 4823913f599e79236b79986166d644f83a73c6c5 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Wed, 24 Mar 2021 21:15:05 +0100 Clean out elixir for nowDiffstat:
24 files changed, 0 insertions(+), 809 deletions(-)
diff --git a/dev-elixir/hex/Manifest b/dev-elixir/hex/Manifest @@ -1 +0,0 @@ -DIST hex-0.20.6.tar.gz 294878 BLAKE2B eefecc4f99cfacc8835c071478cff6ce0904f6b241b108e86bb7336bfe5826186b811f364c9f52bc78169c514582d3a6078251e224e9d53714f207125b2f7268 SHA512 db60f47697a2cca4c4cfcedb741f96d7c74fe342064a67a0ca478cc6cac48ba25f30dd154a57cae11977d6384669b67fd68d0b8def0fde0740f3492e66f11293 diff --git a/dev-elixir/hex/hex-0.20.6.ebuild b/dev-elixir/hex/hex-0.20.6.ebuild @@ -1,30 +0,0 @@ -# Copyright 2019-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -DESCRIPTION="" -HOMEPAGE="https://github.com/hexpm/hex" -LICENSE="Apache-2.0" -SLOT="$(ver_cut 1-2)" -SRC_URI="https://github.com/hexpm/hex/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" - -# Require >=elixir-1.5.0 because of the dependencies differencies between the two -DEPEND=" - test? ( - >=dev-lang/elixir-1.5.0 - =dev-elixir/stream_data-0.4.0 - =dev-elixir/plug-1.6.1 - =dev-elixir/mime-1.3.0 - dev-elixir/bypass - =dev-elixir/cowboy-1.0.4 - =dev-elixir/cowlib-1.0.2 - =dev-elixir/ranch-1.2.1 - ) -" -RDEPEND="${DEPEND}" diff --git a/dev-elixir/hex/metadata.xml b/dev-elixir/hex/metadata.xml @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>contact@hacktivis.me</email> - <name>Haelwenn (lanodan) Monnier</name> - </maintainer> -</pkgmetadata> diff --git a/dev-elixir/jose/Manifest b/dev-elixir/jose/Manifest @@ -1 +0,0 @@ -DIST jose-1.8.4.tar.gz 230947 BLAKE2B 18bfd6b710295575d0547afcc866674f2c65fec2742ee4dedbbe7a883fef45a9abbccfc669c90d75f5091e70b91bd7b478f4fea5d3beaa3f65510d92db07da39 SHA512 47171b4e5f6b61735a15365b4130c110c14de1f4b157cdbf97b448550d48de4ab27a30537e9d9f613d87862d592b3bd95638daacee60f3f5b9877d80a3de773b diff --git a/dev-elixir/jose/jose-1.8.4.ebuild b/dev-elixir/jose/jose-1.8.4.ebuild @@ -1,36 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -DESCRIPTION="JSON Object Signing and Encryption (JOSE) for Erlang and Elixir" -HOMEPAGE="https://github.com/potatosalad/erlang-jose" -LICENSE="MIT" -SLOT="$(ver_cut 1-2)" -SRC_URI="https://github.com/potatosalad/erlang-jose/archive/${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="test doc" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-elixir/hex - >=dev-erlang/base64url-0.0.1 - test? ( - dev-elixir/cutkey - >=dev-elixir/jsone-1.4 - >=dev-elixir/jsx-2.8 - >=dev-elixir/libdecaf-0.0.4 - >=dev-elixir/libsodium-0.0.10 - >=dev-elixir/ojson-1.0 - >=dev-elixir/poison-3.1 - ) - doc? ( - >=dev-elixir/ex_doc-0.15 - >=dev-elixir/earkmark-1.2 - ) -" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/erlang-${P}" diff --git a/dev-elixir/linkify/linkify-9999.ebuild b/dev-elixir/linkify/linkify-9999.ebuild @@ -1,26 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -DESCRIPTION="basic package for turning website names into links" -HOMEPAGE="https://git.pleroma.social/pleroma/linkify" -if [[ "${PV}" == "9999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://git.pleroma.social/pleroma/linkify" -else - SRC_URI="https://git.pleroma.social/pleroma/linkify/-/archive/v${PV}/linkify-v${PV}.tar.bz2" - KEYWORDS="~amd64 ~arm ~arm64 ~x86" -fi -SLOT="$(ver_cut 1-2)" -LICENSE="MIT" -IUSE="test doc" -RESTRICT="!test? ( test )" - -DEPEND=" - test? ( >=dev-elixir/credo-1.1.0 ) - doc? ( >=dev-elixir/ex_doc-0.20 ) -" -RDEPEND="${DEPEND}" diff --git a/dev-elixir/mime/Manifest b/dev-elixir/mime/Manifest @@ -1 +0,0 @@ -DIST mime-1.0.1.tar.gz 19227 BLAKE2B 6ed141f8d1232366abdb766feef21da3415fedba68d6dafa24de35b1f5e6d7a50e152908fd19de20bc76e94ba19d346cdb3e6eca0e8e7e91b04f3c89f954273b SHA512 1642aa5b873afe893421d98dfcbd5b1ce3dff488aae5b7e362983bf731ba944fad1387de6c6da63e9b18c8f1e12bf5f27e8f3fbe634c98d7f80c34ca6fcf3b7d diff --git a/dev-elixir/mime/mime-1.0.1.ebuild b/dev-elixir/mime/mime-1.0.1.ebuild @@ -1,24 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -MIX_REWRITE=true - -DESCRIPTION="MIME type module for Elixir" -HOMEPAGE="https://github.com/elixir-plug/mime" -LICENSE="Apache-2.0" -SLOT="$(ver_cut 1-2)" -SRC_URI="https://github.com/elixir-plug/mime/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="doc" - -DEPEND=" - doc? ( - >=dev-elixir/ex_doc-0.19.1 - dev-elixir/earmark - ) -" -RDEPEND="${DEPEND}" diff --git a/dev-elixir/phoenix/Manifest b/dev-elixir/phoenix/Manifest @@ -1 +0,0 @@ -DIST phoenix-1.4.9.tar.gz 807621 BLAKE2B 0ed44a884b4b2bfdc3421ec6423a5de7d67066506621abe02c69d01ae5c2083385237d44d9deadb798248e397278865ab536d8d530c98e6684b49739a37b9de0 SHA512 2642c6ca8ec5571544f8255eb1b6d36a7ab83b47c3f169ad20fc4ca8af81155c46b8ff481af867b24872485e64aff634eba5c6aaa85ab38fb3405df02cc88da4 diff --git a/dev-elixir/phoenix/metadata.xml b/dev-elixir/phoenix/metadata.xml @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>contact@hacktivis.me</email> - <name>Haelwenn (lanodan) Monnier</name> - </maintainer> -</pkgmetadata> diff --git a/dev-elixir/phoenix/phoenix-1.4.9.ebuild b/dev-elixir/phoenix/phoenix-1.4.9.ebuild @@ -1,37 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -MIX_REWRITE="true" - -DESCRIPTION="productive web framework that does not compromise speed or maintainability" -HOMEPAGE="https://github.com/phoenixframework/phoenix" -LICENSE="MIT" -SLOT="$(ver_cut 1-2)" -SRC_URI="https://github.com/phoenixframework/phoenix/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" -IUSE="doc json test" -RESTRICT="!test? ( test )" - -DEPEND=" - || ( - dev-elixir/plug:1.8 - dev-elixir/plug:1.9 - ) - >=dev-erlang/telemetry-0.4 - dev-elixir/phoenix_pubsub:1.1 - json? ( dev-elixir/jason:1.0 ) - doc? ( - dev-elixir/ex_doc:0.20 - dev-elixir/inch_ex:0.2 - ) - test? ( - dev-elixir/gettext:0.15 - dev-elixir/phoenix_html:2.11 - dev-elixir/websocket_client - ) -" -RDEPEND="${DEPEND}" diff --git a/dev-elixir/phoenix_pubsub/Manifest b/dev-elixir/phoenix_pubsub/Manifest @@ -1 +0,0 @@ -DIST phoenix_pubsub-1.1.2.tar.gz 37537 BLAKE2B 67d593e9498510b1df676ca91a5365b62c519c803c2aa872f4a9dc6992f69f5477d3db327b771fd9574f0856a64f8b72797e99a06e03a46948e93df6d667df97 SHA512 da903f244ca239052b91dccd2cb4184609d298da7124d3d6225a033f302e5ad4b81f7edb021ee103e278ce86f5b2fbd4c60abac75d2ab6ef0672a3361a644b93 diff --git a/dev-elixir/phoenix_pubsub/phoenix_pubsub-1.1.2.ebuild b/dev-elixir/phoenix_pubsub/phoenix_pubsub-1.1.2.ebuild @@ -1,21 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -MIX_REWRITE="true" - -DESCRIPTION="Distributed PubSub and Presence platform for the Phoenix Framework" -HOMEPAGE="https://github.com/phoenixframework/phoenix_pubsub" -LICENSE="MIT" -SLOT="$(ver_cut 1-2)" -SRC_URI="https://github.com/phoenixframework/phoenix_pubsub/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" -IUSE="doc" - -DEPEND=" - doc? ( dev-elixir/ex_doc ) -" -RDEPEND="${DEPEND}" diff --git a/dev-elixir/plug/Manifest b/dev-elixir/plug/Manifest @@ -1,2 +0,0 @@ -DIST plug-1.6.1.tar.gz 144699 BLAKE2B 7490cfee42193f1bd7362bc17759b6c05ed9879e6a8d53517a8789edb42091afb539ee3db78a36583e4164b3218f2f7c8d04343f67fb0f74b959785941684008 SHA512 ac6ca3b0904f6c08b9b1e4cafc509290f9cbd1fadecf7bd537fa0d20e4f885c10f75f65e6b97e6a5271c83ed90170243de031a2d514fb83d5bb7672cecbddd6f -DIST plug-1.8.2.tar.gz 140523 BLAKE2B 51ec4508c7009c5cf4acf86d27b0799dc4bd239d01eaaae0298559bf073e70248a757106e2bd62be074203d421a5e53c9670bad63c078d03a53c3ca4f245e71d SHA512 37288b897f63254ba00110cdcce2037cf588bdc897d8c0da29c65bb110b1ac3d7e11069dffd04d1ebfaa43d343470e6a6921bd638108b718fa2c4260ebb9bd99 diff --git a/dev-elixir/plug/plug-1.6.1.ebuild b/dev-elixir/plug/plug-1.6.1.ebuild @@ -1,25 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -MIX_REWRITE=true - -DESCRIPTION="specification and conveniences for composable modules between web applications" -HOMEPAGE="https://github.com/elixir-plug/plug" -LICENSE="Apache-2.0" -SLOT="$(ver_cut 1-2)" -SRC_URI="https://github.com/elixir-plug/plug/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="telemetry doc" - -DEPEND=" - dev-elixir/hex - >=dev-elixir/mime-1.0 - >=dev-elixir/plug_crypto-1.0 - telemetry? ( >=dev-elixir/telemetry-0.4 ) - doc? ( >=dev-elixir/ex_doc-0.19.1 ) -" -RDEPEND="${DEPEND}" diff --git a/dev-elixir/plug/plug-1.8.2.ebuild b/dev-elixir/plug/plug-1.8.2.ebuild @@ -1,25 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -MIX_REWRITE=true - -DESCRIPTION="specification and conveniences for composable modules between web applications" -HOMEPAGE="https://github.com/elixir-plug/plug" -LICENSE="Apache-2.0" -SLOT="$(ver_cut 1-2)" -SRC_URI="https://github.com/elixir-plug/plug/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="telemetry doc" - -DEPEND=" - dev-elixir/hex - >=dev-elixir/mime-1.0 - >=dev-elixir/plug_crypto-1.0 - telemetry? ( >=dev-elixir/telemetry-0.4 ) - doc? ( >=dev-elixir/ex_doc-0.19.1 ) -" -RDEPEND="${DEPEND}" diff --git a/dev-elixir/plug_crypto/Manifest b/dev-elixir/plug_crypto/Manifest @@ -1 +0,0 @@ -DIST plug_crypto-1.0.0.tar.gz 8992 BLAKE2B dc52b6f9e1276fd64e96967afcda9932d086228ee504b1216efe6a206a262c64d21a8196b29cbfe662a46749148cb2ee2bb60512305ecab819cfdd65e4bb32cd SHA512 4fda52d20372de5b0f733054f7f13f0a6d4bf38bc09bc4008a01565b9c4475255354746e4a36f4e823c5a40f9cb39a176ae0ee369c86d363012d9ec28cb17fee diff --git a/dev-elixir/plug_crypto/plug_crypto-1.0.0.ebuild b/dev-elixir/plug_crypto/plug_crypto-1.0.0.ebuild @@ -1,21 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -MIX_REWRITE="true" - -DESCRIPTION="Crypto-related functionality for the web" -HOMEPAGE="https://github.com/elixir-plug/plug_crypto" -LICENSE="Apache-2.0" -SLOT="$(ver_cut 1-2)" -SRC_URI="https://github.com/elixir-plug/plug_crypto/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="doc" - -DEPEND=" - doc? ( >=dev-elixir/ex_doc-0.19.1 ) -" -RDEPEND="${DEPEND}" diff --git a/eclass/mix.eclass b/eclass/mix.eclass @@ -1,95 +0,0 @@ -# Copyright 2019-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: mix.eclass -# @MAINTAINER: -# Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# @AUTHOR: -# Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# @SUPPORTED_EAPIS: 6 7 -# @BLURB: Build Elixir projects using dev-util/mix. -# @DESCRIPTION: -# An eclass providing functions to build Elixir projects using dev-util/mix. -# -# mix is a tool which tries to resolve dependencies itself - -case "${EAPI:-0}" in - 0|1|2|3|4|5) - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" - ;; - 6|7) - ;; - *) - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" - ;; -esac - -EXPORT_FUNCTIONS src_prepare src_compile src_install - -RDEPEND="dev-lang/elixir" -DEPEND="${RDEPEND}" - -# Erlang/Elixir software fails to build when another version with API -# differences is present -BDEPEND="!<${CATEGORY}/${P} !>${CATEGORY}/${P}" - -# @ECLASS-VARIABLE: HEX_OFFLINE -HEX_OFFLINE=1 - -# @ECLASS-VARIABLE: MIX_ENV -MIX_ENV="prod" - -# @ECLASS-VARIABLE: MIX_NO_DEPS -MIX_NO_DEPS=1 - -# @FUNCTION: emix -# @USAGE: <targets> -# @DESCRIPTION: -# Run mix with whatever. Die on failure -emix() { - debug-print-function ${FUNCNAME} "${@}" - - (( $# > 0 )) || die "emix: at least one target is required" - - MIX_ENV="${MIX_ENV}" mix "$@" || die -n "mix $@ failed" -} - -# @ECLASS-VARIABLE: MIX_REWRITE -MIX_REWRITE="" - -# @ECLASS-VARIABLE: MIX_BUILD_NAME -MIX_BUILD_NAME="${MIX_ENV}" - -# @FUNCTION: mix_src_prepare -mix_src_prepare() { - if [[ "${MIX_REWRITE}" != "" ]] - then - sed -i -E -e 's@\{.*(only|optional): .*},?@@' mix.exs || die "failed removing only & optionnal deps" - rm -f mix.lock - fi - - default -} - -# @FUNCTION: mix_src_compile -# @DESCRIPTION: -# Compile project with mix. -mix_src_compile() { - debug-print-function ${FUNCNAME} "${@}" - - emix compile --no-deps-check -} - -# @FUNCTION: mix_src_install -# @DESCRIPTION: -# Install project with mix. -mix_src_install() { - debug-print-function ${FUNCNAME} "${@}" - - insinto "/usr/$(get_libdir)/elixir/lib/${P}" - pushd "_build/${MIX_BUILD_NAME}/lib/${PN}" >/dev/null - for reldir in src ebin priv include; do - [ -d "$reldir" ] && doins -r "$(realpath ${reldir})" - done - popd >/dev/null -} diff --git a/eclass/rebar3.eclass b/eclass/rebar3.eclass @@ -1,276 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Copyright 2019-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: rebar3.eclass -# @MAINTAINER: -# Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# @AUTHOR: -# Amadeusz Żołnowski <aidecoe@gentoo.org> -# Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# @SUPPORTED_EAPIS: 6 -# @BLURB: Build Erlang/OTP projects using dev-util/rebar3. -# @DESCRIPTION: -# An eclass providing functions to build Erlang/OTP projects using -# dev-util/rebar:3. -# -# rebar3 is a tool which tries to resolve dependencies itself which is by -# cloning remote git repositories. Dependant projects are usually expected to -# be in sub-directory 'deps' rather than looking at system Erlang lib -# directory. Projects relying on rebar3 usually don't have 'install' make -# targets. The eclass workarounds some of these problems. It handles -# installation in a generic way for Erlang/OTP structured projects. - -case "${EAPI:-0}" in - 0|1|2|3|4|5) - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" - ;; - 6) - ;; - *) - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" - ;; -esac - -EXPORT_FUNCTIONS src_prepare src_compile src_test src_install - -# Erlang/Elixir software fails to build when another version with API -# differences is present -BDEPEND="!<${CATEGORY}/${P} !>${CATEGORY}/${P}" - -# @ECLASS-VARIABLE: REBAR3_DEPS -# @DESCRIPTION: -# This is an eclass-generated dependency string for required dependencies -# -# Not included by default in DEPEND to avoid a circular dependency on -# emerging dev-util/rebar:3 -REBAR3_DEPS=" - dev-lang/erlang - dev-util/rebar:3 -" - -# @ECLASS-VARIABLE: REBAR3_APP_SRC -# @DESCRIPTION: -# Relative path to .app.src description file. -REBAR3_APP_SRC="${REBAR3_APP_SRC-src/${PN}.app.src}" - -# @FUNCTION: get_erl_libs -# @RETURN: the path to Erlang lib directory -# @DESCRIPTION: -# Get the full path without EPREFIX to Erlang lib directory. -get_erl_libs() { - echo "/usr/$(get_libdir)/erlang/lib" -} - -# @FUNCTION: _rebar3_find_dep -# @INTERNAL -# @USAGE: <project_name> -# @RETURN: full path with EPREFIX to a Erlang package/project on success, -# code 1 when dependency is not found and code 2 if multiple versions of -# dependency are found. -# @DESCRIPTION: -# Find a Erlang package/project by name in Erlang lib directory. Project -# directory is usually suffixed with version. It is matched to '<project_name>' -# or '<project_name>-*'. -_rebar3_find_dep() { - local pn="$1" - local p - local result - - pushd "${EPREFIX}$(get_erl_libs)" >/dev/null || return 1 - for p in ${pn} ${pn}-*; do - if [[ -d ${p} ]]; then - # Ensure there's at most one matching. - [[ ${result} ]] && return 2 - result="${p}" - fi - done - popd >/dev/null || die - - [[ ${result} ]] || return 1 - echo "${result}" -} - -# @FUNCTION: rebar3_disable_coverage -# @USAGE: [<rebar3_config>] -# @DESCRIPTION: -# Disable coverage in rebar3.config. This is a workaround for failing coverage. -# Coverage is not relevant in this context, so there's no harm to disable it, -# although the issue should be fixed. -rebar3_disable_coverage() { - debug-print-function ${FUNCNAME} "${@}" - - local rebar3_config="${1:-rebar3.config}" - - sed -e 's/{cover_enabled, true}/{cover_enabled, false}/' \ - -i "${rebar3_config}" \ - || die "failed to disable coverage in ${rebar3_config}" -} - -# @FUNCTION: erebar3 -# @USAGE: <targets> -# @DESCRIPTION: -# Run rebar3 with verbose flag. Die on failure. -erebar3() { - debug-print-function ${FUNCNAME} "${@}" - - (( $# > 0 )) || die "erebar3: at least one target is required" - - local -x ERL_LIBS="${EPREFIX}$(get_erl_libs)" - # XXX: Look at why "-v skip_deps=true" argument needed to be removed - rebar3 "$@" || die -n "rebar3 $@ failed" -} - -# @FUNCTION: rebar3_fix_include_path -# @USAGE: <project_name> [<rebar3_config>] -# @DESCRIPTION: -# Fix path in rebar3.config to 'include' directory of dependant project/package, -# so it points to installation in system Erlang lib rather than relative 'deps' -# directory. -# -# <rebar3_config> is optional. Default is 'rebar3.config'. -# -# The function dies on failure. -rebar3_fix_include_path() { - debug-print-function ${FUNCNAME} "${@}" - - local pn="$1" - local rebar3_config="${2:-rebar3.config}" - local erl_libs="${EPREFIX}$(get_erl_libs)" - local p - - p="$(_rebar3_find_dep "${pn}")" \ - || die "failed to unambiguously resolve dependency of '${pn}'" - - gawk -i inplace \ - -v erl_libs="${erl_libs}" -v pn="${pn}" -v p="${p}" ' -/^{[[:space:]]*erl_opts[[:space:]]*,/, /}[[:space:]]*\.$/ { - pattern = "\"(./)?deps/" pn "/include\""; - if (match($0, "{i,[[:space:]]*" pattern "[[:space:]]*}")) { - sub(pattern, "\"" erl_libs "/" p "/include\""); - } - print $0; - next; -} -1 -' "${rebar3_config}" || die "failed to fix include paths in ${rebar3_config} for '${pn}'" -} - -# @FUNCTION: rebar3_remove_deps -# @USAGE: [<rebar3_config>] -# @DESCRIPTION: -# Remove dependencies list from rebar3.config and deceive build rules that any -# dependencies are already fetched and built. Otherwise rebar3 tries to fetch -# dependencies and compile them. -# -# <rebar3_config> is optional. Default is 'rebar3.config'. -# -# The function dies on failure. -rebar3_remove_deps() { - debug-print-function ${FUNCNAME} "${@}" - - local rebar3_config="${1:-rebar3.config}" - - mkdir -p "${S}/deps" && :>"${S}/deps/.got" && :>"${S}/deps/.built" || die - gawk -i inplace ' -/^{[[:space:]]*deps[[:space:]]*,/, /}[[:space:]]*\.$/ { - if ($0 ~ /}[[:space:]]*\.$/) { - print "{deps, []}."; - } - next; -} -1 -' "${rebar3_config}" || die "failed to remove deps from ${rebar3_config}" -} - -# @FUNCTION: rebar3_set_vsn -# @USAGE: [<version>] -# @DESCRIPTION: -# Set version in project description file if it's not set. -# -# <version> is optional. Default is PV stripped from version suffix. -# -# The function dies on failure. -rebar3_set_vsn() { - debug-print-function ${FUNCNAME} "${@}" - - local version="${1:-${PV%_*}}" - - if [ -f "${S}/${REBAR3_APP_SRC}" ]; then - sed -e "s/vsn, git/vsn, \"${version}\"/" \ - -i "${S}/${REBAR3_APP_SRC}" \ - || die "failed to set version in ${S}/${REBAR3_APP_SRC}" - fi -} - -# @FUNCTION: rebar3_src_prepare -# @DESCRIPTION: -# Prevent rebar3 from fetching and compiling dependencies. Set version in -# project description file if it's not set. -# -# Existence of rebar3.config is optional, but file description file must exist -# at 'src/${PN}.app.src'. -rebar3_src_prepare() { - debug-print-function ${FUNCNAME} "${@}" - - default - rebar3_set_vsn - if [[ -f rebar3.config ]]; then - rebar3_disable_coverage - rebar3_remove_deps - fi -} - -# @FUNCTION: rebar3_src_configure -# @DESCRIPTION: -# Configure with ERL_LIBS set. -rebar3_src_configure() { - debug-print-function ${FUNCNAME} "${@}" - - local -x ERL_LIBS="${EPREFIX}$(get_erl_libs)" - default -} - -# @FUNCTION: rebar3_src_compile -# @DESCRIPTION: -# Compile project with rebar3. -rebar3_src_compile() { - debug-print-function ${FUNCNAME} "${@}" - - erebar3 compile -} - -# @FUNCTION: rebar3_src_test -# @DESCRIPTION: -# Run unit tests. -rebar3_src_test() { - debug-print-function ${FUNCNAME} "${@}" - - erebar3 eunit -} - -# @FUNCTION: rebar3_src_install -# @DESCRIPTION: -# Install BEAM files, include headers, executables and native libraries. -# Install standard docs like README or defined in DOCS variable. -# -# Function expects that project conforms to Erlang/OTP structure. -rebar3_src_install() { - debug-print-function ${FUNCNAME} "${@}" - - local bin - local dest="$(get_erl_libs)/${P}" - - insinto "${dest}" - pushd "_build/default/lib/${PN}" >/dev/null - doins -r ebin - popd >/dev/null - [[ -d include ]] && doins -r include - [[ -d bin ]] && for bin in bin/*; do dobin "$bin"; done - - if [[ -d priv ]]; then - cp -pR priv "${ED}${dest}/" || die "failed to install priv/" - fi - - einstalldocs -} diff --git a/www-apps/pleroma/Manifest b/www-apps/pleroma/Manifest @@ -1 +0,0 @@ -DIST pleroma-v1.0.2.tar.bz2 22504184 BLAKE2B f71e81841890b02a945163b9cd1914d257c937d2577a4ba24362299c18a2804f998c352fd4a885b92a2ef38ba1f7e181c80f9de65af19084d8e5a7428402e927 SHA512 854109957e20770bf6695ef31044ee5428812becf8f4c2bde80390255ff97c2d22b54b373782a315f997db36e2760f8291b964a0f1264e090ea2f833fd57507e diff --git a/www-apps/pleroma/metadata.xml b/www-apps/pleroma/metadata.xml @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>contact@hacktivis.me</email> - <name>Haelwenn (lanodan) Monnier</name> - </maintainer> -</pkgmetadata> diff --git a/www-apps/pleroma/pleroma-1.0.2.ebuild b/www-apps/pleroma/pleroma-1.0.2.ebuild @@ -1,80 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -DESCRIPTION="Microblogging software federating over OStatus and ActivityPub" -HOMEPAGE="https://pleroma.social/" -LICENSE="AGPL-3 CC-BY-SA-4.0 Unsplash" -if [[ "${PV}" == "9999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://git.pleroma.social/pleroma/pleroma.git" -else - SRC_URI="https://git.pleroma.social/pleroma/pleroma/-/archive/v${PV}/pleroma-v${PV}.tar.bz2" - KEYWORDS="~amd64 ~arm ~arm64" -fi -SLOT="0" -IUSE="" - -# dev-lang/erlang is required for binary compat -DEPEND=" - dev-lang/erlang:= - >=dev-lang/elixir-1.7:= - dev-elixir/auto_linker - >=dev-elixir/cachex-3.0.2 - >=dev-elixir/calendar-0.17.4 - >=dev-elixir/comeonin-4.1.1 - >=dev-elixir/cors_plug-1.5 - >=dev-elixir/credo-0.9.3 - dev-elixir/crypt - >=dev-elixir/earmark-1.3 - >=dev-elixir/ecto_sql-3.0.5 - >=dev-elixir/ex_aws-2.0 - >=dev-elixir/ex_aws_s3-2.0 - >=dev-elixir/ex_doc-1.5 - >=dev-elixir/ex_machina-2.3 - >=dev-elixir/ex_syslogger-1.4.0 - >=dev-elixir/floki-0.20.0 - >=dev-elixir/gen_smtp-0.13 - >=dev-elixir/gettext-0.15 - >=dev-elixir/html_entities-0.4 - >=dev-elixir/html_sanitize_ex-1.3.0 - >=dev-elixir/httpoison-1.2.0 - >=dev-elixir/jason-1.0 - >=dev-elixir/mock-0.3.1 - >=dev-elixir/mogrify-0.6.1 - >=dev-elixir/pbkdf2_elixir-0.12.3 - >=dev-elixir/phoenix-1.4.1 - >=dev-elixir/phoenix_ecto-4.0 - >=dev-elixir/phoenix_pubsub-1.1 - >=dev-elixir/pleroma_job_queue-0.2.0 - >=dev-elixir/plug_cowboy-2.0 - >=dev-elixir/poison-3.0 - >=dev-elixir/postgrex-0.13.5 - >=dev-elixir/prometheus_ecto-1.4 - >=dev-elixir/prometheus_ex-3.0 - >=dev-elixir/prometheus_pheonix-1.2 - >=dev-elixir/prometheus_plugs-1.1 - >=dev-elixir/quack-0.1.1 - >=dev-elixir/recon-2.4.0 - >=dev-elixir/swoosh-0.20 - >=dev-elixir/telemetry-0.3 - >=dev-elixir/tesla-1.2 - >=dev-elixir/timex-3.5 - >=dev-elixir/trailing_format_plug-0.0.7 - >=dev-elixir/ueberauth-0.4 - >=dev-elixir/web_push_encryption-0.2.1 - dev-elixir/websocket_client -" -RDEPEND="${DEPEND}" - -src_prepare() { - sed -i '/pleroma: \[/a\ include_erts: false,' ./mix.exs || die "Failed setting release to: include_erts: false" - default -} - -src_compile() { - mix release -} diff --git a/www-apps/pleroma/pleroma-9999.ebuild b/www-apps/pleroma/pleroma-9999.ebuild @@ -1,80 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix - -DESCRIPTION="Microblogging software federating over OStatus and ActivityPub" -HOMEPAGE="https://pleroma.social/" -LICENSE="AGPL-3 CC-BY-SA-4.0 Unsplash" -if [[ "${PV}" == "9999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://git.pleroma.social/pleroma/pleroma.git" -else - SRC_URI="https://git.pleroma.social/pleroma/pleroma/-/archive/v${PV}/pleroma-v${PV}.tar.bz2" - KEYWORDS="~amd64 ~arm ~arm64" -fi -SLOT="0" -IUSE="" - -# dev-lang/erlang is required for binary compat -DEPEND=" - dev-lang/erlang:= - >=dev-lang/elixir-1.7:= - dev-elixir/linkify - >=dev-elixir/cachex-3.0.2 - >=dev-elixir/calendar-0.17.4 - >=dev-elixir/comeonin-4.1.1 - >=dev-elixir/cors_plug-1.5 - >=dev-elixir/credo-0.9.3 - dev-elixir/crypt - >=dev-elixir/earmark-1.3 - >=dev-elixir/ecto_sql-3.0.5 - >=dev-elixir/ex_aws-2.0 - >=dev-elixir/ex_aws_s3-2.0 - >=dev-elixir/ex_doc-1.5 - >=dev-elixir/ex_machina-2.3 - >=dev-elixir/ex_syslogger-1.4.0 - >=dev-elixir/floki-0.20.0 - >=dev-elixir/gen_smtp-0.13 - >=dev-elixir/gettext-0.15 - >=dev-elixir/html_entities-0.4 - >=dev-elixir/html_sanitize_ex-1.3.0 - >=dev-elixir/httpoison-1.2.0 - >=dev-elixir/jason-1.0 - >=dev-elixir/mock-0.3.1 - >=dev-elixir/mogrify-0.6.1 - >=dev-elixir/pbkdf2_elixir-0.12.3 - >=dev-elixir/phoenix-1.4.1 - >=dev-elixir/phoenix_ecto-4.0 - >=dev-elixir/phoenix_pubsub-1.1 - >=dev-elixir/pleroma_job_queue-0.2.0 - >=dev-elixir/plug_cowboy-2.0 - >=dev-elixir/poison-3.0 - >=dev-elixir/postgrex-0.13.5 - >=dev-elixir/prometheus_ecto-1.4 - >=dev-elixir/prometheus_ex-3.0 - >=dev-elixir/prometheus_pheonix-1.2 - >=dev-elixir/prometheus_plugs-1.1 - >=dev-elixir/quack-0.1.1 - >=dev-elixir/recon-2.4.0 - >=dev-elixir/swoosh-0.20 - >=dev-elixir/telemetry-0.3 - >=dev-elixir/tesla-1.2 - >=dev-elixir/timex-3.5 - >=dev-elixir/trailing_format_plug-0.0.7 - >=dev-elixir/ueberauth-0.4 - >=dev-elixir/web_push_encryption-0.2.1 - dev-elixir/websocket_client -" -RDEPEND="${DEPEND}" - -src_prepare() { - sed -i '/pleroma: \[/a\ include_erts: false,' ./mix.exs || die "Failed setting release to: include_erts: false" - default -} - -src_compile() { - mix release -}