net-im/minbif: Remove PREFIX setting for CMake
authorDavid Seifert <soap@gentoo.org>
Sat, 6 May 2017 15:02:35 +0000 (17:02 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 6 May 2017 22:19:55 +0000 (00:19 +0200)
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

index c2f971d818190ce18554ca7c0e923a8e9e41e092..1d5e71be66a73335fa0bd59a35b186473f5133ea 100644 (file)
@@ -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
 }