diff --git a/devel/monotone/Makefile b/devel/monotone/Makefile index 6fb8ff66866b..4d0f1471cf6c 100644 --- a/devel/monotone/Makefile +++ b/devel/monotone/Makefile @@ -6,8 +6,7 @@ # PORTNAME= monotone -PORTVERSION= 0.35 -PORTREVISION= 1 +PORTVERSION= 0.36 CATEGORIES= devel MASTER_SITES= http://monotone.ca/downloads/${PORTVERSION}/ diff --git a/devel/monotone/distinfo b/devel/monotone/distinfo index 2498d6495340..dfc75c529d37 100644 --- a/devel/monotone/distinfo +++ b/devel/monotone/distinfo @@ -1,3 +1,3 @@ -MD5 (monotone-0.35.tar.gz) = 9b53046dda8ba7549fa5ce765e14fa65 -SHA256 (monotone-0.35.tar.gz) = bbe0c5ff34f58a8af81563560e5f21408a568dfe277baa452a56f19b5b7a07de -SIZE (monotone-0.35.tar.gz) = 4857094 +MD5 (monotone-0.36.tar.gz) = ba6733ebd9992c8c7b48b9e2226f9fb7 +SHA256 (monotone-0.36.tar.gz) = 99042322392ff6b7024a75935324287109fb7260d0e6b3e6aafdac9a67d0b2a4 +SIZE (monotone-0.36.tar.gz) = 4836460 diff --git a/devel/monotone/files/patch-numeric_vocab.hh b/devel/monotone/files/patch-numeric_vocab.hh deleted file mode 100644 index 911191caa822..000000000000 --- a/devel/monotone/files/patch-numeric_vocab.hh +++ /dev/null @@ -1,10 +0,0 @@ ---- numeric_vocab.hh.orig Mon May 7 16:13:44 2007 -+++ numeric_vocab.hh Sat Jun 30 22:53:12 2007 -@@ -11,6 +11,7 @@ - // PURPOSE. - - #include -+#include - #include - - #include "mt-stdint.h" diff --git a/devel/monotone/files/patch-paths.cc b/devel/monotone/files/patch-paths.cc deleted file mode 100644 index 138dcac07128..000000000000 --- a/devel/monotone/files/patch-paths.cc +++ /dev/null @@ -1,93 +0,0 @@ ---- paths.cc.orig 2007-05-07 14:13:44.000000000 +0000 -+++ paths.cc 2007-07-15 22:17:32.000000000 +0000 -@@ -10,6 +10,7 @@ - #include - #include - -+#include - #include - #include - -@@ -249,6 +250,41 @@ - I(fully_normalized_path_split(path, true, sp)); - } - -+// path::normalize() is deprecated in Boost 1.34, and also -+// doesn't remove leading or trailing dots any more. -+static fs::path -+normalize_path(fs::path const & in) -+{ -+#if BOOST_VERSION < 103400 -+ return in.normalize(); -+#else -+ fs::path out; -+ vector stack; -+ for (fs::path::iterator i = in.begin(); i != in.end(); ++i) -+ { -+ // remove . elements -+ if (*i == ".") -+ continue; -+ // remove foo/.. element pairs -+ if (*i == "..") -+ { -+ if (!stack.empty()) -+ { -+ stack.pop_back(); -+ continue; -+ } -+ } -+ stack.push_back(*i); -+ } -+ for (vector::const_iterator i = stack.begin(); -+ i != stack.end(); ++i) -+ { -+ out /= *i; -+ } -+ return out; -+#endif -+} -+ - static void - normalize_external_path(string const & path, string & normalized) - { -@@ -272,7 +308,7 @@ - base = initial_rel_path.get(); - // the fs::native is needed to get it to accept paths like ".foo". - relative = fs::path(path, fs::native); -- out = (base / relative).normalize(); -+ out = normalize_path(base / relative); - } - catch (exception &) - { -@@ -539,9 +575,9 @@ - normalize_out_dots(string const & path) - { - #ifdef WIN32 -- return fs::path(path, fs::native).normalize().string(); -+ return normalize_path(fs::path(path, fs::native)).string(); - #else -- return fs::path(path, fs::native).normalize().native_file_string(); -+ return normalize_path(fs::path(path, fs::native)).native_file_string(); - #endif - } - -@@ -679,9 +715,17 @@ - } - - // check for _MTN/. and _MTN/.. to see if mt dir is readable -- if (!fs::exists(check / ".") || !fs::exists(check / "..")) -+ try -+ { -+ if (!fs::exists(check / ".") || !fs::exists(check / "..")) -+ { -+ L(FL("problems with '%s' (missing '.' or '..')") % check.string()); -+ return false; -+ } -+ } -+ catch(exception &) - { -- L(FL("problems with '%s' (missing '.' or '..')") % check.string()); -+ L(FL("problems with '%s' (cannot check for '.' or '..')") % check.string()); - return false; - } - return true;