Updated bzr bep file to build with gcc2, the gcc4 build should still work as well, but untested.

This commit is contained in:
Scott McCreary
2010-09-11 05:07:20 +00:00
parent 1184432772
commit ffdcfea644

View File

@@ -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/