From f42578f8efb7377ddbf4df20c16f2e3be68c6ec9 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 8 Sep 2017 08:56:19 -0400 Subject: [PATCH] add astyle Not strictly speaking a dependency of deal.II but I am getting tired of installing it manually. --- candi.cfg | 8 ++++-- deal.II-toolchain/packages/astyle.package | 31 +++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 deal.II-toolchain/packages/astyle.package diff --git a/candi.cfg b/candi.cfg index 49d1f0f..0a63947 100644 --- a/candi.cfg +++ b/candi.cfg @@ -30,7 +30,7 @@ DEAL_CONFOPTS="" PACKAGES="load:dealii-prepare" -# These are system dependencies that are often pre-installed +# These are system dependencies that are often pre-installed: #PACKAGES="${PACKAGES} once:zlib" #PACKAGES="${PACKAGES} once:bzip2" #PACKAGES="${PACKAGES} once:git" @@ -38,7 +38,11 @@ PACKAGES="load:dealii-prepare" #PACKAGES="${PACKAGES} once:boost" #PACKAGES="${PACKAGES} once:numdiff" -# These packages determine the active components of deal.II +# These packages are not dependencies but are tools used for deal.II development: +#PACKAGES="${PACKAGES} once:astyle" +#PACKAGES="${PACKAGES} once:numdiff" + +# These packages determine the active components of deal.II: #PACKAGES="${PACKAGES} once:arpack-ng" #PACKAGES="${PACKAGES} once:nanoflann" PACKAGES="${PACKAGES} once:opencascade" diff --git a/deal.II-toolchain/packages/astyle.package b/deal.II-toolchain/packages/astyle.package new file mode 100644 index 0000000..09784b9 --- /dev/null +++ b/deal.II-toolchain/packages/astyle.package @@ -0,0 +1,31 @@ +VERSION=2.04 +NAME=astyle_${VERSION}_linux +SOURCE=https://downloads.sourceforge.net/project/astyle/astyle/astyle%202.04/ +PACKING=.tar.gz +EXTRACTSTO=astyle +CHECKSUM=30b1193a758b0909d06e7ee8dd9627f6 +BUILDCHAIN=custom + +INSTALL_PATH=${INSTALL_PATH}/astyle-${VERSION} + +package_specific_setup () { + cd ${BUILDDIR} + cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* . + cd build/gcc + mkdir -p ${INSTALL_PATH} + make -j${PROCS} >> make.output || bdie "Error in make" + cp bin/astyle ${INSTALL_PATH}/ +} + +package_specific_register () { + export PATH=${INSTALL_PATH}:$PATH +} + +package_specific_conf () { + # Generate configuration file + CONFIG_FILE=${CONFIGURATION_PATH}/${NAME} + rm -f $CONFIG_FILE + echo " +export PATH=${INSTALL_PATH}:\${PATH} +" >> $CONFIG_FILE +} -- 2.39.5