diff options
author | wenlibin02 <wenlibin02@gmail.com> | 2019-10-28 11:31:10 +0800 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-10-27 22:31:10 -0500 |
commit | ba69ebc5f7831562f0fb83fac6ea68e023bb907f (patch) | |
tree | adeb4a8c89aa835ef87d2a90fab9a054c83bf05a /var | |
parent | c11c3f27103ba4734bd50116fc6b611a932c2f91 (diff) | |
download | spack-ba69ebc5f7831562f0fb83fac6ea68e023bb907f.tar.gz spack-ba69ebc5f7831562f0fb83fac6ea68e023bb907f.tar.bz2 spack-ba69ebc5f7831562f0fb83fac6ea68e023bb907f.tar.xz spack-ba69ebc5f7831562f0fb83fac6ea68e023bb907f.zip |
Add dependency and patch for perl-dbfile (#13261)
* Add dependency and patch perl-dbfile
There are two problems for the building of `perl-dbfile`:
1) this package depends on the package `berkeley-db`
2) fix the building using a patch, which locates the position of `berkeley-db` and modify the configuration file for the building
* Update and reformat the script package.py
* Simplify the patch
* Update package.py
* Update package.py
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl-dbfile/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-dbfile/package.py b/var/spack/repos/builtin/packages/perl-dbfile/package.py index c56d98f842..19cc9410c1 100644 --- a/var/spack/repos/builtin/packages/perl-dbfile/package.py +++ b/var/spack/repos/builtin/packages/perl-dbfile/package.py @@ -20,3 +20,8 @@ class PerlDbfile(PerlPackage): version('1.840', sha256='b7864707fad0f2d1488c748c4fa08f1fb8bcfd3da247c36909fd42f20bfab2c4') depends_on('perl-extutils-makemaker', type='build') + depends_on('berkeley-db', type='build') + + def patch(self): + filter_file('/usr/local/BerkeleyDB', + self.spec['berkeley-db'].prefix, 'config.in') |