2016-09-26 10:46:37 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, pythonPackages, gettext, texinfo
|
2016-10-14 01:03:12 +03:00
|
|
|
, ghostscript, librsvg, gdk_pixbuf, txt2man, timidity, mpg123
|
2016-01-26 02:53:13 +03:00
|
|
|
, alsaUtils, vorbis-tools, csound, lilypond
|
2013-06-06 01:12:16 +04:00
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
2016-09-26 10:46:37 +03:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python pygtk;
|
|
|
|
in stdenv.mkDerivation rec {
|
solfege: update 3.22 -> 3.22.2 (latest stable)
Changes:
Solfege 3.22.2, October 6, 2013
* Updated Esperanto, Portugese and Turkish translations to the users manual
* Updated Spannish and Turkish messages
* distribute solfege/tests/lesson-files/*
* help/C/scales/modes.html are never translated. So we must link to the
C-locale file in every translation.
* gettext tweaks to make the test suite work both when run as "test.py" and
"test.py test_lessonfile". There is still something wrong because we have to
disable the test to run debuild
* distribute solfege/tests/lib/* and solfege/test/include/*
Solfege 3.22.1, September 16, 2013
* Adjust some of the short interval names used when selecting intervals to
practise: u->P1 4->P4, 5->P5, tt->TT, p11->P11, p12->P12, tt8->d12. Added long
name for intervals from Eleventh to Double Octave.
* Fix the bug where we could not select the Default profile
* Updated Esperanto, Spannish, Polish, Turkish, Vietnamese, Norwegian bokmål,
Brazilian Portugese and Vietnamese translations.
2013-11-24 16:23:50 +04:00
|
|
|
name = "solfege-3.22.2";
|
2013-06-06 01:12:16 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/solfege/${name}.tar.gz";
|
solfege: update 3.22 -> 3.22.2 (latest stable)
Changes:
Solfege 3.22.2, October 6, 2013
* Updated Esperanto, Portugese and Turkish translations to the users manual
* Updated Spannish and Turkish messages
* distribute solfege/tests/lesson-files/*
* help/C/scales/modes.html are never translated. So we must link to the
C-locale file in every translation.
* gettext tweaks to make the test suite work both when run as "test.py" and
"test.py test_lessonfile". There is still something wrong because we have to
disable the test to run debuild
* distribute solfege/tests/lib/* and solfege/test/include/*
Solfege 3.22.1, September 16, 2013
* Adjust some of the short interval names used when selecting intervals to
practise: u->P1 4->P4, 5->P5, tt->TT, p11->P11, p12->P12, tt8->d12. Added long
name for intervals from Eleventh to Double Octave.
* Fix the bug where we could not select the Default profile
* Updated Esperanto, Spannish, Polish, Turkish, Vietnamese, Norwegian bokmål,
Brazilian Portugese and Vietnamese translations.
2013-11-24 16:23:50 +04:00
|
|
|
sha256 = "1r4g93ka7i8jh5glii5nza0zq0wy4sw0gfzpvkcrhj9yr1h0jsp4";
|
2013-06-06 01:12:16 +04:00
|
|
|
};
|
|
|
|
|
2017-09-06 00:26:13 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ python pygtk gettext texinfo
|
2016-10-14 01:03:12 +03:00
|
|
|
ghostscript librsvg gdk_pixbuf txt2man makeWrapper
|
2013-06-06 01:12:16 +04:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
sed -i -e 's|wav_player=.*|wav_player=${alsaUtils}/bin/aplay|' \
|
|
|
|
-e 's|midi_player=.*|midi_player=${timidity}/bin/timidity|' \
|
|
|
|
-e 's|mp3_player=.*|mp3_player=${mpg123}/bin/mpg123|' \
|
2016-01-26 02:53:13 +03:00
|
|
|
-e 's|ogg_player=.*|ogg_player=${vorbis-tools}/bin/ogg123|' \
|
2013-06-06 01:12:16 +04:00
|
|
|
-e 's|csound=.*|csound=${csound}/bin/csound|' \
|
|
|
|
-e 's|lilypond-book=.*|lilypond-book=${lilypond}/bin/lilypond-book|' \
|
|
|
|
default.config
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
set -x
|
|
|
|
wrapProgram "$out/bin/solfege" \
|
|
|
|
--prefix PYTHONPATH ':' "$PYTHONPATH" \
|
2014-02-28 04:40:04 +04:00
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
2013-06-06 01:12:16 +04:00
|
|
|
'';
|
|
|
|
|
2013-11-24 16:27:24 +04:00
|
|
|
meta = with stdenv.lib; {
|
2013-06-06 01:12:16 +04:00
|
|
|
description = "Ear training program";
|
|
|
|
homepage = http://www.solfege.org/;
|
2013-11-24 16:27:24 +04:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-06-06 01:12:16 +04:00
|
|
|
};
|
|
|
|
}
|