mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
- Update to 0.36
New upstream release. Two patches no more needed. PR: ports/115180 Submitted by: maintainer (Lapo Luchini)
This commit is contained in:
parent
6e4232f1da
commit
50ac58c79e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197624
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= monotone
|
||||
PORTVERSION= 0.35
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.36
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://monotone.ca/downloads/${PORTVERSION}/
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 <cstddef>
|
||||
+#include <climits>
|
||||
#include <limits>
|
||||
|
||||
#include "mt-stdint.h"
|
@ -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 <string>
|
||||
#include <sstream>
|
||||
|
||||
+#include <boost/version.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
|
||||
@@ -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<string> 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<string>::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;
|
Loading…
Reference in New Issue
Block a user