1 |
commit: 8669bbfaa683092d680223c57eee43c24e073114 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 17 18:18:12 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 17 19:19:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8669bbfa |
7 |
|
8 |
net-im/minbif: migrate to glep 81 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781389 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
net-im/minbif/minbif-1.0.5-r3.ebuild | 83 ++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 83 insertions(+) |
16 |
|
17 |
diff --git a/net-im/minbif/minbif-1.0.5-r3.ebuild b/net-im/minbif/minbif-1.0.5-r3.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..d438c5b97a6 |
20 |
--- /dev/null |
21 |
+++ b/net-im/minbif/minbif-1.0.5-r3.ebuild |
22 |
@@ -0,0 +1,83 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit cmake |
29 |
+ |
30 |
+DESCRIPTION="IRC gateway to IM networks" |
31 |
+HOMEPAGE="https://symlink.me/projects/minbif/wiki/" |
32 |
+SRC_URI="https://symlink.me/attachments/download/148/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="amd64 ~arm x86" |
37 |
+IUSE="gnutls +imlib +libcaca pam xinetd" |
38 |
+REQUIRED_USE="libcaca? ( imlib )" |
39 |
+ |
40 |
+DEPEND=" |
41 |
+ acct-group/minbif |
42 |
+ acct-user/minbif |
43 |
+ net-im/pidgin |
44 |
+ gnutls? ( net-libs/gnutls ) |
45 |
+ imlib? ( media-libs/imlib2 ) |
46 |
+ libcaca? ( |
47 |
+ media-libs/imlib2 |
48 |
+ media-libs/libcaca |
49 |
+ ) |
50 |
+ pam? ( sys-libs/pam ) |
51 |
+" |
52 |
+RDEPEND=" |
53 |
+ ${DEPEND} |
54 |
+ virtual/logger |
55 |
+ xinetd? ( sys-apps/xinetd ) |
56 |
+" |
57 |
+ |
58 |
+PATCHES=( |
59 |
+ "${FILESDIR}/${PN}-1.0.5-glib-single-includes.patch" |
60 |
+ "${FILESDIR}/${PN}-1.0.5-gcc47.patch" |
61 |
+ "${FILESDIR}/${PN}-1.0.5-rename-imlib-load-error.patch" |
62 |
+) |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ cmake_src_prepare |
66 |
+ |
67 |
+ sed "s/-Werror//g" -i CMakeLists.txt || die |
68 |
+ |
69 |
+ if use xinetd; then |
70 |
+ sed "s/type\s=\s[0-9]/type = 0/" -i minbif.conf || die |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ -DCONF_PREFIX="${EPREFIX}"/etc/minbif |
77 |
+ -DDOC_PREFIX="${EPREFIX}"/usr/share/doc/"${PF}" |
78 |
+ -DENABLE_VIDEO=OFF |
79 |
+ -DENABLE_TLS=$(usex gnutls) |
80 |
+ -DENABLE_IMLIB=$(usex imlib) |
81 |
+ -DENABLE_CACA=$(usex libcaca) |
82 |
+ -DENABLE_PAM=$(usex pam) |
83 |
+ ) |
84 |
+ |
85 |
+ cmake_src_configure |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ cmake_src_install |
90 |
+ keepdir /var/lib/minbif |
91 |
+ fperms 700 /var/lib/minbif |
92 |
+ fowners minbif:minbif /var/lib/minbif |
93 |
+ |
94 |
+ doman man/minbif.8 |
95 |
+ |
96 |
+ if use xinetd; then |
97 |
+ insinto /etc/xinetd.d |
98 |
+ newins doc/minbif.xinetd minbif |
99 |
+ fi |
100 |
+ |
101 |
+ newinitd "${FILESDIR}"/minbif.initd minbif |
102 |
+ |
103 |
+ insinto /usr/share/minbif |
104 |
+ doins -r scripts |
105 |
+} |