Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/purritobin/
Date: Tue, 08 Sep 2020 20:51:41
Message-Id: 1599598260.01063dd1cfcff7f7437af66de5dbbc5e9d42c589.epsilon-0@gentoo
1 commit: 01063dd1cfcff7f7437af66de5dbbc5e9d42c589
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Tue Sep 8 20:51:00 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Tue Sep 8 20:51:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=01063dd1
7
8 net-misc/purritobin: version bump
9
10 Package-Manager: Portage-3.0.5, Repoman-3.0.1
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 net-misc/purritobin/Manifest | 1 +
14 net-misc/purritobin/purritobin-0.2.4.ebuild | 50 +++++++++++++++++++++++++++++
15 2 files changed, 51 insertions(+)
16
17 diff --git a/net-misc/purritobin/Manifest b/net-misc/purritobin/Manifest
18 index 55b78596..0f145ca0 100644
19 --- a/net-misc/purritobin/Manifest
20 +++ b/net-misc/purritobin/Manifest
21 @@ -1 +1,2 @@
22 DIST purritobin-0.2.3.tar.gz 11243 BLAKE2B 0859500ff4bc818d2beeccd445118e3f5c20e88c486a63bd4ab75ce74f7bcf681f7d56f02cd995285784dc2951d29547f616637c076cb0bdf2fc9eca4f3eecce SHA512 f0642cac76ef4f27658be6b9fb89f4518b4a2edef9ad26d292c05f70f4d2b842cfad0ea26acf569e43e70dfca19d94f11e28ec09b161139ae5bddc63f0ac6af5
23 +DIST purritobin-0.2.4.tar.gz 11356 BLAKE2B 5a96a71b5426f0e27813aaa7287fa803a7127f16e21f15689f325784878b53603536f809d898842ff4eb68a9ceee2e565015e02de4e3eb067f66ed4b84c90e99 SHA512 1394a203b80c0d53c5bd0b5d941c9d69549fb53d3ad2974e197a3d323fc6a9a00b3c5c4c81c6b42bda8b06269886c63faf6246d4c9493fb4d145e858ed69ef1e
24
25 diff --git a/net-misc/purritobin/purritobin-0.2.4.ebuild b/net-misc/purritobin/purritobin-0.2.4.ebuild
26 new file mode 100644
27 index 00000000..301a1af7
28 --- /dev/null
29 +++ b/net-misc/purritobin/purritobin-0.2.4.ebuild
30 @@ -0,0 +1,50 @@
31 +# Copyright 2019-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DESCRIPTION="minimalistic commandline pastebin"
37 +HOMEPAGE="https://bsd.ac"
38 +
39 +if [[ ${PV} == 9999 ]]; then
40 + inherit git-r3
41 + EGIT_REPO_URI="https://github.com/PurritoBin/PurritoBin.git"
42 + KEYWORDS=""
43 +else
44 + SRC_URI="https://github.com/PurritoBin/PurritoBin/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~arm64 ~x86"
46 + S="${WORKDIR}/PurritoBin-${PV}"
47 +fi
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +IUSE="libuv static-libs"
52 +
53 +RDEPEND="net-libs/usockets[libuv=,static-libs?]
54 + libuv? ( >=dev-libs/libuv-1.35.0[static-libs?] )
55 +"
56 +DEPEND="${RDEPEND}
57 + www-apps/uwebsockets
58 +"
59 +
60 +src_prepare() {
61 + sed -i -e "s:.ifdef:ifdef:g" \
62 + -e "s:.else:else:g" \
63 + -e "s:.endif:endif:g" \
64 + Makefile
65 + default
66 +}
67 +
68 +src_compile() {
69 + env LDFLAGS="-L/usr/$(get_libdir)" \
70 + emake $(usex libuv USE_DLIBUV=1 '') \
71 + $(usex static-libs USE_STATIC=1 '') \
72 + all
73 +}
74 +
75 +src_install() {
76 + emake prefix="/usr" \
77 + DESTDIR="${D}" \
78 + install
79 + einstalldocs
80 +}