Skip to content

Commit

Permalink
app-arch/innoextract: Gather patches in PATCHES array.
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
monsieurp committed Mar 10, 2016
1 parent 7da0c72 commit 4f182b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions app-arch/innoextract/innoextract-1.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down
6 changes: 5 additions & 1 deletion app-arch/innoextract/innoextract-1.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4f182b8

Please sign in to comment.