From: Timo Heister Date: Fri, 8 Sep 2017 12:56:19 +0000 (-0400) Subject: add astyle X-Git-Tag: v8.5.1~16^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F50%2Fhead;p=candi.git add astyle Not strictly speaking a dependency of deal.II but I am getting tired of installing it manually. --- 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 +}