Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-im/biboumi/
Date: Mon, 11 May 2020 08:57:38
Message-Id: 1589153907.3aca34bde7a208d5e0279a3c9ce3bde31781c188.andrewammerlaan@gentoo
1 commit: 3aca34bde7a208d5e0279a3c9ce3bde31781c188
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Sun May 10 23:29:22 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Sun May 10 23:38:27 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3aca34bd
7
8 net-im/biboumi: Version bump 8.5.
9
10 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
11
12 net-im/biboumi/Manifest | 1 +
13 net-im/biboumi/biboumi-8.5.ebuild | 88 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/net-im/biboumi/Manifest b/net-im/biboumi/Manifest
17 index cd0fc71..3e434ca 100644
18 --- a/net-im/biboumi/Manifest
19 +++ b/net-im/biboumi/Manifest
20 @@ -1,2 +1,3 @@
21 DIST biboumi-8.4.tar.xz 142576 BLAKE2B 3be5f8caf406c480a2750d76eacfe9191bccd8bd0fc2ba0ffe6352bf6f6527ab60f16eb25c9820c063af6c9ff4f1b125eb8d51d53bae4392a0d276e7ad488087 SHA512 69f7a47aaf2729a6bffb047201305cef4b87da952aa103d82e715585bf7b2e97fca8159ced1d74c4b01508c874c0db274d7b8349d1579ee3e69fc0ced2c260c2
22 +DIST biboumi-8.5.tar.xz 142576 BLAKE2B 0e9284aa757f43a8436a7df5f78962663ca8cbf9b9a24dd5ea9c978e3240274b6f817b00169b478332f28b5f50a96833e10b7a3feec5e16b96638ec94daeb843 SHA512 36aa8c66a720faa8d9f0bd76fcd4ee382b7d21f6822de2a03582d03e8e7e440a4a08b1ff21e876e70e6b5b1012973c9936d85faecf4781a5d78e7d8b206c3ef6
23 DIST biboumi-9.0_pre20200419.tar.bz2 150555 BLAKE2B 6c73abcd62c7448cfc990c7228b37c0eda57d05ee987ef5c9661ed2bf8b8376e253e9507c03151d7334b5bff7c8e6807188e5e806473deb79d96fb81212cfb1f SHA512 b86485c0aae5cca6b5909eec2159c9b52069aade3e399721826c02f297b6f3d57e0ddcab9df4f6aa32b0219ccfbf1c7c63c1f51e4b8ab051b6d1f4dbbb34789e
24
25 diff --git a/net-im/biboumi/biboumi-8.5.ebuild b/net-im/biboumi/biboumi-8.5.ebuild
26 new file mode 100644
27 index 0000000..1fa0194
28 --- /dev/null
29 +++ b/net-im/biboumi/biboumi-8.5.ebuild
30 @@ -0,0 +1,88 @@
31 +# Copyright 2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit cmake fcaps
37 +
38 +DESCRIPTION="XMPP gateway to IRC"
39 +HOMEPAGE="https://biboumi.louiz.org/"
40 +SRC_URI="https://git.louiz.org/biboumi/snapshot/biboumi-${PV}.tar.xz"
41 +
42 +LICENSE="ZLIB"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +IUSE="+idn logrotate postgres +sqlite +ssl systemd udns"
46 +
47 +DEPEND="
48 + dev-libs/expat
49 + virtual/libiconv
50 + sys-apps/util-linux
51 + sqlite? ( dev-db/sqlite )
52 + postgres? ( dev-db/postgresql:* )
53 + idn? ( net-dns/libidn )
54 + udns? ( net-libs/udns )
55 + ssl? ( dev-libs/botan:2 )
56 + !ssl? ( dev-libs/libgcrypt )
57 + systemd? ( sys-apps/systemd )
58 +"
59 +BDEPEND="app-text/pandoc"
60 +RDEPEND="
61 + ${DEPEND}
62 + acct-user/biboumi"
63 +
64 +DOCS=( README.rst CHANGELOG.rst )
65 +
66 +# Allow biboumi to run an identd on port 113.
67 +FILECAPS=( cap_net_bind_service+ep usr/bin/biboumi )
68 +
69 +src_prepare() {
70 + cmake_src_prepare
71 +
72 + if ! use systemd; then # Don't install biboumi.service.
73 + sed -i '/DESTINATION lib\/systemd\/system/d' CMakeLists.txt || die
74 + fi
75 +}
76 +
77 +src_configure() {
78 + local mycmakeargs=(
79 + -DWITH_BOTAN="$(usex ssl)"
80 + -DWITH_LIBIDN="$(usex idn)"
81 + -DWITH_SYSTEMD="$(usex systemd)"
82 + -DWITH_UDNS="$(usex udns)"
83 + -DWITH_SQLITE3="$(usex sqlite)"
84 + -DWITH_POSTGRESQL="$(usex postgres)"
85 +
86 + -DWITHOUT_SYSTEMD="$(usex systemd no yes)"
87 + -DWITHOUT_POSTGRESQL="$(usex postgres no yes)"
88 + ) # The WITHOUT_* is really needed.
89 +
90 + cmake_src_configure
91 +}
92 +
93 +src_install() {
94 + cmake_src_install
95 +
96 + if ! use systemd; then
97 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
98 + fi
99 +
100 + if use logrotate; then
101 + insinto etc/logrotate.d
102 + if use systemd; then
103 + newins "${FILESDIR}/${PN}.logrotate.systemd" "${PN}"
104 + else
105 + newins "${FILESDIR}/${PN}.logrotate.openrc" "${PN}"
106 + fi
107 + fi
108 +
109 + diropts --owner=biboumi --group=biboumi --mode=750
110 + if use sqlite; then
111 + keepdir var/lib/biboumi
112 + fi
113 + keepdir var/log/biboumi
114 +
115 + insinto etc/biboumi
116 + insopts --group=biboumi --mode=640
117 + doins conf/biboumi.cfg
118 +}