From ffdcfea6442aafd1bf252221c96fe37615e592b8 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Sat, 11 Sep 2010 05:07:20 +0000 Subject: [PATCH] Updated bzr bep file to build with gcc2, the gcc4 build should still work as well, but untested. --- dev-vcs/bzr/bzr-2.2b4.bep | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dev-vcs/bzr/bzr-2.2b4.bep b/dev-vcs/bzr/bzr-2.2b4.bep index e4d0c2dbe..e7bcc097b 100644 --- a/dev-vcs/bzr/bzr-2.2b4.bep +++ b/dev-vcs/bzr/bzr-2.2b4.bep @@ -8,12 +8,20 @@ DEPEND="" BUILD { cd bzr-2.2b4 - make + if [ -n "$(setgcc | grep '2')" ]; then + python setup.py build_ext --allow-python-fallback + else + python setup.py build + fi } INSTALL { cd bzr-2.2b4 - python setup.py install --prefix=`finddir B_COMMON_DIRECTORY` --root=${DESTDIR} + if [ -n "$(setgcc | grep '2')" ]; then + python setup.py build_ext --allow-python-fallback install --prefix=`finddir B_COMMON_DIRECTORY` --root=${DESTDIR} + else + python setup.py install --prefix=`finddir B_COMMON_DIRECTORY` --root=${DESTDIR} + fi ## Now put the man file(s) in the correct directory mkdir -p ${DESTDIR}$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1 mv ${DESTDIR}/$(finddir B_COMMON_DIRECTORY)/man/man1/bzr* ${DESTDIR}/$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1/