diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-09-22 20:43:19 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-09-22 20:43:19 +0000 |
commit | 6df5387bc4103a1fdf7ded2ae3524cef456581e2 (patch) | |
tree | e5bd898e618d9222e69394117b92be55d9d87694 /science/crf++/files | |
parent | Fix build with -fno-common and remove the now osbolete -fcommon option. (diff) |
Update to 0.59 (latest commit)
- Change MASTER_SITES to GitHub, where upstream moved
- Apply some patches from the GitHub Pull Requests to make the port build
(upstream seems to lost some files while migrating to GitHub) and patch
some bugs
- Set licenses
- Upstream does not tag releases on GitHub, so it's all guessing what the
real version is. 0.59 is what I found in the source code.
- Install examples; they are useful to test if the port is working
- Remove old patches, they are no longer needed
- Update WWW
Notes
Notes:
svn path=/head/; revision=549633
Diffstat (limited to 'science/crf++/files')
-rw-r--r-- | science/crf++/files/patch-feature__index.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/science/crf++/files/patch-feature__index.cpp b/science/crf++/files/patch-feature__index.cpp deleted file mode 100644 index 042fafa6d42a..000000000000 --- a/science/crf++/files/patch-feature__index.cpp +++ /dev/null @@ -1,21 +0,0 @@ ---- feature_index.cpp.orig 2018-09-01 10:26:57 UTC -+++ feature_index.cpp -@@ -34,8 +34,7 @@ int EncoderFeatureIndex::getID(const char *key) { - std::map <std::string, std::pair<int, unsigned int> >::iterator - it = dic_.find(key); - if (it == dic_.end()) { -- dic_.insert(std::make_pair<std::string, std::pair<int, unsigned int> > -- (key, std::make_pair<int, unsigned int>(maxid_, 1))); -+ dic_.insert(std::make_pair(key, std::make_pair(maxid_, 1))); - int n = maxid_; - maxid_ += (key[0] == 'U' ? y_.size() : y_.size() * y_.size()); - return n; -@@ -171,7 +170,7 @@ void EncoderFeatureIndex::shrink(size_t freq) { - const std::string &key = it->first; - - if (it->second.second >= freq) { -- old2new.insert(std::make_pair<int, int>(it->second.first, new_maxid)); -+ old2new.insert(std::make_pair(it->second.first, new_maxid)); - it->second.first = new_maxid; - new_maxid += (key[0] == 'U' ? y_.size() : y_.size() * y_.size()); - ++it; |