net-libs/polarssl: [QA] Add cmake-utils_src_prepare
authorDavid Seifert <soap@gentoo.org>
Mon, 16 Oct 2017 02:40:42 +0000 (19:40 -0700)
committerDavid Seifert <soap@gentoo.org>
Mon, 16 Oct 2017 02:47:37 +0000 (19:47 -0700)
Package-Manager: Portage-2.3.11, Repoman-2.3.3

net-libs/polarssl/polarssl-1.3.9-r1.ebuild
net-libs/polarssl/polarssl-1.3.9.ebuild

index a8b641680e7f837b61166a66ceea7f4519178ab1..01f8abbeec117e874a24b90a48987ed64ec7bccb 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -24,6 +24,8 @@ DEPEND="${RDEPEND}
        doc? ( app-doc/doxygen media-gfx/graphviz )
        test? ( dev-lang/perl )"
 
+PATCHES=( "${FILESDIR}"/${PN}-1.3.9-respect-cflags.patch )
+
 enable_polarssl_option() {
        local myopt="$@"
        # check that config.h syntax is the same at version bump
@@ -39,7 +41,7 @@ src_prepare() {
        use threads && enable_polarssl_option POLARSSL_THREADING_C
        use threads && enable_polarssl_option POLARSSL_THREADING_PTHREAD
 
-       epatch "${FILESDIR}"/${PN}-1.3.9-respect-cflags.patch
+       cmake-utils_src_prepare
 }
 
 multilib_src_configure() {
index 1e9b0680450ebc8e1f90ee4b0a470970889fc5a6..6dce83e4878f514257f35bd98c91504001e64e8a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -21,6 +21,8 @@ DEPEND="${RDEPEND}
        doc? ( app-doc/doxygen media-gfx/graphviz )
        test? ( dev-lang/perl )"
 
+PATCHES=( "${FILESDIR}"/${PN}-1.3.9-respect-cflags.patch )
+
 enable_polarssl_option() {
        local myopt="$@"
        # check that config.h syntax is the same at version bump
@@ -36,7 +38,7 @@ src_prepare() {
        use threads && enable_polarssl_option POLARSSL_THREADING_C
        use threads && enable_polarssl_option POLARSSL_THREADING_PTHREAD
 
-       epatch "${FILESDIR}"/${PN}-1.3.9-respect-cflags.patch
+       cmake-utils_src_prepare
 }
 
 multilib_src_configure() {