commit:     e074daac3591b127416eee4c9df6e44ec46a3d56
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May  6 15:02:35 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May  6 22:19:55 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e074daac

net-im/minbif: Remove PREFIX setting for CMake

Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4555

 net-im/minbif/minbif-1.0.5-r2.ebuild | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/net-im/minbif/minbif-1.0.5-r2.ebuild 
b/net-im/minbif/minbif-1.0.5-r2.ebuild
index c2f971d8181..1d5e71be66a 100644
--- a/net-im/minbif/minbif-1.0.5-r2.ebuild
+++ b/net-im/minbif/minbif-1.0.5-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -28,15 +28,19 @@ RDEPEND="${DEPEND}
        xinetd? ( sys-apps/xinetd )
 "
 
+PATCHES=(
+       "${FILESDIR}/${PN}-1.0.5-glib-single-includes.patch"
+       "${FILESDIR}/${PN}-1.0.5-gcc47.patch"
+       "${FILESDIR}/${PN}-1.0.5-rename-imlib-load-error.patch"
+)
+
 pkg_setup() {
        enewgroup minbif
        enewuser minbif -1 -1 /var/lib/minbif minbif
 }
 
 src_prepare() {
-       epatch "${FILESDIR}/${PN}-1.0.5-glib-single-includes.patch"
-       epatch "${FILESDIR}/${PN}-1.0.5-gcc47.patch"
-       epatch "${FILESDIR}/${PN}-1.0.5-rename-imlib-load-error.patch"
+       cmake-utils_src_prepare
 
        sed -i "s/-Werror//g" CMakeLists.txt || die "sed failed"
 
@@ -50,14 +54,14 @@ src_prepare() {
 }
 
 src_configure() {
-       local mycmakeargs
-       mycmakeargs="${mycmakeargs}
-               -DCONF_PREFIX=${PREFIX:-/etc/minbif}
+       local mycmakeargs=(
+               -DCONF_PREFIX="${EPREFIX}"/etc/minbif
                -DENABLE_VIDEO=OFF
                $(cmake-utils_use_enable libcaca CACA)
                $(cmake-utils_use_enable imlib IMLIB)
                $(cmake-utils_use_enable pam PAM)
-               $(cmake-utils_use_enable gnutls TLS)"
+               $(cmake-utils_use_enable gnutls TLS)
+       )
 
        cmake-utils_src_configure
 }

Reply via email to