<commit_before>{stdenv, fetchurl, qt4}:

stdenv.mkDerivation {
  name = "qtscriptgenerator-0.1.0";
  src = fetchurl {
    url = http://qtscriptgenerator.googlecode.com/files/qtscriptgenerator-src-0.1.0.tar.gz;
    sha256 = "0h8zjh38n2wfz7jld0jz6a09y66dbsd2jhm4f2024qfgcmxcabj6";
  };
  buildInputs = [ qt4 ];

  patches = [./qtscriptgenerator.gcc-4.4.patch];
  
  # Why isn't the author providing proper Makefile or a CMakeLists.txt ?
  buildPhase = ''
    # remove phonon stuff which causes errors (thanks to Gentoo bug reports)
    sed -i "/typesystem_phonon.xml/d" generator/generator.qrc
    sed -i "/qtscript_phonon/d" qtbindings/qtbindings.pro	    
  
    cd generator
    qmake
    make
    # Set QTDIR, see http://code.google.com/p/qtscriptgenerator/issues/detail?id=38
    QTDIR=${qt4} ./generator
    cd ../qtbindings
    qmake
    make
  '';
  
  installPhase = ''
    cd ..
    ensureDir $out/lib/qt4/plugins/script
    cp -av plugins/script/* $out/lib/qt4/plugins/script
  '';
}<commit_msg>Add meta to qtscriptgenerator<commit_after>{stdenv, fetchurl, qt4}:

stdenv.mkDerivation {
  name = "qtscriptgenerator-0.1.0";
  src = fetchurl {
    url = http://qtscriptgenerator.googlecode.com/files/qtscriptgenerator-src-0.1.0.tar.gz;
    sha256 = "0h8zjh38n2wfz7jld0jz6a09y66dbsd2jhm4f2024qfgcmxcabj6";
  };
  buildInputs = [ qt4 ];

  patches = [./qtscriptgenerator.gcc-4.4.patch];
  
  # Why isn't the author providing proper Makefile or a CMakeLists.txt ?
  buildPhase = ''
    # remove phonon stuff which causes errors (thanks to Gentoo bug reports)
    sed -i "/typesystem_phonon.xml/d" generator/generator.qrc
    sed -i "/qtscript_phonon/d" qtbindings/qtbindings.pro	    
  
    cd generator
    qmake
    make
    # Set QTDIR, see http://code.google.com/p/qtscriptgenerator/issues/detail?id=38
    QTDIR=${qt4} ./generator
    cd ../qtbindings
    qmake
    make
  '';
  
  installPhase = ''
    cd ..
    ensureDir $out/lib/qt4/plugins/script
    cp -av plugins/script/* $out/lib/qt4/plugins/script
  '';

  meta = {
    description = "QtScript bindings generator";
    homepage = http://code.google.com/p/qtscriptgenerator/;
    inherit (qt4.meta) platforms;
    maintainers = [ stdenv.lib.maintainers.urkud ];
  };
}
{'fraction_non_alphanumeric': 0.12667860340196957, 'fraction_numerical': 0.03357206803939123, 'mean_word_length': 3.0197841726618706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7656792', 'n_tokens_mistral': 872, 'n_tokens_neox': 831, 'n_words': 151}