aboutsummaryrefslogtreecommitdiffstats
path: root/net-news/miniflux/miniflux-2.0.36.ebuild
blob: 7bd535089a331a7490f21ebe1acea286add9f8b9 (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit go-module

MY_P="v2-${PV}"

KEYWORDS="amd64 x86"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz ${EGO_SUM_SRC_URI}"
SRC_URI+="https://nest.oriole.systems/gentoo/go-mod/${P}-deps.tar.xz"

DESCRIPTION="Minimalist and opinionated feed reader"
HOMEPAGE="https://miniflux.app/"

LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
RESTRICT="mirror"

DEPEND="
	acct-user/miniflux
	acct-group/miniflux"

RDEPEND="${DEPEND}
	>=dev-db/postgresql-9.5"

S="${WORKDIR}/${MY_P}"

src_unpack() {
	go-module_src_unpack
}

src_compile() {
	go build -ldflags="-X miniflux.app/version.Version=${PV} -X miniflux.app/version.BuildDate=$(date +%FT%T%z)" || die
}

src_install() {
	newbin ${PN}.app ${PN}
	doman ${PN}.1

	insinto /etc/miniflux
	doins "${FILESDIR}/miniflux.conf"
	fowners root:miniflux /etc/miniflux
	fperms 0750 /etc/miniflux

	newinitd "${FILESDIR}/miniflux.initd" miniflux
}