1 |
commit: 8f65138eda0e652b8f80f4652a223237f4e35c8b |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 3 13:42:48 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 3 13:43:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f65138e |
7 |
|
8 |
net-im/prosody: fix tests for 0.11.5 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/740662 |
11 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
net-im/prosody/prosody-0.11.5-r1.ebuild | 72 +++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 72 insertions(+) |
16 |
|
17 |
diff --git a/net-im/prosody/prosody-0.11.5-r1.ebuild b/net-im/prosody/prosody-0.11.5-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..6ffc3bd7b48 |
20 |
--- /dev/null |
21 |
+++ b/net-im/prosody/prosody-0.11.5-r1.ebuild |
22 |
@@ -0,0 +1,72 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit multilib systemd toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION="Prosody is a flexible communications server for Jabber/XMPP written in Lua" |
31 |
+HOMEPAGE="https://prosody.im/" |
32 |
+SRC_URI="https://prosody.im/downloads/source/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="MIT" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="amd64 arm x86" |
37 |
+IUSE="ipv6 jit libevent libressl mysql postgres sqlite ssl test zlib" |
38 |
+RESTRICT="!test? ( test )" |
39 |
+ |
40 |
+BASE_DEPEND="net-im/jabber-base |
41 |
+ dev-lua/LuaBitOp |
42 |
+ !jit? ( >=dev-lang/lua-5.1:0 ) |
43 |
+ jit? ( dev-lang/luajit:2 ) |
44 |
+ !libressl? ( dev-libs/openssl:0 ) |
45 |
+ libressl? ( dev-libs/libressl:= ) |
46 |
+ >=net-dns/libidn-1.1:=" |
47 |
+ |
48 |
+DEPEND="${BASE_DEPEND} |
49 |
+ test? ( dev-lua/busted )" |
50 |
+ |
51 |
+RDEPEND="${BASE_DEPEND} |
52 |
+ ~dev-lua/luaexpat-1.3.0 |
53 |
+ dev-lua/luafilesystem |
54 |
+ !ipv6? ( dev-lua/luasocket ) |
55 |
+ ipv6? ( >=dev-lua/luasocket-3 ) |
56 |
+ libevent? ( >=dev-lua/luaevent-0.4.3 ) |
57 |
+ mysql? ( dev-lua/luadbi[mysql] ) |
58 |
+ postgres? ( dev-lua/luadbi[postgres] ) |
59 |
+ sqlite? ( dev-lua/luadbi[sqlite] ) |
60 |
+ ssl? ( dev-lua/luasec ) |
61 |
+ zlib? ( dev-lua/lua-zlib )" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}/${PN}-0.11.2-r1-gentoo.patch" ) |
64 |
+ |
65 |
+JABBER_ETC="/etc/jabber" |
66 |
+JABBER_SPOOL="/var/spool/jabber" |
67 |
+ |
68 |
+src_configure() { |
69 |
+ # the configure script is handcrafted (and yells at unknown options) |
70 |
+ # hence do not use 'econf' |
71 |
+ ./configure \ |
72 |
+ --ostype=linux \ |
73 |
+ --prefix="${EPREFIX}/usr" \ |
74 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
75 |
+ --sysconfdir="${EPREFIX}${JABBER_ETC}" \ |
76 |
+ --datadir="${EPREFIX}${JABBER_SPOOL}" \ |
77 |
+ --with-lua-include="${EPREFIX}/usr/include" \ |
78 |
+ --with-lua-lib="${EPREFIX}/usr/$(get_libdir)/lua" \ |
79 |
+ --runwith=lua"$(usev jit)" \ |
80 |
+ --cflags="${CFLAGS} -Wall -fPIC" \ |
81 |
+ --ldflags="${LDFLAGS} -shared" \ |
82 |
+ --c-compiler="$(tc-getCC)" \ |
83 |
+ --linker="$(tc-getCC)" || die "configure failed" |
84 |
+ |
85 |
+ rm makefile && mv GNUmakefile Makefile || die |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ emake DESTDIR="${D}" install |
90 |
+ systemd_dounit "${FILESDIR}/${PN}".service |
91 |
+ systemd_newtmpfilesd "${FILESDIR}/${PN}".tmpfilesd "${PN}".conf |
92 |
+ newinitd "${FILESDIR}/${PN}".initd-r2 ${PN} |
93 |
+ keepdir "${JABBER_SPOOL}" |
94 |
+} |