From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F214715ACFC for ; Mon, 10 Apr 2023 14:18:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34745E07D3; Mon, 10 Apr 2023 14:18:35 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0FCF0E07D3 for ; Mon, 10 Apr 2023 14:18:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E8E62335DBB for ; Mon, 10 Apr 2023 14:18:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8036A920 for ; Mon, 10 Apr 2023 14:18:31 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1681136286.e7d39cb14fb10dc2010f07ef9ca528cccd5bfb48.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: www-apps/gotosocial/ X-VCS-Repository: repo/proj/guru X-VCS-Files: www-apps/gotosocial/Manifest www-apps/gotosocial/gotosocial-0.8.0.ebuild X-VCS-Directories: www-apps/gotosocial/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: e7d39cb14fb10dc2010f07ef9ca528cccd5bfb48 X-VCS-Branch: dev Date: Mon, 10 Apr 2023 14:18:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9ceea87c-9b6d-448d-921e-713e5e935bfe X-Archives-Hash: eed8fdd3faaaf6914a6891b09161b604 commit: e7d39cb14fb10dc2010f07ef9ca528cccd5bfb48 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Mon Apr 10 14:17:50 2023 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Mon Apr 10 14:18:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e7d39cb1 www-apps/gotosocial: add 0.8.0 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> www-apps/gotosocial/Manifest | 2 + www-apps/gotosocial/gotosocial-0.8.0.ebuild | 102 ++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) diff --git a/www-apps/gotosocial/Manifest b/www-apps/gotosocial/Manifest index d3c0722e7..8c4f1204a 100644 --- a/www-apps/gotosocial/Manifest +++ b/www-apps/gotosocial/Manifest @@ -1,2 +1,4 @@ DIST gotosocial-0.7.1-source-code.tar.gz 50913308 BLAKE2B 90daac4c7250313965b01504e806559c98b1785b81b44b5254f8ad54da16d56c1174ac0b4be52a3a4b4ff68d2e19e340e8fb67490ca9093d7c452030eb1e3d69 SHA512 0c3c71eb66126f8b4e3c617e9ca27cb824d181d4dd22ab0aeb2851a6a6754d736a8a8245db4da9c3f51341b73fcc863b7a482da3dfbd54f0387f9842f84e70a0 +DIST gotosocial-0.8.0-source-code.tar.gz 52503432 BLAKE2B 34f12afc5d1e51bbc2bb6e7b66aed79dd5a659357d711cf5c0432d11351d986c7ac33635be75ca8be20dbaaf1c570c9a00ca5603e0257d3b3dc2238b0f1ac462 SHA512 b3bbb160e039ddc8e36165bd39e6d633d719d6bed49a9c8a3e0a2bd8d272c42940132126b076a8dd8998cf2497c888f033baf6f23b44901c3f270efa87db6ba4 DIST gotosocial_0.7.1_web-assets.tar.gz 1314903 BLAKE2B 9f27eadff51615d44d3cae3ce58302b2e0a2b56706429b2696df08d8385b0d8049f2a1caa9da5f169dcef5b61b2798bc863d3d780514df703a6bda99ba758df7 SHA512 6709aa5cbfe2a7077d2ea3291fbe2f246153d7a6ebfb49d8d369cb39c7620f47a9ec857d82581243ad59970c48854a944741e697d915fb1d9deb45ed8fed333d +DIST gotosocial_0.8.0_web-assets.tar.gz 1306945 BLAKE2B eaf9286865c76fc73b9c471551264b1009fb3a6f6fa0d93a51a62092d3249259e5aa488eedf2c959b4c5e035b54f713577022ea299635d1ffa94f5670dc75a7f SHA512 d2d54627adf2e28f5cd8e85322db7279f280ef34e83b8118b608851ffe55801e39679d63273a6f997262b3352f499299b19e2698d5c6ebb28b63bfb0dbbf326c diff --git a/www-apps/gotosocial/gotosocial-0.8.0.ebuild b/www-apps/gotosocial/gotosocial-0.8.0.ebuild new file mode 100644 index 000000000..ab8204997 --- /dev/null +++ b/www-apps/gotosocial/gotosocial-0.8.0.ebuild @@ -0,0 +1,102 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DOCS_BUILDER="mkdocs" +DOCS_DEPEND=( + dev-python/mkdocs-material + dev-python/mkdocs-swagger-ui-tag + dev-python/pillow + dev-python/regex + media-gfx/cairosvg +) +inherit python-any-r1 docs go-module systemd tmpfiles + +DESCRIPTION="Fast, fun, ActivityPub server, powered by Go" +HOMEPAGE=" + https://gotosocial.org/ + https://github.com/superseriousbusiness/gotosocial +" +GH_RELEASE="https://github.com/superseriousbusiness/${PN}/releases/download/v${PV}" +SRC_URI=" + ${GH_RELEASE}/${P}-source-code.tar.gz + ${GH_RELEASE}/${PN}_${PV}_web-assets.tar.gz +" +S="${WORKDIR}" + +LICENSE="|| ( WTFPL-2 CC0-1.0 ) AGPL-3 Apache-2.0 BSD BSD-2 CC0-1.0 GPL-3 MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" + +# Flaky tests +RESTRICT="test" + +RDEPEND="acct-user/gotosocial" + +DOCS=( archive {CONTRIBUTING,README,ROADMAP}.md ) + +src_unpack() { + # source code + unpack ${P}-source-code.tar.gz + rm -r web || die + + # prebuilt web assets + unpack ${PN}_${PV}_web-assets.tar.gz +} + +src_prepare() { + default + + sed -i example/config.yaml \ + -e "s|./web/template/|${EPREFIX}/usr/share/gotosocial/web/template/|g" \ + -e "s|./web/assets/|${EPREFIX}/usr/share/gotosocial/web/assets/|g" \ + -e "s|/gotosocial/storage|${EPREFIX}/var/lib/gotosocial/storage|g" \ + || die +} + +src_configure() { + GOFLAGS+=" -tags=netgo,osusergo,static_build,kvformat" +} + +src_compile() { + local myargs=( + -trimpath + -ldflags "-X main.Version=${PV}" + ) + + ego build "${myargs[@]}" ./cmd/gotosocial + + use doc && docs_compile +} + +src_test() { + local -x GTS_DB_TYPE="sqlite" + local -x GTS_DB_ADDRESS=":memory:" + + local -x GOFLAGS + GOFLAGS="${GOFLAGS//-v/}" + GOFLAGS="${GOFLAGS//-x/}" + + ego test -vet off ./... +} + +src_install() { + dobin gotosocial + + newinitd "${FILESDIR}"/gotosocial.initd ${PN} + newconfd "${FILESDIR}"/gotosocial.confd ${PN} + systemd_dounit "${FILESDIR}"/gotosocial.service + newtmpfiles "${FILESDIR}"/gotosocial.tmpfiles ${PN}.conf + + insinto /usr/share/gotosocial + doins -r web + + insinto /etc/gotosocial + doins example/config.yaml +} + +pkg_postinst() { + tmpfiles_process ${PN}.conf +}