summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Borassi <michele.borassi@imtlucca.it>2015-07-20 16:02:03 +0200
committerMichele Borassi <michele.borassi@imtlucca.it>2015-07-28 12:42:54 +0200
commit61f72f3b119ab81ae2013af0829dd0d94cb61c1a (patch)
tree2c457bf782e6bb584af373fad381fbdaa9bf95c0
parentUpdated Sage version to 6.8 (diff)
Included igraph in sage.
-rw-r--r--build/pkgs/igraph/SPKG.txt29
-rw-r--r--build/pkgs/igraph/checksums.ini4
-rw-r--r--build/pkgs/igraph/package-version.txt1
-rw-r--r--build/pkgs/igraph/spkg-check4
-rw-r--r--build/pkgs/igraph/spkg-install21
-rw-r--r--build/pkgs/igraph/type1
-rw-r--r--build/pkgs/python_igraph/SPKG.txt29
-rw-r--r--build/pkgs/python_igraph/checksums.ini4
-rw-r--r--build/pkgs/python_igraph/package-version.txt1
-rw-r--r--build/pkgs/python_igraph/spkg-check4
-rw-r--r--build/pkgs/python_igraph/spkg-install15
-rwxr-xr-xbuild/pkgs/python_igraph/spkg-src27
-rw-r--r--build/pkgs/python_igraph/type1
13 files changed, 141 insertions, 0 deletions
diff --git a/build/pkgs/igraph/SPKG.txt b/build/pkgs/igraph/SPKG.txt
new file mode 100644
index 0000000..8acc47e
--- /dev/null
+++ b/build/pkgs/igraph/SPKG.txt
@@ -0,0 +1,29 @@
+= igraph =
+
+== Description ==
+
+igraph is a library for creating and manipulating graphs.
+It is intended to be as powerful (ie. fast) as possible to enable the
+analysis of large graphs.
+
+== License ==
+
+GPL version 2
+
+== SPKG Maintainers ==
+
+* Michele Borassi
+
+== Upstream Contact ==
+
+http://igraph.org/c/
+
+== Dependencies ==
+
+Put a bulleted list of dependencies here:
+
+* python
+* readline
+* gcc
+
+== Special Update/Build Instructions == \ No newline at end of file
diff --git a/build/pkgs/igraph/checksums.ini b/build/pkgs/igraph/checksums.ini
new file mode 100644
index 0000000..f826586
--- /dev/null
+++ b/build/pkgs/igraph/checksums.ini
@@ -0,0 +1,4 @@
+tarball=igraph-VERSION.tar.gz
+sha1=2cf3528a60c52810a3d5ed9f117692f8f639aac1
+md5=4f6e7c16b45fce8ed423516a9786e4e8
+cksum=2372626349
diff --git a/build/pkgs/igraph/package-version.txt b/build/pkgs/igraph/package-version.txt
new file mode 100644
index 0000000..7deb86f
--- /dev/null
+++ b/build/pkgs/igraph/package-version.txt
@@ -0,0 +1 @@
+0.7.1 \ No newline at end of file
diff --git a/build/pkgs/igraph/spkg-check b/build/pkgs/igraph/spkg-check
new file mode 100644
index 0000000..35f04fc
--- /dev/null
+++ b/build/pkgs/igraph/spkg-check
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+cd src
+$MAKE check
diff --git a/build/pkgs/igraph/spkg-install b/build/pkgs/igraph/spkg-install
new file mode 100644
index 0000000..d86a164
--- /dev/null
+++ b/build/pkgs/igraph/spkg-install
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+cd src
+
+./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib"
+if [ $? -ne 0 ]; then
+ echo >&2 "Error configuring igraph."
+ exit 1
+fi
+
+$MAKE
+if [ $? -ne 0 ]; then
+ echo >&2 "Error building igraph."
+ exit 1
+fi
+
+$MAKE -j1 install
+if [ $? -ne 0 ]; then
+ echo >&2 "Error installing igraph."
+ exit 1
+fi
diff --git a/build/pkgs/igraph/type b/build/pkgs/igraph/type
new file mode 100644
index 0000000..134d9bc
--- /dev/null
+++ b/build/pkgs/igraph/type
@@ -0,0 +1 @@
+optional
diff --git a/build/pkgs/python_igraph/SPKG.txt b/build/pkgs/python_igraph/SPKG.txt
new file mode 100644
index 0000000..52eef18
--- /dev/null
+++ b/build/pkgs/python_igraph/SPKG.txt
@@ -0,0 +1,29 @@
+= python-igraph =
+
+== Description ==
+
+igraph is a library for creating and manipulating graphs.
+It is intended to be as powerful (ie. fast) as possible to enable the
+analysis of large graphs.
+
+== License ==
+
+GPL version 2
+
+== SPKG Maintainers ==
+
+* Michele Borassi
+
+== Upstream Contact ==
+
+http://igraph.org/python/
+
+== Dependencies ==
+
+Put a bulleted list of dependencies here:
+
+* python
+* readline
+* igraph
+
+== Special Update/Build Instructions == \ No newline at end of file
diff --git a/build/pkgs/python_igraph/checksums.ini b/build/pkgs/python_igraph/checksums.ini
new file mode 100644
index 0000000..3aeeb21
--- /dev/null
+++ b/build/pkgs/python_igraph/checksums.ini
@@ -0,0 +1,4 @@
+tarball=python_igraph-VERSION.tar.gz
+sha1=faf9bdb2083a893b34e3f70ae332ed361da3d1b9
+md5=1bfb3317b9fc23e8c5c10bdeb37a4c93
+cksum=146006935
diff --git a/build/pkgs/python_igraph/package-version.txt b/build/pkgs/python_igraph/package-version.txt
new file mode 100644
index 0000000..bcaffe1
--- /dev/null
+++ b/build/pkgs/python_igraph/package-version.txt
@@ -0,0 +1 @@
+0.7.0 \ No newline at end of file
diff --git a/build/pkgs/python_igraph/spkg-check b/build/pkgs/python_igraph/spkg-check
new file mode 100644
index 0000000..4172cc7
--- /dev/null
+++ b/build/pkgs/python_igraph/spkg-check
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+cd src
+python setup.py check
diff --git a/build/pkgs/python_igraph/spkg-install b/build/pkgs/python_igraph/spkg-install
new file mode 100644
index 0000000..684a838
--- /dev/null
+++ b/build/pkgs/python_igraph/spkg-install
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+cd src
+
+python setup.py build
+if [ $? -ne 0 ]; then
+ echo >&2 "Error building python_igraph."
+ exit 1
+fi
+
+python setup.py install
+if [ $? -ne 0 ]; then
+ echo >&2 "Error installing python_igraph."
+ exit 1
+fi
diff --git a/build/pkgs/python_igraph/spkg-src b/build/pkgs/python_igraph/spkg-src
new file mode 100755
index 0000000..44c3d51
--- /dev/null
+++ b/build/pkgs/python_igraph/spkg-src
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+
+# This script must be run from folder SAGE_ROOT. It modifies the file
+# python-igraph-0.7.0.tar.gz into python_igraph-0.7.0.tar.gz, and it modifies
+# the name of the top folder accordingly.
+
+if [ -e upstream/python_igraph-0.7.0.tar.gz ]
+then
+ echo "The modified .tar file already exists."
+ exit
+fi
+
+if [ -e upstream/python-igraph-0.7.0.tar.gz ]
+then
+ tar -zxf upstream/python-igraph-0.7.0.tar.gz -C local/var/tmp/sage/build/
+ cd local/var/tmp/sage/build
+ mv python-igraph-0.7.0 python_igraph-0.7.0
+ tar -zcf python_igraph-0.7.0.tar.gz python_igraph-0.7.0
+ rm -rf python_igraph-0.7.0
+ cd ../../../../..
+ mv local/var/tmp/sage/build/python_igraph-0.7.0.tar.gz upstream/python_igraph-0.7.0.tar.gz
+ rm upstream/python-igraph-0.7.0.tar.gz
+ ./sage -sh sage-fix-pkg-checksums
+ echo "Correctly modified .tar file."
+else
+ echo "File python-igraph-0.7.0.tar.gz not found in folder upstream."
+fi \ No newline at end of file
diff --git a/build/pkgs/python_igraph/type b/build/pkgs/python_igraph/type
new file mode 100644
index 0000000..134d9bc
--- /dev/null
+++ b/build/pkgs/python_igraph/type
@@ -0,0 +1 @@
+optional