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:
parent
c11c3f2710
commit
ba69ebc5f7
1 changed files with 5 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue