Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 28 lines (26 sloc) 1.286 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
from gub import misc
from gub import target

class Noweb (target.AutoBuild):
    '''A WEB-like literate-programming tool
Noweb is designed to meet the needs of literate programmers while
remaining as simple as possible. Its primary advantages are
simplicity, extensibility, and language-independence.
'''
    source = 'http://www.eecs.harvard.edu/~nr/noweb/dist/noweb-2.11b.tgz'
    subpackage_names = ['']
    install_command = misc.join_lines ('''
mkdir -p %(install_prefix)s/bin %(install_prefix)s/lib %(install_prefix)s/share/man/man1 %(install_prefix)s/share/tex/inputs
&& make %(compile_flags)s DESTDIR=%(install_root)s install
''')
    license_files = ['%(srcdir)s/src/COPYRIGHT']
    def __init__ (self, settings, source):
        target.TarBall.__init__ (self, settings, source)
        self.BIN='%(install_prefix)s/bin'
        self.LIB='%(install_prefix)s/lib'
        self.MAN='%(install_prefix)s/share/man'
        self.TEXINPUTS='%(install_prefix)s/share/tex/inputs'
    def category_dict (self):
        return {'': 'Text Science'}
    make_flags = 'BIN=%(install_prefix)s/bin LIB=%(install_prefix)s/lib MAN=%(install_prefix)s/share/man TEXINPUTS=%(install_prefix)s/share/tex/inputs'
    def configure (self):
        self.shadow_tree ('%(srcdir)s/src', '%(builddir)s')
Something went wrong with that request. Please try again.