Smarter extlib installs
|Reported by:||Christopher Allan Webber||Owned by:|
I've been trying to model out what the data needs of such a file would look like, and this looks maybe about right-ish:
EXTLIBS = [ Extlib( "lato", verify=check_md5("ab516ef108"), install=fetch_and_unpack( "http://example.org/lato-1.7.tar.gz", move_from="lato-1.7"), # complete and corresponding source c_and_cs=fetch_and_unpack("http://example.org/lato-source.git") ), Extlib( "pdf.js", verify=check_md5("adc95ed383ec00cf4342bf4dd343e9bb"), install=fetch_and_unpack( "http://example.org/pdf.js-8.7.tar.gz", move_from="pdfjs-8.7"), # complete and corresponding source c_and_cs=print_instructions("git clone git://gitpit.example/pdfjs/") ) ]
A script would still have to be written and carried alongside it. It might be nice to give it a more lax license than the rest of our code but I am somewhat loose about that.