Merge pull request #32484 from magnetophon/qsampler

qsampler: svn-2342 -> 0.4.3

authored by Jörg Thalheim and committed by GitHub 3a202293 40950f6a

+79 -116
+15 -15
pkgs/applications/audio/gigedit/default.nix
··· 1 - { stdenv, fetchsvn, autoconf, automake, docbook_xml_dtd_45 2 - , docbook_xsl, gtkmm2, intltool, libgig, libsndfile, libtool, libxslt 3 - , pkgconfig }: 1 + { stdenv, fetchurl, autoconf, automake, intltool, libtool, pkgconfig, which 2 + , docbook_xml_dtd_45, docbook_xsl, gtkmm2, libgig, libsndfile, libxslt 3 + }: 4 4 5 5 stdenv.mkDerivation rec { 6 - name = "gigedit-svn-${version}"; 7 - version = "2342"; 6 + name = "gigedit-${version}"; 7 + version = "1.1.0"; 8 8 9 - src = fetchsvn { 10 - url = "https://svn.linuxsampler.org/svn/gigedit/trunk"; 11 - rev = "${version}"; 12 - sha256 = "0wi94gymj0ns5ck9lq1d970gb4gnzrq4b57j5j7k3d6185yg2gjs"; 9 + src = fetchurl { 10 + url = "http://download.linuxsampler.org/packages/${name}.tar.bz2"; 11 + sha256 = "087pc919q28r1vw31c7w4m14bqnp4md1i2wbmk8w0vmwv2cbx2ni"; 13 12 }; 14 13 15 - patchPhase = "sed -e 's/which/type -P/g' -i Makefile.cvs"; 14 + patches = [ ./gigedit-1.1.0-pangomm-2.40.1.patch ]; 15 + 16 + preConfigure = "make -f Makefile.svn"; 17 + 18 + nativeBuildInputs = [ autoconf automake intltool libtool pkgconfig which ]; 16 19 17 - preConfigure = "make -f Makefile.cvs"; 20 + buildInputs = [ docbook_xml_dtd_45 docbook_xsl gtkmm2 libgig libsndfile libxslt ]; 18 21 19 - buildInputs = [ 20 - autoconf automake docbook_xml_dtd_45 docbook_xsl gtkmm2 intltool 21 - libgig libsndfile libtool libxslt pkgconfig 22 - ]; 22 + enableParallelBuilding = true; 23 23 24 24 meta = with stdenv.lib; { 25 25 homepage = http://www.linuxsampler.org;
+15
pkgs/applications/audio/gigedit/gigedit-1.1.0-pangomm-2.40.1.patch
··· 1 + --- a/src/gigedit/wrapLabel.cc 2 + +++ b/src/gigedit/wrapLabel.cc 3 + @@ -64,12 +64,7 @@ WrapLabel::WrapLabel(const Glib::ustring &text) // IN: The label text 4 + : mWrapWidth(0), 5 + mWrapHeight(0) 6 + { 7 + - // pangomm >= 2.35.1 8 + -#if PANGOMM_MAJOR_VERSION > 2 || (PANGOMM_MAJOR_VERSION == 2 && (PANGOMM_MINOR_VERSION > 35 || (PANGOMM_MINOR_VERSION == 35 && PANGOMM_MICRO_VERSION >= 1))) 9 + - get_layout()->set_wrap(Pango::WrapMode::WORD_CHAR); 10 + -#else 11 + get_layout()->set_wrap(Pango::WRAP_WORD_CHAR); 12 + -#endif 13 + set_alignment(0.0, 0.0); 14 + set_text(text); 15 + }
+14 -17
pkgs/applications/audio/linuxsampler/default.nix
··· 1 - { stdenv, fetchsvn, alsaLib, asio, autoconf, automake, bison 2 - , libjack2, libgig, libsndfile, libtool, lv2, pkgconfig }: 1 + { stdenv, fetchurl, autoconf, automake, bison, libtool, pkgconfig, which 2 + , alsaLib, asio, libjack2, libgig, libsndfile, lv2 }: 3 3 4 4 stdenv.mkDerivation rec { 5 - name = "linuxsampler-svn-${version}"; 6 - version = "2340"; 5 + name = "linuxsampler-${version}"; 6 + version = "2.1.0"; 7 7 8 - src = fetchsvn { 9 - url = "https://svn.linuxsampler.org/svn/linuxsampler/trunk"; 10 - rev = "${version}"; 11 - sha256 = "0zsrvs9dwwhjx733m45vfi11yjkqv33z8qxn2i9qriq5zs1f0kd7"; 8 + src = fetchurl { 9 + url = "http://download.linuxsampler.org/packages/${name}.tar.bz2"; 10 + sha256 = "0fdxpw7jjfi058l95131d6d8538h05z7n94l60i6mhp9xbplj2jf"; 12 11 }; 13 12 14 - patches = ./linuxsampler_lv2_sfz_fix.diff; 15 - 16 13 # It fails to compile without this option. I'm not sure what the bug 17 14 # is, but everything works OK for me (goibhniu). 18 15 configureFlags = [ "--disable-nptl-bug-check" ]; 19 16 20 17 preConfigure = '' 21 - sed -e 's/which/type -P/g' -i scripts/generate_parser.sh 22 - make -f Makefile.cvs 18 + make -f Makefile.svn 23 19 ''; 24 20 25 - buildInputs = [ 26 - alsaLib asio autoconf automake bison libjack2 libgig libsndfile 27 - libtool lv2 pkgconfig 28 - ]; 21 + nativeBuildInputs = [ autoconf automake bison libtool pkgconfig which ]; 22 + 23 + buildInputs = [ alsaLib asio libjack2 libgig libsndfile lv2 ]; 24 + 25 + enableParallelBuilding = true; 29 26 30 27 meta = with stdenv.lib; { 31 28 homepage = http://www.linuxsampler.org; ··· 40 37 prior written permission by the LinuxSampler authors. If you 41 38 have questions on the subject, that are not yet covered by the 42 39 FAQ, please contact us. 43 - ''; 40 + ''; 44 41 license = licenses.unfree; 45 42 maintainers = [ maintainers.goibhniu ]; 46 43 platforms = platforms.linux;
-50
pkgs/applications/audio/linuxsampler/linuxsampler_lv2_sfz_fix.diff
··· 1 - Index: linuxsampler-r2359/src/hostplugins/lv2/PluginLv2.cpp 2 - =================================================================== 3 - --- linuxsampler-r2359/src/hostplugins/lv2/PluginLv2.cpp (revision 2359) 4 - +++ linuxsampler-r2359/src/hostplugins/lv2/PluginLv2.cpp (working copy) 5 - @@ -18,6 +18,8 @@ 6 - * MA 02110-1301 USA * 7 - ***************************************************************************/ 8 - 9 - +#define _BSD_SOURCE 1 /* for realpath() */ 10 - + 11 - #include <algorithm> 12 - #include <cassert> 13 - #include <cstdio> 14 - @@ -118,6 +120,23 @@ 15 - dmsg(2, ("linuxsampler: Deactivate\n")); 16 - } 17 - 18 - + static String RealPath(const String& path) 19 - + { 20 - + String out = path; 21 - + char* cpath = NULL; 22 - +#ifdef _WIN32 23 - + cpath = (char*)malloc(MAX_PATH); 24 - + GetFullPathName(path.c_str(), MAX_PATH, cpath, NULL); 25 - +#else 26 - + cpath = realpath(path.c_str(), NULL); 27 - +#endif 28 - + if (cpath) { 29 - + out = cpath; 30 - + free(cpath); 31 - + } 32 - + return out; 33 - + } 34 - + 35 - String PluginLv2::PathToState(const String& path) { 36 - if (MapPath) { 37 - char* cstr = MapPath->abstract_path(MapPath->handle, path.c_str()); 38 - @@ -131,9 +150,10 @@ 39 - String PluginLv2::PathFromState(const String& path) { 40 - if (MapPath) { 41 - char* cstr = MapPath->absolute_path(MapPath->handle, path.c_str()); 42 - - const String abstract_path(cstr); 43 - + // Resolve symbolic links so SFZ sample paths load correctly 44 - + const String absolute_path(RealPath(cstr)); 45 - free(cstr); 46 - - return abstract_path; 47 - + return absolute_path; 48 - } 49 - return path; 50 - }
+11 -10
pkgs/applications/audio/qsampler/default.nix
··· 1 - { stdenv, fetchsvn, autoconf, automake, liblscp, libtool, pkgconfig 2 - , qt4 }: 1 + { stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, qttools 2 + , liblscp, libgig, qtbase }: 3 3 4 4 stdenv.mkDerivation rec { 5 - name = "qsampler-svn-${version}"; 6 - version = "2342"; 5 + name = "qsampler-${version}"; 6 + version = "0.4.3"; 7 7 8 - src = fetchsvn { 9 - url = "https://svn.linuxsampler.org/svn/qsampler/trunk"; 10 - rev = "${version}"; 11 - sha256 = "17w3vgpgfmvl11wsd5ndk9zdggl3gbzv3wbd45dyf2al4i0miqnx"; 8 + src = fetchurl { 9 + url = "mirror://sourceforge/qsampler/${name}.tar.gz"; 10 + sha256 = "1wg19022gyzy8rk9npfav9kz9z2qicqwwb2x5jz5hshzf3npx1fi"; 12 11 }; 13 12 14 - nativeBuildInputs = [ pkgconfig ]; 15 - buildInputs = [ autoconf automake liblscp libtool qt4 ]; 13 + nativeBuildInputs = [ autoconf automake libtool pkgconfig qttools ]; 14 + buildInputs = [ liblscp libgig qtbase ]; 16 15 17 16 preConfigure = "make -f Makefile.svn"; 17 + 18 + enableParallelBuilding = true; 18 19 19 20 meta = with stdenv.lib; { 20 21 homepage = http://www.linuxsampler.org;
+12 -10
pkgs/development/libraries/libgig/default.nix
··· 1 - { stdenv, fetchsvn, autoconf, automake, libsndfile, libtool, pkgconfig, libuuid }: 1 + { stdenv, fetchurl, autoconf, automake, libsndfile, libtool, pkgconfig, libuuid }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "libgig-svn-${version}"; 5 - version = "2334"; 4 + name = "libgig-${version}"; 5 + version = "4.1.0"; 6 6 7 - src = fetchsvn { 8 - url = "https://svn.linuxsampler.org/svn/libgig/trunk"; 9 - rev = "${version}"; 10 - sha256 = "0i7sj3zm6banl5avjdxblx0mlbxxzbsbr4x5hsl2fhrdsv5dnxhc"; 7 + src = fetchurl { 8 + url = "http://download.linuxsampler.org/packages/${name}.tar.bz2"; 9 + sha256 = "02xx6bqxzgkvrawwnzrnxx1ypk244q4kpwfd58266f9ji8kq18h6"; 11 10 }; 12 11 13 - nativeBuildInputs = [ pkgconfig ]; 14 - buildInputs = [ autoconf automake libsndfile libtool libuuid ]; 12 + nativeBuildInputs = [ autoconf automake libtool pkgconfig ]; 13 + 14 + buildInputs = [ libsndfile libuuid ]; 15 + 16 + preConfigure = "make -f Makefile.svn"; 15 17 16 - preConfigure = "make -f Makefile.cvs"; 18 + enableParallelBuilding = true; 17 19 18 20 meta = with stdenv.lib; { 19 21 homepage = http://www.linuxsampler.org;
+10 -10
pkgs/development/libraries/liblscp/default.nix
··· 1 - { stdenv, fetchsvn, autoconf, automake, libtool, pkgconfig }: 1 + { stdenv, fetchurl, autoconf, automake, libtool, pkgconfig }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "liblscp-svn-${version}"; 5 - version = "2319"; 4 + name = "liblscp-${version}"; 5 + version = "0.5.8"; 6 6 7 - src = fetchsvn { 8 - url = "https://svn.linuxsampler.org/svn/liblscp/trunk"; 9 - rev = "${version}"; 10 - sha256 = "0jgdy9gi9n8x2pqrbll9158vhx8293lnxv8vzl0szcincslgk7hi"; 7 + src = fetchurl { 8 + url = "http://download.linuxsampler.org/packages/${name}.tar.gz"; 9 + sha256 = "00cfafkw1n80sdjwm9zdsg5vx287wqpgpbajd3zmiz415wzr84dn"; 11 10 }; 12 11 13 - nativeBuildInputs = [ pkgconfig ]; 14 - buildInputs = [ autoconf automake libtool ]; 12 + nativeBuildInputs = [ autoconf automake libtool pkgconfig ]; 13 + 14 + preConfigure = "make -f Makefile.git"; 15 15 16 - preConfigure = "make -f Makefile.svn"; 16 + enableParallelBuilding = true; 17 17 18 18 meta = with stdenv.lib; { 19 19 homepage = http://www.linuxsampler.org;
+2 -4
pkgs/top-level/all-packages.nix
··· 15638 15638 polarssl = mbedtls_1_3; 15639 15639 }; 15640 15640 15641 - linuxsampler = callPackage ../applications/audio/linuxsampler { 15642 - bison = bison2; 15643 - }; 15641 + linuxsampler = callPackage ../applications/audio/linuxsampler { }; 15644 15642 15645 15643 llpp = ocaml-ng.ocamlPackages.callPackage ../applications/misc/llpp { }; 15646 15644 ··· 16393 16391 16394 16392 qrcode = callPackage ../tools/graphics/qrcode {}; 16395 16393 16396 - qsampler = callPackage ../applications/audio/qsampler { }; 16394 + qsampler = libsForQt5.callPackage ../applications/audio/qsampler { }; 16397 16395 16398 16396 qscreenshot = callPackage ../applications/graphics/qscreenshot { 16399 16397 qt = qt4;