gives errors with libc++ 3.8.0:
gmake[2]: Entering directory '/wrkdirs/usr/ports/chinese/sunpinyin/work'
slmpack lm_sc.3gm.arpa dict.utf8 lm_sc.3gm
Loading lexicon...done.
Loading ARPA slm...
Writing out...done!
slmthread lm_sc.3gm lm_sc.t3g.orig
Loading original slm...
first pass...
Compressing pr values...65536 float values ==> 65536 values
Compressing bow values...16384 float values ==> 16384 values
Threading the new model...Assertion failed: (prit != pr_map.end()), function main, file src/slm/thread/slmthread.cpp, line 364.
/wrkdirs/usr/ports/chinese/sunpinyin/work/sunpinyin-a8bd811/src/sunpinyin-dictgen.mk:51: recipe for target 'lm_sc.t3g.orig' failed
This is because the code mostly uses floats, but in some parts it uses
log(), exp(), etc, which return doubles. During the parts where it does
lookups in std::map<float, int> constructs, this leads to it not being
able to find the expected entries. Fix this by using logf(), expf() and
similar, which explicitly return floats.
Approved by: lichray@gmail.com (maintainer)
PR: 209369
MFH: 2016Q2
- While I'm here:
- Remove leading indefinite article from COMMENT
- Remove LICENSE_FILE for well-known licenses
- Covnert to new LIB_DEPENDS format
- Use USES=gmake
PR: ports/182079
Submitted by: Henry Hu <henry.hu.sh@gmail.com>
Approved by: Zhihao Yuan <zy@miator.net> (maintainer)
are no more self hosting so we are stuck with 0.25 version while pkgconf provide
the same set of features as 0.27 and a compatible frontend. A symlink to
pkg-config has been added for convenience and compatibility
This also introduces a new macro to use pkgconf in your ports:
USE_PKGCONFIG
it can take the following arguments:
- yes (meaning build only dep)
- build (meaning build only dep)
- run (meaning run only dep)
- both (meaning run and build dep)
From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG
The old gnome macro has been modified to use pkgconf but still the sameway: run
and build dep to avoid large breakage.
While here fix some ports relying on pkg-config but not specifying it, fix some
ports broken because testing wrong .pc files, and fix ports using pkg-config
--version to determine pkg-config version instead of
pkg-config --modversion pkg-config like recommanded by pkg-config
With Hat: portmgr
Exp-runs by: bapt (pointhat-west), beat (pointyhat)
- Make chinese/sunpinyin 2.0.4-compatible, XDG-compatible, etc.
1. patch-2.0.4-compatible
sunpinyin-2.0.4 is not released, but I'm porting a front-end which uses several changes from the newer version. This patch is enough.
2. patch-xdg
Change the config dir from .sunpinyin to .config/sunpinyin. It's safe because we have no front-ends in ports tree, so no one has these configured :)
3. patch-src...
Remove the unneeded and repeated message on terminal.
PR: ports/162465
Submitted by: maintainer (Zhihao Yuan)
Feature safe: yes
was firstly developed by Sun Beijing Globalization team, and opensource'd
to community with opensolaris project, with LGPLv2 and CDDL dual-licenses.
WWW: http://code.google.com/p/sunpinyin/
Feature safe: yes