Gentoo Archives: gentoo-commits

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