meme: fix errors (#6736)

* meme: added perl-xml-parser dependency, resolved issue. still need to fix ghostscript or image-magick, conversion not working.

* meme: fixed issue with libxslt/libxml2 conflict, and added imagemagick support

* meme: removing libxslt/libxml2 dependency lines

* meme: configure args

* meme: separating configure args

* meme: removing a comment, and hoping for travis to rebuild. site seems back up.

* meme: make image-magick optional

* meme: add comment referencing PR

* meme: bah flake8
This commit is contained in:
Levi Baber 2018-03-22 12:06:24 -05:00 committed by Adam J. Stewart
parent 9280eba214
commit c8a8079c34

View File

@ -37,19 +37,20 @@ class Meme(AutotoolsPackage):
version('4.11.4', '371f513f82fa0888205748e333003897') version('4.11.4', '371f513f82fa0888205748e333003897')
variant('mpi', default=True, description='Enable MPI support') variant('mpi', default=True, description='Enable MPI support')
variant('image-magick', default=False, description='Enable image-magick for png output')
depends_on('zlib', type=('link')) depends_on('zlib', type=('link'))
depends_on('libxml2', type=('link'))
depends_on('libxslt', type=('link'))
depends_on('libgcrypt', type=('link')) depends_on('libgcrypt', type=('link'))
depends_on('perl', type=('build', 'run')) depends_on('perl', type=('build', 'run'))
depends_on('python@2.7:', type=('build', 'run')) depends_on('python@2.7:', type=('build', 'run'))
depends_on('mpi', when='+mpi') depends_on('mpi', when='+mpi')
depends_on('image-magick', type=('build', 'run'), when='+image-magick')
depends_on('perl-xml-parser', type=('build', 'run'))
# disable mpi support
def configure_args(self): def configure_args(self):
spec = self.spec spec = self.spec
args = [] # have meme build its own versions of libxml2/libxslt, see #6736
args = ['--enable-build-libxml2', '--enable-build-libxslt']
if '~mpi' in spec: if '~mpi' in spec:
args += ['--enable-serial'] args += ['--enable-serial']
return args return args