dev-db/pgagent: [QA] Add cmake-utils_src_prepare

Package-Manager: Portage-2.3.11, Repoman-2.3.3
This commit is contained in:
David Seifert
2017-10-15 16:20:23 -07:00
parent 98b4500e1d
commit 5a4d4a3c3b
2 changed files with 5 additions and 2 deletions

View 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"
@@ -28,6 +28,8 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${MY_PN}-${PV}-Source"
src_prepare() {
cmake-utils_src_prepare
sed -e "s:share):share/${P}):" \
-i CMakeLists.txt || die "Couldn't patch CMakeLists.txt"
sed -i -e '/SET(WX_VERSION "2.8")/d' CMakeLists.txt || die

View File

@@ -33,7 +33,8 @@ PATCHES=(
)
src_prepare() {
default
cmake-utils_src_prepare
sed -e "s:share):share/${P}):" \
-i CMakeLists.txt || die "failed to patch CMakeLists.txt"
sed -i -e '/SET(WX_VERSION "2.8")/d' CMakeLists.txt || die