summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly Thompson <KineticTheory@users.noreply.github.com>2016-04-16 23:15:48 -0600
committerTodd Gamblin <tgamblin@llnl.gov>2016-04-17 07:15:47 +0200
commitdd84a575807636159d80809f59962cf799b83fd7 (patch)
treee91830ea9da29ecf10bfcf5299028c865ad8fcde
parent63bade7a0c7350681dd29ce877f2a9fad679d67d (diff)
downloadspack-dd84a575807636159d80809f59962cf799b83fd7.tar.gz
spack-dd84a575807636159d80809f59962cf799b83fd7.tar.bz2
spack-dd84a575807636159d80809f59962cf799b83fd7.tar.xz
spack-dd84a575807636159d80809f59962cf799b83fd7.zip
+ On some systems, Dia also requires intltool. (#768)
-rw-r--r--var/spack/repos/builtin/packages/dia/package.py1
-rw-r--r--var/spack/repos/builtin/packages/intltool/package.py19
2 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dia/package.py b/var/spack/repos/builtin/packages/dia/package.py
index 1cb5910e46..25d5f08205 100644
--- a/var/spack/repos/builtin/packages/dia/package.py
+++ b/var/spack/repos/builtin/packages/dia/package.py
@@ -7,6 +7,7 @@ class Dia(Package):
version('0.97.3', '0e744a0f6a6c4cb6a089e4d955392c3c')
+ depends_on('intltool')
depends_on('gtkplus@2.6.0:')
depends_on('cairo')
#depends_on('libart') # optional dependency, not yet supported by spack.
diff --git a/var/spack/repos/builtin/packages/intltool/package.py b/var/spack/repos/builtin/packages/intltool/package.py
new file mode 100644
index 0000000000..9b3c095378
--- /dev/null
+++ b/var/spack/repos/builtin/packages/intltool/package.py
@@ -0,0 +1,19 @@
+from spack import *
+
+class Intltool(Package):
+ """intltool is a set of tools to centralize translation of many different file formats using GNU gettext-compatible PO files."""
+ homepage = 'https://freedesktop.org/wiki/Software/intltool/'
+
+ version('0.51.0', '12e517cac2b57a0121cda351570f1e63')
+
+ def url_for_version(self, version):
+ """Handle version-based custom URLs."""
+ return 'https://launchpad.net/intltool/trunk/%s/+download/intltool-%s.tar.gz' % (version, version)
+
+ def install(self, spec, prefix):
+
+ # configure, build, install:
+ options = ['--prefix=%s' % prefix ]
+ configure(*options)
+ make()
+ make('install')