Add libmusicbrainz 2.x and 3.x

svn path=/nixpkgs/trunk/; revision=23793

+160
+16
pkgs/development/libraries/libmusicbrainz/2.x.nix
···
··· 1 + { stdenv, fetchurl, expat }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "libmusicbrainz-2.1.5"; 5 + 6 + configureFlags = "--enable-cpp-headers"; 7 + 8 + buildInputs = [ expat ]; 9 + 10 + patches = [ ./gcc-4.x.patch ]; 11 + 12 + src = fetchurl { 13 + url = "ftp://ftp.musicbrainz.org/pub/musicbrainz/${name}.tar.gz"; 14 + sha256 = "183i4c109r5qx3mk4r986sx5xw4n5mdhdz4yz3rrv3s2xm5rqqn6"; 15 + }; 16 + }
+14
pkgs/development/libraries/libmusicbrainz/default.nix
···
··· 1 + { stdenv, fetchurl, cmake, neon, libdiscid }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "libmusicbrainz-3.0.2"; 5 + 6 + buildInputs = [ cmake neon libdiscid ]; 7 + 8 + patches = [ ./find-neon.patch ]; 9 + 10 + src = fetchurl { 11 + url = "ftp://ftp.musicbrainz.org/pub/musicbrainz/${name}.tar.gz"; 12 + sha256 = "1nhyl9kalvcn0r86y3kps6id84y3rc43226g67bssfb2h9b5x8xr"; 13 + }; 14 + }
+52
pkgs/development/libraries/libmusicbrainz/find-neon.patch
···
··· 1 + diff --git a/cmake/modules/FindNeon.cmake b/cmake/modules/FindNeon.cmake 2 + index 0a6b300..dbd6194 100644 3 + --- a/cmake/modules/FindNeon.cmake 4 + +++ b/cmake/modules/FindNeon.cmake 5 + @@ -1,10 +1,10 @@ 6 + INCLUDE(UsePkgConfig) 7 + PKGCONFIG(neon _NeonIncDir _NeonLinkDir _NeonLinkFlags _NeonCflags) 8 + 9 + -FIND_PATH(NEON_INCLUDE_DIR ne_request.h 10 + +FIND_PATH(NEON_INCLUDE_DIR neon/ne_request.h 11 + ${_NeonIncDir} 12 + - /usr/include/neon 13 + - /usr/local/include/neon 14 + + /usr/include 15 + + /usr/local/include 16 + ) 17 + 18 + FIND_LIBRARY(NEON_LIBRARIES neon 19 + diff --git a/src/utils_private.cpp b/src/utils_private.cpp 20 + index 751b4a7..5a06eca 100644 21 + --- a/src/utils_private.cpp 22 + +++ b/src/utils_private.cpp 23 + @@ -26,7 +26,7 @@ 24 + #include <cstdarg> 25 + #include <iostream> 26 + #include <map> 27 + -#include <ne_uri.h> 28 + +#include <neon/ne_uri.h> 29 + #include "utils_private.h" 30 + 31 + using namespace std; 32 + diff --git a/src/webservice.cpp b/src/webservice.cpp 33 + index cd483f9..483f486 100644 34 + --- a/src/webservice.cpp 35 + +++ b/src/webservice.cpp 36 + @@ -26,11 +26,11 @@ 37 + #include <iostream> 38 + #include <stdlib.h> 39 + #include <string.h> 40 + -#include <ne_session.h> 41 + -#include <ne_request.h> 42 + -#include <ne_utils.h> 43 + -#include <ne_auth.h> 44 + -#include <ne_uri.h> 45 + +#include <neon/ne_session.h> 46 + +#include <neon/ne_request.h> 47 + +#include <neon/ne_utils.h> 48 + +#include <neon/ne_auth.h> 49 + +#include <neon/ne_uri.h> 50 + #include <musicbrainz3/webservice.h> 51 + #include <musicbrainz3/artist.h> 52 + #include "utils_private.h"
+60
pkgs/development/libraries/libmusicbrainz/gcc-4.x.patch
···
··· 1 + diff --git a/lib/c_wrapper.cpp b/lib/c_wrapper.cpp 2 + index deae11d..ebc7854 100644 3 + --- a/lib/c_wrapper.cpp 4 + +++ b/lib/c_wrapper.cpp 5 + @@ -24,6 +24,7 @@ 6 + #include "musicbrainz.h" 7 + #include "trm.h" 8 + #include "mb_c.h" 9 + +#include <string.h> 10 + 11 + extern "C" 12 + { 13 + diff --git a/lib/comhttpsocket.cpp b/lib/comhttpsocket.cpp 14 + index 067313b..4371772 100644 15 + --- a/lib/comhttpsocket.cpp 16 + +++ b/lib/comhttpsocket.cpp 17 + @@ -20,6 +20,7 @@ 18 + #endif 19 + #include <stdlib.h> 20 + #include <assert.h> 21 + +#include <string.h> 22 + 23 + const char* g_strCOMVer = "libmusicbrainz/"VERSION; 24 + 25 + diff --git a/lib/comsocket.cpp b/lib/comsocket.cpp 26 + index 01a94be..7bfc4dd 100644 27 + --- a/lib/comsocket.cpp 28 + +++ b/lib/comsocket.cpp 29 + @@ -44,6 +44,7 @@ ____________________________________________________________________________*/ 30 + #include <net/if.h> 31 + #include <sys/ioctl.h> 32 + #endif 33 + +#include <string.h> 34 + 35 + #define mb_socklen_t ACCEPT_ARG3 36 + 37 + diff --git a/lib/http.cpp b/lib/http.cpp 38 + index 85390a3..e63713c 100644 39 + --- a/lib/http.cpp 40 + +++ b/lib/http.cpp 41 + @@ -67,6 +67,7 @@ 42 + #ifdef __QNX__ 43 + #include <strings.h> 44 + #endif 45 + +#include <string.h> 46 + 47 + using namespace std; 48 + 49 + diff --git a/lib/sigclient.cpp b/lib/sigclient.cpp 50 + index 9f76008..4bbbaae 100644 51 + --- a/lib/sigclient.cpp 52 + +++ b/lib/sigclient.cpp 53 + @@ -32,6 +32,7 @@ email : ijr@relatable.com 54 + #ifdef WIN32 55 + #pragma warning(disable:4786) 56 + #endif 57 + +#include <string.h> 58 + 59 + #include "sigclient.h" 60 + #include "comhttpsocket.h"
+12
pkgs/development/libraries/libmusicbrainz/missing-include.patch
···
··· 1 + diff --git a/src/utils_private.cpp b/src/utils_private.cpp 2 + index 2abe857..751b4a7 100644 3 + --- a/src/utils_private.cpp 4 + +++ b/src/utils_private.cpp 5 + @@ -21,6 +21,7 @@ 6 + */ 7 + 8 + #include <cstdlib> 9 + +#include <cstdio> 10 + #include <cstring> 11 + #include <cstdarg> 12 + #include <iostream>
+6
pkgs/top-level/all-packages.nix
··· 3299 3300 libmusclecard = callPackage ../development/libraries/libmusclecard { }; 3301 3302 libnih = callPackage ../development/libraries/libnih { }; 3303 3304 libnova = callPackage ../development/libraries/libnova { };
··· 3299 3300 libmusclecard = callPackage ../development/libraries/libmusclecard { }; 3301 3302 + libmusicbrainz2 = callPackage ../development/libraries/libmusicbrainz/2.x.nix { }; 3303 + 3304 + libmusicbrainz3 = callPackage ../development/libraries/libmusicbrainz { }; 3305 + 3306 + libmusicbrainz = libmusicbrainz3; 3307 + 3308 libnih = callPackage ../development/libraries/libnih { }; 3309 3310 libnova = callPackage ../development/libraries/libnova { };