summaryrefslogtreecommitdiff
path: root/lib/spack/docs/tutorial/examples/Makefile/3.package.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/docs/tutorial/examples/Makefile/3.package.py')
-rw-r--r--lib/spack/docs/tutorial/examples/Makefile/3.package.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/spack/docs/tutorial/examples/Makefile/3.package.py b/lib/spack/docs/tutorial/examples/Makefile/3.package.py
deleted file mode 100644
index 6a1942e627..0000000000
--- a/lib/spack/docs/tutorial/examples/Makefile/3.package.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# 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 Bowtie(MakefilePackage):
- """Bowtie is an ultrafast, memory efficient short read aligner
- for short DNA sequences (reads) from next-gen sequencers."""
-
- homepage = "https://sourceforge.net/projects/bowtie-bio/"
- url = "https://downloads.sourceforge.net/project/bowtie-bio/bowtie/1.2.1.1/bowtie-1.2.1.1-src.zip"
-
- version('1.2.1.1', 'ec06265730c5f587cd58bcfef6697ddf')
-
- variant("tbb", default=False, description="Use Intel thread building block")
-
- depends_on("tbb", when="+tbb")
-
- def edit(self, spec, prefix):
- makefile = FileFilter("Makefile")
- makefile.filter('CC= .*', 'CC = ' + env['CC'])
- makefile.filter('CXX = .*', 'CXX = ' + env['CXX'])
-
- @property
- def build_targets(self):
- if "+tbb" in spec:
- return []
- else:
- return ["NO_TBB=1"]
-
- @property
- def install_targets(self):
- return ['prefix={0}'.format(self.prefix), 'install']