diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-01-18 12:34:09 -0600 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-01-18 10:34:09 -0800 |
commit | 02f92fc7f8a69618fcf91282222b8316ace9c4ae (patch) | |
tree | b432d1f909dad49a464aba677ef7fca682ea9c04 /lib | |
parent | 5812081b80301089a30e2087a32ddfcaa7c6b4e4 (diff) | |
download | spack-02f92fc7f8a69618fcf91282222b8316ace9c4ae.tar.gz spack-02f92fc7f8a69618fcf91282222b8316ace9c4ae.tar.bz2 spack-02f92fc7f8a69618fcf91282222b8316ace9c4ae.tar.xz spack-02f92fc7f8a69618fcf91282222b8316ace9c4ae.zip |
Massive conversion from Package to AutotoolsPackage (#2845)
* Massive conversion from Package to AutotoolsPackage
* Forgot to convert p4est to AutotoolsPackage
* Fix typo
* Fix broken link in docs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/docs/packaging_guide.rst | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst index 8a39ee28e2..b09c677e0b 100644 --- a/lib/spack/docs/packaging_guide.rst +++ b/lib/spack/docs/packaging_guide.rst @@ -1490,7 +1490,7 @@ Additional hybrid dependency types are (note the lack of quotes): * **<not specified>**: ``type`` assumed to be ``("build", "link")``. This is the common case for compiled language usage. - + """"""""""""""""""" Dependency Formulas """"""""""""""""""" @@ -2007,10 +2007,15 @@ The last element of a package is its ``install()`` method. This is where the real work of installation happens, and it's the main part of the package you'll need to customize for each piece of software. -.. literalinclude:: ../../../var/spack/repos/builtin/packages/mpfr/package.py - :pyobject: Mpfr.install +.. code-block:: python :linenos: + def install(self, spec prefix): + configure('--prefix={0}'.format(prefix)) + + make() + make('install') + ``install`` takes a ``spec``: a description of how the package should be built, and a ``prefix``: the path to the directory where the software should be installed. |