app-arch/innoextract: Gather patches in PATCHES array.
authorPatrice Clement <monsieurp@gentoo.org>
Thu, 10 Mar 2016 23:00:50 +0000 (23:00 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Thu, 10 Mar 2016 23:02:23 +0000 (23:02 +0000)
Package-Manager: portage-2.2.26

app-arch/innoextract/innoextract-1.4.ebuild
app-arch/innoextract/innoextract-1.5.ebuild

index 1fb858ef931cdceb7afc9fe39c14444ef08d1431..2d889b2c743d6dd92733ae1171ee88ebab2c3981 100644 (file)
@@ -34,6 +34,11 @@ DEPEND="${RDEPEND}
 
 DOCS=( README.md CHANGELOG )
 
+PATCHES=(
+       "${FILESDIR}"/${P}-cmake.patch
+       "${FILESDIR}"/${P}-cmake-3.5.patch
+)
+
 pkg_pretend() {
        if [[ ${MERGE_TYPE} != binary ]]; then
                # not sure about minimum clang req
@@ -47,8 +52,7 @@ pkg_pretend() {
 }
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-cmake.patch
-       epatch "${FILESDIR}"/${P}-cmake-3.5.patch
+       epatch "${PATCHES[@]}"
        cmake-utils_src_prepare
 }
 
index eedb4ed6dcbbc0ddbaf3851f67a2da01828e596e..50d0ce5b8f88ecba2ebbe9d2c47628a5df7461e5 100644 (file)
@@ -23,8 +23,12 @@ DEPEND="${RDEPEND}"
 
 DOCS=( README.md CHANGELOG )
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.4-cmake-3.5.patch
+)
+
 src_prepare() {
-       epatch "${FILESDIR}"/${PN}-1.4-cmake-3.5.patch
+       epatch "${PATCHES[@]}"
        cmake-utils_src_prepare
 }