packages/umoci (#12346)

* bump eospac version

* Revert "bump eospac version"

This reverts commit 835b1f822d8c083f6ab9eb17222c00409e8eb3da.

* new package: umoci

* Package -> MakefilePackage

* add missing build phase

* relax expand=False requirement
This commit is contained in:
Daryl W. Grunau 2019-08-13 18:37:34 -06:00 committed by Adam J. Stewart
parent fcf6bb8f45
commit 2c68b7f006

View file

@ -0,0 +1,39 @@
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Umoci(MakefilePackage):
"""umoci modifies Open Container images, intending to be a
complete manipulation tool for OCI images."""
homepage = "https://umo.ci/"
url = "https://github.com/openSUSE/umoci/archive/v0.4.4.tar.gz"
version('0.4.4', sha256='bc5c53812e0076d026aa275b197b878857cf7ba7a4f048fd13433de6107b9aed')
version('0.4.3', sha256='b7d537fec84d4327b1bbfe27118f69df5591143a74a7a1b66cc9904d85c30226')
version('0.4.2', sha256='fbc397dd39bda2570155dc3b1be0835809a36fccc342e2545b3edb9f0f9dc6f5')
version('0.4.1', sha256='0d83e01167383f529d726e9fd455660d4837371d5f0d82fad405f3ae6ae52486')
version('0.4.0', sha256='66997e270dee8abc9796385b162a1e8e32dd2ee2359e5200af4e6671cc1e76a0')
depends_on('go')
def build(self, spec, prefix):
provider = 'github.com'
project = 'openSUSE'
repo = 'umoci'
mkdirp(join_path(self.stage.source_path, 'src', provider, project))
ln = which('ln')
ln('-s', self.stage.source_path, join_path(
'src', provider, project, repo))
make('GOPATH={0}'.format(self.stage.source_path))
def install(self, spec, prefix):
make('PREFIX=', 'DESTDIR={0}'.format(prefix), 'install')