summaryrefslogtreecommitdiff
path: root/net-news/comitium/comitium-1.8.2.ebuild
blob: 56797adfb3a57fd0c2cf2aadf83ff156ef971c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

inherit go-module

DESCRIPTION="Feed aggregator for gemini supporting many formats and protocols"
HOMEPAGE="https://sr.ht/~nytpu/comitium/"
SRC_URI="https://git.sr.ht/~nytpu/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/sysrq-golang-dist/${PN}/releases/download/v${PV}/${P}-deps.tar.xz"
S="${WORKDIR}/${PN}-v${PV}"

LICENSE="AGPL-3"
# Go dependency licenses
LICENSE+=" Apache-2.0 BSD BSD-2 MIT"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="app-text/scdoc"

DOCS=( doc/quickstart.{en,fr}.md doc/translating.en.md )

src_configure() {
	export GO="go"
	export GOLDFLAGS="-X golang.nytpu.com/comitium/core.Version=${PV} -X golang.nytpu.com/comitium/core.Commit=tarball"
	export PREFIX="${EPREFIX}/usr"
	go-module_src_configure
}