]> https://gitweb.dealii.org/ - candi.git/commitdiff
add astyle 50/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 8 Sep 2017 12:56:19 +0000 (08:56 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sat, 9 Sep 2017 22:15:31 +0000 (18:15 -0400)
Not strictly speaking a dependency of deal.II but I am getting tired of
installing it manually.

candi.cfg
deal.II-toolchain/packages/astyle.package [new file with mode: 0644]

index 49d1f0f909355bbe6a1ccc3bd6f0c7b4d80717a6..0a6394734c809b89e244a6ae326ce53b37012652 100644 (file)
--- 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 (file)
index 0000000..09784b9
--- /dev/null
@@ -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
+}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.