From: Uwe Köcher Date: Wed, 8 Oct 2014 09:15:14 +0000 (+0200) Subject: New Project: kile (Platform file: CentOS 7) X-Git-Tag: v0.4~46 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df84a83073dbe0ca87deb0d010fbb0d3b608dba8;p=candi.git New Project: kile (Platform file: CentOS 7) Changes to be committed: new file: kile/packages/kile.package new file: kile/platforms/supported/centos7.platform new file: project-kile.cfg --- diff --git a/kile/packages/kile.package b/kile/packages/kile.package new file mode 100644 index 0000000..9814d6f --- /dev/null +++ b/kile/packages/kile.package @@ -0,0 +1,45 @@ +VERSION=${KILEVERSION} +NAME=kile-${VERSION} +SOURCE=http://sourceforge.net/projects/kile/files/stable/kile-${VERSION}/ +PACKING=.tar.bz2 +BUILDCHAIN=cmake +CHECKSUM=ignore +if [ ${VERSION} = 2.1.3 ]; then + CHECKSUM=f3129e73eea21890c40781de80b44808 +fi + +MODULEFILE_PATH=${INSTALL_PATH}/conf/modulefiles/kile +CONFIG_FILE=${MODULEFILE_PATH}/${VERSION} + +# ********************************************************************************** +package_specific_conf() { + cd ${BUILDDIR} + export KDEDIRS=${INSTALL_PATH}:${KDEDIRS} + kbuildsycoca4 + + # Generate modulefile + + mkdir -p ${MODULEFILE_PATH} + CONFIG_FILE=${MODULEFILE_PATH}/${NAME} + rm -f $CONFIG_FILE + echo "#%Module 1.0 +# +# ${NAME} +# +conflict kdevelop + +prepend-path PATH ${INSTALL_PATH}/bin +prepend-path KDEDIRS ${INSTALL_PATH} +" >> $CONFIG_FILE + + echo + echo "${NAME} has now been installed in" + echo + cecho ${GOOD} " ${INSTALL_PATH}" + echo + echo "To update your environment variables, use the created modulefile:" + echo + cecho ${GOOD} " $CONFIG_FILE" + echo +} + diff --git a/kile/platforms/supported/centos7.platform b/kile/platforms/supported/centos7.platform new file mode 100644 index 0000000..879f7d3 --- /dev/null +++ b/kile/platforms/supported/centos7.platform @@ -0,0 +1,25 @@ +# CentOS 7 + +# This build script assumes that you have several packages already +# installed via CentOS's yum using the following commands: +# +# su -c 'yum groupinstall -y "Development Tools"' +# +# su -c 'yum install -y cmake gcc-c++ boost boost-devel \ +# kdelibs kdelibs-devel kdebase-workspace-devel \ +# grantlee grantlee-devel qjson qjson-devel \ +# qtwebkit qtwebkit-devel kdesdk-okteta kdesdk-okteta-devel' +# +# Set the compiler +# export CC=/usr/bin/gcc +# export CXX=/usr/bin/g++ +# export FC=/usr/bin/gfortran +# export FF=/usr/bin/gfortran +## + +# +# Define the packages this platform needs +PACKAGES=( +once:kile +) + diff --git a/project-kile.cfg b/project-kile.cfg new file mode 100644 index 0000000..6933f7c --- /dev/null +++ b/project-kile.cfg @@ -0,0 +1,26 @@ +# Global configuration variables go here. You will want to tweak this +# file to suit your needs. If you want to keep local changes that are +# not overwritten by repository updates, those can be written +# to local.cfg instead (entries there will override those in this file). + +# Meta-project to build +PROJECT=kile +KILEVERSION=2.1.3 + +# How many processes would you like to build using? +PROCS=1 + +PREFIX_PATH=~/apps/candi + +# Where do you want the compiled software installed? +INSTALL_PATH=${PREFIX_PATH}/${PROJECT}/${KILEVERSION} + +# Where do you want the downloaded source files to go? +DOWNLOAD_PATH=${PREFIX_PATH}/src + +# Where do you want to unpack source files to go? +UNPACK_PATH=${PREFIX_PATH}/unpack + +# Where do you want the build files to go? +BUILD_PATH=${INSTALL_PATH}-build +