blob: 8e69a6744d0f348ad52ae106ec7c0344227e2088 (
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
|
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="minimalistic commandline pastebin"
HOMEPAGE="https://bsd.ac"
inherit systemd meson
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/PurritoBin/PurritoBin.git"
else
SRC_URI="https://github.com/PurritoBin/PurritoBin/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/PurritoBin-${PV}"
fi
LICENSE="ISC"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-db/lmdb-0.9.29
net-libs/usockets[ssl]
acct-user/purritobin
acct-group/purritobin
"
DEPEND="${RDEPEND}
www-apps/uwebsockets
>=dev-db/lmdb++-1.0.0
"
BDEPEND="test? (
net-misc/curl[ssl]
sys-apps/coreutils
)"
src_configure() {
local emesonargs=(
$(meson_use test enable_testing)
-Dtest_dd_flags="iflag=fullblock"
)
meson_src_configure
}
src_install() {
meson_src_install
insinto /var/www/purritobin
doins frontend/paste.html
keepdir /var/db/purritobin
fowners purritobin:purritobin /var/www/purritobin /var/db/purritobin
newinitd services/openrc purritobin
systemd_newunit services/systemd purritobin.service
einstalldocs
}
|