summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-07-18 22:57:31 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-07-18 22:58:03 +0200
commited2d9347b7da75bada1ffd581ad7903646427e0b (patch)
treed1365788049a4004fe61d4d06c7f4b22a4261dd8 /app-office/ledger
parentdev-python/QtPy: Drop old (diff)
downloadgentoo-ed2d9347b7da75bada1ffd581ad7903646427e0b.tar.gz
gentoo-ed2d9347b7da75bada1ffd581ad7903646427e0b.tar.bz2
gentoo-ed2d9347b7da75bada1ffd581ad7903646427e0b.zip
app-office/ledger: Fix build with >=boost-1.70
Closes: https://bugs.gentoo.org/654326 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-office/ledger')
-rw-r--r--app-office/ledger/ledger-3.1.2.ebuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/app-office/ledger/ledger-3.1.2.ebuild b/app-office/ledger/ledger-3.1.2.ebuild
index 1fe3082e204b..d027cb0f7359 100644
--- a/app-office/ledger/ledger-3.1.2.ebuild
+++ b/app-office/ledger/ledger-3.1.2.ebuild
@@ -62,10 +62,13 @@ pkg_setup() {
src_prepare() {
cmake-utils_src_prepare
- sed -r -i \
- -e '/set.BOOST_PYTHON/s/python27/python-2.7/g' \
- "${S}/CMakeLists.txt" \
- || die "Failed to update CMakeLists.txt for python2.7 boost"
+
+ if ! has_version ">=dev-libs/boost-1.70"; then
+ sed -r -i \
+ -e '/set.BOOST_PYTHON/s/python27/python-2.7/g' \
+ "${S}/CMakeLists.txt" \
+ || die "Failed to update CMakeLists.txt for python2.7 boost"
+ fi
# Want to type "info ledger" not "info ledger3"
sed -i -e 's/ledger3/ledger/g' \