Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/minbif/
Date: Sat, 06 May 2017 22:21:02
Message-Id: 1494109195.e074daac3591b127416eee4c9df6e44ec46a3d56.soap@gentoo
1 commit: e074daac3591b127416eee4c9df6e44ec46a3d56
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 6 15:02:35 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat May 6 22:19:55 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e074daac
7
8 net-im/minbif: Remove PREFIX setting for CMake
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11 Closes: https://github.com/gentoo/gentoo/pull/4555
12
13 net-im/minbif/minbif-1.0.5-r2.ebuild | 20 ++++++++++++--------
14 1 file changed, 12 insertions(+), 8 deletions(-)
15
16 diff --git a/net-im/minbif/minbif-1.0.5-r2.ebuild b/net-im/minbif/minbif-1.0.5-r2.ebuild
17 index c2f971d8181..1d5e71be66a 100644
18 --- a/net-im/minbif/minbif-1.0.5-r2.ebuild
19 +++ b/net-im/minbif/minbif-1.0.5-r2.ebuild
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 +# Copyright 1999-2017 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=5
26 @@ -28,15 +28,19 @@ RDEPEND="${DEPEND}
27 xinetd? ( sys-apps/xinetd )
28 "
29
30 +PATCHES=(
31 + "${FILESDIR}/${PN}-1.0.5-glib-single-includes.patch"
32 + "${FILESDIR}/${PN}-1.0.5-gcc47.patch"
33 + "${FILESDIR}/${PN}-1.0.5-rename-imlib-load-error.patch"
34 +)
35 +
36 pkg_setup() {
37 enewgroup minbif
38 enewuser minbif -1 -1 /var/lib/minbif minbif
39 }
40
41 src_prepare() {
42 - epatch "${FILESDIR}/${PN}-1.0.5-glib-single-includes.patch"
43 - epatch "${FILESDIR}/${PN}-1.0.5-gcc47.patch"
44 - epatch "${FILESDIR}/${PN}-1.0.5-rename-imlib-load-error.patch"
45 + cmake-utils_src_prepare
46
47 sed -i "s/-Werror//g" CMakeLists.txt || die "sed failed"
48
49 @@ -50,14 +54,14 @@ src_prepare() {
50 }
51
52 src_configure() {
53 - local mycmakeargs
54 - mycmakeargs="${mycmakeargs}
55 - -DCONF_PREFIX=${PREFIX:-/etc/minbif}
56 + local mycmakeargs=(
57 + -DCONF_PREFIX="${EPREFIX}"/etc/minbif
58 -DENABLE_VIDEO=OFF
59 $(cmake-utils_use_enable libcaca CACA)
60 $(cmake-utils_use_enable imlib IMLIB)
61 $(cmake-utils_use_enable pam PAM)
62 - $(cmake-utils_use_enable gnutls TLS)"
63 + $(cmake-utils_use_enable gnutls TLS)
64 + )
65
66 cmake-utils_src_configure
67 }