From f9a72ae95b4597d74487ed2928487534e0f48326 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20K=C3=B6cher?= Date: Wed, 8 Oct 2014 09:09:30 +0200 Subject: [PATCH] New Project: kdevelop for CentOS 7 (clone to RHEL 7 seems easy) Changes to be committed: new file: kdevelop/packages/kdevelop.package new file: kdevelop/packages/kdevplatform.package new file: kdevelop/platforms/supported/centos7.platform new file: project-kdevelop.cfg --- kdevelop/packages/kdevelop.package | 45 +++++++++++++++++++ kdevelop/packages/kdevplatform.package | 10 +++++ kdevelop/platforms/supported/centos7.platform | 26 +++++++++++ project-kdevelop.cfg | 27 +++++++++++ 4 files changed, 108 insertions(+) create mode 100644 kdevelop/packages/kdevelop.package create mode 100644 kdevelop/packages/kdevplatform.package create mode 100644 kdevelop/platforms/supported/centos7.platform create mode 100644 project-kdevelop.cfg diff --git a/kdevelop/packages/kdevelop.package b/kdevelop/packages/kdevelop.package new file mode 100644 index 0000000..135a08b --- /dev/null +++ b/kdevelop/packages/kdevelop.package @@ -0,0 +1,45 @@ +VERSION=${KDEVELOPVERSION} +NAME=kdevelop-${VERSION} +SOURCE=http://download.kde.org/stable/kdevelop/4.7.0/src/ +PACKING=.tar.xz +BUILDCHAIN=cmake +CHECKSUM=ignore +if [ ${VERSION} = 4.7.0 ]; then + CHECKSUM=0912f881cb1219450aeb155494846bbd +fi + +MODULEFILE_PATH=${INSTALL_PATH}/conf/modulefiles/kdevelop +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/kdevelop/packages/kdevplatform.package b/kdevelop/packages/kdevplatform.package new file mode 100644 index 0000000..359e2ae --- /dev/null +++ b/kdevelop/packages/kdevplatform.package @@ -0,0 +1,10 @@ +VERSION=${KDEVPLATFORMVERSION} +NAME=kdevplatform-${VERSION} +SOURCE=http://download.kde.org/stable/kdevelop/4.7.0/src/ +PACKING=.tar.xz +BUILDCHAIN=cmake +CHECKSUM=ignore +if [ ${VERSION} = 1.7.0 ]; then + CHECKSUM=72375e077f97b44056c76c7f85ce49ad +fi + diff --git a/kdevelop/platforms/supported/centos7.platform b/kdevelop/platforms/supported/centos7.platform new file mode 100644 index 0000000..432d0de --- /dev/null +++ b/kdevelop/platforms/supported/centos7.platform @@ -0,0 +1,26 @@ +# 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:kdevplatform +once:kdevelop +) + diff --git a/project-kdevelop.cfg b/project-kdevelop.cfg new file mode 100644 index 0000000..af00fe2 --- /dev/null +++ b/project-kdevelop.cfg @@ -0,0 +1,27 @@ +# 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=kdevelop +KDEVELOPVERSION=4.7.0 +KDEVPLATFORMVERSION=1.7.0 + +# 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}/${KDEVELOPVERSION} + +# 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=${PREFIX_PATH}/${PROJECT}/${KDEVELOPVERSION}-build + -- 2.39.5