]> https://gitweb.dealii.org/ - candi.git/commitdiff
Add git package 42/head
authorRene Gassmoeller <rene.gassmoeller@mailbox.org>
Fri, 21 Jul 2017 22:39:21 +0000 (16:39 -0600)
committerRene Gassmoeller <rene.gassmoeller@mailbox.org>
Fri, 21 Jul 2017 22:39:21 +0000 (16:39 -0600)
README.md
candi.cfg
deal.II-toolchain/packages/git.package [new file with mode: 0644]

index d00f3ed20cc71ec34b03f8cabba30b3450e8843d..ecd917290b4a26fdc928d041fbf831f7382a9ed9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -49,6 +49,20 @@ Note that you probably also want to change the prefix path, or
 the path to ``BLAS`` and ``LAPACK`` in the configuration file
 (see documentation below).
 
+#### Install deal.II on a system without pre-installed git:
+
+```bash
+ wget https://github.com/dealii/candi/archive/master.tar.gz
+ tar -xzf master.tar.gz
+ cd candi-master
+ ./candi.sh
+```
+
+Note that in this case you will need to activate the installation of git by
+uncommenting the line `#PACKAGES="${PACKAGES} once:git"` in
+[candi.cfg](candi.cfg).
+
+
 Advanced Configuration
 ----
 
index 54ab9bbd1ef9b908c71791c34791e1460d013444..59ff1b0b3d728a3f73d17e54ed59aef265a3588d 100644 (file)
--- a/candi.cfg
+++ b/candi.cfg
@@ -29,6 +29,16 @@ MIRROR="https://www.ces.clemson.edu/dealii/mirror/"
 DEAL_CONFOPTS=""
 
 PACKAGES="load:dealii-prepare"
+
+# These are system dependencies that are often pre-installed
+#PACKAGES="${PACKAGES} once:zlib"
+#PACKAGES="${PACKAGES} once:bzip2"
+#PACKAGES="${PACKAGES} once:git"
+#PACKAGES="${PACKAGES} once:cmake"
+#PACKAGES="${PACKAGES} once:boost"
+#PACKAGES="${PACKAGES} once:numdiff"
+
+# These packages determine the active components of deal.II
 #PACKAGES="${PACKAGES} once:arpack-ng"
 PACKAGES="${PACKAGES} once:opencascade"
 PACKAGES="${PACKAGES} once:parmetis"
diff --git a/deal.II-toolchain/packages/git.package b/deal.II-toolchain/packages/git.package
new file mode 100644 (file)
index 0000000..93a5f2c
--- /dev/null
@@ -0,0 +1,31 @@
+VERSION=2.9.4
+NAME=git-${VERSION}
+SOURCE=https://www.kernel.org/pub/software/scm/git/
+PACKING=.tar.gz
+CHECKSUM=60b7fd85c91ddb783ebd3e948efc5b13
+
+BUILDCHAIN=custom
+
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
+package_specific_build () {
+    cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
+    ./configure --prefix=${INSTALL_PATH}
+    quit_if_fail "git configure failed"
+
+    make install
+    quit_if_fail "git make install failed"
+}
+
+package_specific_register () {
+    export PATH=${INSTALL_PATH}/bin:$PATH
+}
+
+package_specific_conf () {
+    # Generate configuration file
+    CONFIG_FILE=${CONFIGURATION_PATH}/${NAME}
+    rm -f $CONFIG_FILE
+    echo "
+export PATH=${INSTALL_PATH}/bin:$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.