Added PPA repository for igraph

This commit is contained in:
Ossi Salmi 2010-12-02 09:48:37 +02:00 committed by Timo Mkinen
parent ad41895078
commit 06372388d6

View file

@ -3,24 +3,11 @@
class igraph {
case $operatingsystem {
debian,ubuntu: {
apt::package { "libigraph":
ensure => installed,
source => $architecture ? {
i386 => "http://cneurocvs.rmki.kfki.hu/packages/binary/libigraph_0.5.2_i386.deb",
default => undef,
},
}
package { "libxml2-dev":
ensure => installed,
}
apt::package { "libigraph-dev":
ensure => installed,
source => $architecture ? {
i386 => "http://cneurocvs.rmki.kfki.hu/packages/binary/libigraph-dev_0.5.2_i386.deb",
default => undef,
},
require => [ Package["libxml2-dev"], Apt::Package["libigraph"], ],
ubuntu: {
apt::repo { "igraph.ppa.launchpad.net":
source => "http://ppa.launchpad.net/igraph/ppa/ubuntu",
key => "80C21FC1",
keyserver => "hkp://keyserver.ubuntu.com",
}
}
}
@ -33,14 +20,10 @@ class igraph {
class igraph::python inherits igraph {
case $operatingsystem {
debian,ubuntu: {
apt::package { "python-igraph":
ensure => installed,
source => $architecture ? {
i386 => "http://cneurocvs.rmki.kfki.hu/packages/binary/python-igraph_0.5.2_i386.deb",
default => undef,
},
require => Apt::Package["libigraph"],
ubuntu: {
package { "python-igraph":
ensure => installed,
require => Apt::Repo["igraph.ppa.launchpad.net"],
}
}
}