Skip to content

Commit

Permalink
app-office/ledger: Fix build with >=boost-1.70
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/654326
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Jul 18, 2019
1 parent 610062c commit ed2d934
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app-office/ledger/ledger-3.1.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down

0 comments on commit ed2d934

Please sign in to comment.