OpenCV 3.1.0 has been installed by following the commands locally on Donatella
git clone https://github.com/Itseez/opencv.git
git checkout 3.1.0
git clone https://github.com/Itseez/opencv_contrib.git
git checkout 3.0.0
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/~/opencv_contrib/modules/ ~/opencv/
In ~/opencv/release, make and sudo make install were executed.
This completed the installation. The version of the installation was verified pkg-config --modversion opencv which showed 3.1.0. Also verified the import of cv2 module in python and it seems to work fine.