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
This commit is contained in:
wenlibin02 2019-10-28 11:31:10 +08:00 committed by Adam J. Stewart
parent c11c3f2710
commit ba69ebc5f7

View file

@ -20,3 +20,8 @@ class PerlDbfile(PerlPackage):
version('1.840', sha256='b7864707fad0f2d1488c748c4fa08f1fb8bcfd3da247c36909fd42f20bfab2c4') version('1.840', sha256='b7864707fad0f2d1488c748c4fa08f1fb8bcfd3da247c36909fd42f20bfab2c4')
depends_on('perl-extutils-makemaker', type='build') 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')