<commit_before>require 'formula'

class CurlXZDownloadStrategy < CurlDownloadStrategy
  def stage
    # As far as I can tell, the LZMA format does not have any magic header bits that we could use to
    # identify LZMA archives in the CurlDownloadStrategy, so use this awesome hack
    safe_system "lzma -k --force --stdout --decompress #{@dl} | /usr/bin/tar x"
   
    # You could also do this, but it leaves the tar file lying around...
    #safe_system '/usr/local/bin/lzma', '-k', '--force', '--decompress', @dl
    #safe_system '/usr/bin/tar', 'xf', @dl.to_s.gsub( ".lzma", "" )
    chdir
  end
end

class Texmf <Formula
  url 'http://students.dec.bournemouth.ac.uk/ebarrett/texlive/distfiles/texlive-20080822-texmf.tar.lzma'
  md5 'fa74072e1344e8390eb156bcda61a8b2'

  def download_strategy
    CurlXZDownloadStrategy
  end
end

class TexLive <Formula
  url 'http://students.dec.bournemouth.ac.uk/ebarrett/texlive/distfiles/texlive-20080816-source.tar.lzma'
  #Alternatively (slower):
  #url 'ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/texlive-20080816-source.tar.lzma'
  homepage 'http://www.tug.org/texlive/'
  md5 '554287c3e458da776edd684506048d45'
  @version='2008'

  depends_on 'lzma'
  depends_on 'icu4c'
  depends_on 'gd'<commit_msg>Use the full date version for Tex Live<commit_after>require 'formula'

class CurlXZDownloadStrategy < CurlDownloadStrategy
  def stage
    # As far as I can tell, the LZMA format does not have any magic header bits that we could use to
    # identify LZMA archives in the CurlDownloadStrategy, so use this awesome hack
    safe_system "lzma -k --force --stdout --decompress #{@dl} | /usr/bin/tar x"
   
    # You could also do this, but it leaves the tar file lying around...
    #safe_system '/usr/local/bin/lzma', '-k', '--force', '--decompress', @dl
    #safe_system '/usr/bin/tar', 'xf', @dl.to_s.gsub( ".lzma", "" )
    chdir
  end
end

class Texmf <Formula
  url 'http://students.dec.bournemouth.ac.uk/ebarrett/texlive/distfiles/texlive-20080822-texmf.tar.lzma'
  md5 'fa74072e1344e8390eb156bcda61a8b2'

  def download_strategy
    CurlXZDownloadStrategy
  end
end

class TexLive <Formula
  url 'http://students.dec.bournemouth.ac.uk/ebarrett/texlive/distfiles/texlive-20080816-source.tar.lzma'
  #Alternatively (slower):
  #url 'ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/texlive-20080816-source.tar.lzma'
  homepage 'http://www.tug.org/texlive/'
  md5 '554287c3e458da776edd684506048d45'
  version '20080816'

  depends_on 'lzma'
  depends_on 'icu4c'
  depends_on 'gd'
{'fraction_non_alphanumeric': 0.12202852614896989, 'fraction_numerical': 0.061014263074484945, 'mean_word_length': 3.8095238095238093, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2331167', 'n_tokens_mistral': 1055, 'n_tokens_neox': 954, 'n_words': 221}