blob: 93626f395c82f51802477d41f11268c3b500535b (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit nimble systemd
COMMIT="81ec41328d5684dd395f584254d723abee213ac0"
DESCRIPTION="An alternative front-end for Twitter"
HOMEPAGE="https://github.com/zedeus/nitter"
SRC_URI="https://github.com/zedeus/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test"
PROPERTIES="test_network"
RDEPEND="
acct-user/nitter
dev-db/redis
dev-nim/flatty
dev-nim/jester
dev-nim/jsony
dev-nim/karax
dev-nim/nimcrypto
dev-nim/packedjson
dev-nim/redpool
dev-nim/supersnappy
dev-nim/zedeus_redis
dev-nim/zippy
"
DEPEND="
dev-nim/markdown
dev-nim/sass
"
src_configure() {
nimble_src_configure
# Error: unhandled exception: cannot open: public/lp.svg
ln -s "${S}"/public "${BUILD_DIR}/public" || die
}
src_compile() {
nimble_src_compile
enim r tools/gencss
enim r tools/rendermd
}
src_install() {
nimble_src_install
newinitd "${FILESDIR}"/nitter.initd ${PN}
systemd_dounit "${FILESDIR}"/nitter.service
insinto /etc/nitter
doins "${FILESDIR}"/nitter.conf.example
insinto /usr/share/nitter
doins -r public
}
|