summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-04-08 21:30:17 +0200
committerHarmen Stoppels <harmenstoppels@gmail.com>2022-04-11 11:42:45 +0200
commit6bdd9db594444077996a8820782d5b3df1301864 (patch)
tree1baa5b25374ac6de4098a6e818b4a7a8d50edcd1 /var
parent92531ca773fff3667fa7393ebefbe66a489a6d82 (diff)
downloadspack-6bdd9db594444077996a8820782d5b3df1301864.tar.gz
spack-6bdd9db594444077996a8820782d5b3df1301864.tar.bz2
spack-6bdd9db594444077996a8820782d5b3df1301864.tar.xz
spack-6bdd9db594444077996a8820782d5b3df1301864.zip
libplist: remove custom phases, make it an Autotools package
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libplist/package.py45
1 files changed, 23 insertions, 22 deletions
diff --git a/var/spack/repos/builtin/packages/libplist/package.py b/var/spack/repos/builtin/packages/libplist/package.py
index cb9e6d4ff2..50a9d68495 100644
--- a/var/spack/repos/builtin/packages/libplist/package.py
+++ b/var/spack/repos/builtin/packages/libplist/package.py
@@ -6,39 +6,40 @@
from spack import *
-class Libplist(Package):
+class Libplist(AutotoolsPackage):
"""Library for Apple Binary- and XML-Property Lists."""
homepage = "https://www.libimobiledevice.org/"
- url = "https://www.libimobiledevice.org/downloads/libplist-2.0.0.tar.bz2"
- git = "https://git.libimobiledevice.org/libplist.git"
-
- version('master', branch='master')
- version('2.0.0', sha256='3a7e9694c2d9a85174ba1fa92417cfabaea7f6d19631e544948dc7e17e82f602')
- version('1.10', sha256='f44c52a0f8065d41d44772a7484f93bc5e7da21a8f4a9ad3f38a36b827eeff0b')
- version('1.9', sha256='53c4d49db3b3ac9e5a17a2abc3000c529cf2b7d0229c4a25d7c2d465bc3ce3fc')
- version('1.8', sha256='a418da3880308199b74766deef2a760a9b169b81a868a6a9032f7614e20500ec')
- version('1.7', sha256='92ad4d7e71ee13bd8ad17c99c193d26b22a18c226f0068c3ee63085a9f8c4451')
- version('1.6', sha256='2e548ef3239e7bbbbf4771b19a6eedbf78f91e5e6c96d5df83c52838e16cffd6')
- version('1.5', sha256='2380a93e8ae0c591f921798ab333a66fda35f85001bd31941aaa58f7aef1e0d9')
- version('1.4', sha256='2ad226abe1131a72e7ecbb2b921ad92f54b8e787c2281c89b00145b519479a71')
- version('1.3', sha256='982c8aac59cdc3fafc925a407a29b6cf367c5ec9bad6ad509fe5ea25d3e5b6b0')
+
+ url = "https://github.com/libimobiledevice/libplist/releases/download/2.2.0/libplist-2.2.0.tar.bz2"
+ git = "https://git.libimobiledevice.org/libplist.git"
+
+ version('master', branch='master')
+ version('2.2.0', sha256='4a5517e5377ec421df84c586ba85bb4e1d26f11ad203d7d450a907c0156fbd9a')
+ version('2.0.0', sha256='3a7e9694c2d9a85174ba1fa92417cfabaea7f6d19631e544948dc7e17e82f602')
+ version('1.10', sha256='f44c52a0f8065d41d44772a7484f93bc5e7da21a8f4a9ad3f38a36b827eeff0b')
+ version('1.9', sha256='53c4d49db3b3ac9e5a17a2abc3000c529cf2b7d0229c4a25d7c2d465bc3ce3fc')
+ version('1.8', sha256='a418da3880308199b74766deef2a760a9b169b81a868a6a9032f7614e20500ec')
+ version('1.7', sha256='92ad4d7e71ee13bd8ad17c99c193d26b22a18c226f0068c3ee63085a9f8c4451')
+ version('1.6', sha256='2e548ef3239e7bbbbf4771b19a6eedbf78f91e5e6c96d5df83c52838e16cffd6')
+ version('1.5', sha256='2380a93e8ae0c591f921798ab333a66fda35f85001bd31941aaa58f7aef1e0d9')
+ version('1.4', sha256='2ad226abe1131a72e7ecbb2b921ad92f54b8e787c2281c89b00145b519479a71')
+ version('1.3', sha256='982c8aac59cdc3fafc925a407a29b6cf367c5ec9bad6ad509fe5ea25d3e5b6b0')
depends_on('autoconf', type='build', when='@master')
depends_on('automake', type='build', when='@master')
depends_on('libtool', type='build', when='@master')
depends_on('pkgconfig', type='build')
- phases = ['autogen', 'install']
+ install_targets = ['install', 'PYTHON_LDFLAGS=-undefined dynamic_lookup']
- def autogen(self, spec, prefix):
+ def autoreconf(self, spec, prefix):
if self.spec.satisfies('@master'):
autogen = Executable('./autogen.sh')
autogen()
- def install(self, spec, prefix):
- configure('--disable-dependency-tracking',
- '--disable-silent-rules',
- '--prefix=%s' % self.spec.prefix,
- '--without-cython')
- make('install', 'PYTHON_LDFLAGS=-undefined dynamic_lookup')
+ def configure_args(self):
+ return ['--disable-dependency-tracking',
+ '--disable-silent-rules',
+ '--prefix=%s' % self.spec.prefix,
+ '--without-cython']