@@ -0,0 +1,2626 @@
+##############################################################################%0A# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.%0A# Produced at the Lawrence Livermore National Laboratory.%0A#%0A# This file is part of Spack.%0A# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.%0A# LLNL-CODE-647188%0A#%0A# For details, see https://github.com/llnl/spack%0A# Please also see the LICENSE file for our notice and the LGPL.%0A#%0A# This program is free software; you can redistribute it and/or modify%0A# it under the terms of the GNU Lesser General Public License (as%0A# published by the Free Software Foundation) version 2.1, February 1999.%0A#%0A# This program is distributed in the hope that it will be useful, but%0A# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and%0A# conditions of the GNU Lesser General Public License for more details.%0A#%0A# You should have received a copy of the GNU Lesser General Public%0A# License along with this program; if not, write to the Free Software%0A# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA%0A##############################################################################%0Afrom spack import *%0Aimport subprocess%0A%0A%0Aclass Pvm(MakefilePackage):%0A    %22%22%22PVM (Parallel Virtual Machine) is a software package that permits a%0A    heterogeneous collection of Unix and/or Windows computers hooked together%0A    by a network to be used as a single large parallel computer.%22%22%22%0A%0A    homepage = %22http://www.csm.ornl.gov/pvm/pvm_home.html%22%0A    url      = %22http://www.netlib.org/pvm3/pvm3.4.6.tgz%22%0A%0A    version('3.4.6', '7b5f0c80ea50b6b4b10b6128e197747b')%0A%0A    parallel = False%0A%0A    @property%0A    def pvm_arch(self):%0A        %22%22%22Returns the appropriate PVM_ARCH.%22%22%22%0A        process = subprocess.Popen(%5B'lib/pvmgetarch'%5D, stdout=subprocess.PIPE)%0A        return process.communicate()%5B0%5D.strip()%0A%0A    def edit(self, spec, prefix):%0A        # Before building PVM, you must set the environment%0A        # variable %22PVM_ROOT%22 to the path where PVM resides%0A        env%5B'PVM_ROOT'%5D = self.stage.source_path%0A%0A    def install(self, spec, prefix):%0A        pvm_arch = self.pvm_arch%0A%0A        install_tree(join_path('bin', pvm_arch), prefix.bin)%0A        install_tree('include', prefix.include)%0A        install_tree(join_path('lib', pvm_arch), prefix.lib)%0A        install_tree('man', prefix.man)%0A%0A    def setup_environment(self, spack_env, run_env):%0A        # Before running PVM, you must set the environment%0A        # variable %22PVM_ROOT%22 to the path where PVM resides%0A        run_env.set('PVM_ROOT', self.prefix)%0A

Add new package for PVM (#4028)