claws-mail: 3.11.1 -> 3.12.0, remove priority workaround

This commit is contained in:
Bryan Gardiner 2015-09-27 11:33:37 -07:00
parent fac03e7441
commit a0de3cd969
No known key found for this signature in database
GPG key ID: 53EFBCA063E6183C
2 changed files with 12 additions and 9 deletions

View file

@ -29,7 +29,7 @@
with stdenv.lib;
let version = "3.11.1"; in
let version = "3.12.0"; in
stdenv.mkDerivation {
name = "claws-mail-${version}";
@ -40,16 +40,20 @@ stdenv.mkDerivation {
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.khumba ];
priority = 10; # Resolve the conflict with the share/mime link we create.
};
src = fetchurl {
url = "http://downloads.sourceforge.net/project/claws-mail/Claws%20Mail/${version}/claws-mail-${version}.tar.bz2";
sha256 = "0w13xzri9d3165qsxf1dig1f0gxn3ib4lysfc9pgi4zpyzd0zgrw";
url = "http://www.claws-mail.org/download.php?file=releases/claws-mail-3.12.0.tar.xz";
sha256 = "1jnnwivpcplv8x4w0ibb1qcnasl37fr53lbfybhgb936l2mdcai7";
};
patches = [ ./mime.patch ];
postPatch = ''
substituteInPlace src/procmime.c \
--subst-var-by MIMEROOTDIR ${shared_mime_info}/share
'';
buildInputs =
[ curl dbus dbus_glib gtk gnutls hicolor_icon_theme
libetpan perl pkgconfig python
@ -90,7 +94,5 @@ stdenv.mkDerivation {
postInstall = ''
mkdir -p $out/share/applications
cp claws-mail.desktop $out/share/applications
ln -sT ${shared_mime_info}/share/mime $out/share/mime
'';
}

View file

@ -1,14 +1,15 @@
--- a/src/procmime.c 2015-09-18 04:03:11.767654094 -0700
+++ b/src/procmime.c 2015-09-18 04:08:38.834503034 -0700
--- a/src/procmime.c 2015-10-01 23:02:16.629908590 -0700
+++ b/src/procmime.c 2015-10-01 23:02:46.932001337 -0700
@@ -1196,11 +1196,7 @@
if (mime_type_list)
return mime_type_list;
-#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
if ((fp = procmime_fopen(DATAROOTDIR "/mime/globs", "rb")) == NULL)
- if ((fp = procmime_fopen(DATAROOTDIR "/mime/globs", "rb")) == NULL)
-#else
- if ((fp = procmime_fopen("/usr/share/mime/globs", "rb")) == NULL)
-#endif
+ if ((fp = procmime_fopen("@MIMEROOTDIR@/mime/globs", "rb")) == NULL)
{
fp_is_glob_file = FALSE;
if ((fp = procmime_fopen("/etc/mime.types", "rb")) == NULL) {