parent
6ec603860a
commit
729c3f9168
@ -23,29 +23,31 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
import re
|
|
||||||
|
|
||||||
|
|
||||||
class Bmake(Package):
|
class Bmake(Package):
|
||||||
"""bmake: portable BSD make
|
"""Portable version of NetBSD make(1)."""
|
||||||
|
|
||||||
bmake is the BSD make(1) utility ported to several non-BSD
|
homepage = "http://www.crufty.net/help/sjg/bmake.htm"
|
||||||
systems. It supports GNU's autoconf."""
|
url = "http://www.crufty.net/ftp/pub/sjg/bmake-20180512.tar.gz"
|
||||||
|
|
||||||
homepage = "http://www.crufty.net/FreeWare/"
|
|
||||||
url = "ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg/bmake-20171207.tar.gz"
|
|
||||||
|
|
||||||
|
version('20180512', '48ba5933833a7f224d76ce482eedfec0')
|
||||||
version('20171207', '5d7f2f85f16c4a6ba34ceea68957447f')
|
version('20171207', '5d7f2f85f16c4a6ba34ceea68957447f')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
phases = ['configure', 'build', 'install']
|
||||||
# Do not pre-roff cat pages
|
|
||||||
mk_file = FileFilter('mk/man.mk')
|
|
||||||
mk_file.filter(re.escape(r'MANTARGET?'), 'MANTARGET')
|
|
||||||
|
|
||||||
# -DWITHOUT_PROG_LINK does not symlink bmake as
|
def patch(self):
|
||||||
# -"bmake-VERSION"
|
# Do not pre-roff cat pages
|
||||||
|
filter_file('MANTARGET?', 'MANTARGET', 'mk/man.mk', string=True)
|
||||||
|
|
||||||
|
def configure(self, spec, prefix):
|
||||||
sh = which('sh')
|
sh = which('sh')
|
||||||
sh('boot-strap', '--prefix={0}'.format(prefix),
|
sh('boot-strap', 'op=configure')
|
||||||
'-DWITHOUT_PROG_LINK', '--install')
|
|
||||||
mkdirp(prefix.man1)
|
def build(self, spec, prefix):
|
||||||
install('bmake.1', join_path(prefix.man1, 'bmake.1'))
|
sh = which('sh')
|
||||||
|
sh('boot-strap', 'op=build')
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
sh = which('sh')
|
||||||
|
sh('boot-strap', '--prefix={0}'.format(prefix), 'op=install')
|
||||||
|
Loading…
Reference in New Issue
Block a user