Files
gentoo/sci-libs/dmlc-core
Peter Levine 2dad60a86a sci-libs/dmlc-core: add 0.5
- add cpu_flags_x86_sse2 to IUSE

It's true it only adds an -m flag to CXXFLAGS but so do most uses of
CPU_FLAGS_X86.  Also, remove automagic from CMakeLists.txt and pass
-DSUPPORT_MSSE2 explicitly

- remove patch

Appears to be no longer needed.

- fix dependencies

Make gtest a proper bdep.  The presence of texlive-fontutils appears
irrelevant as the generated docs compare the same.  curl is only
needed for s3.

- fix testing

Portage doesn't set LD_LIBRARY_PATH resulting in a leading colon when
used in LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}". It builds
fine with just -L\"${BUILD_DIR}\" and testing runs fine with just
LD_LIBRARY_PATH="${BUILD_DIR}".

It doesn't appear to need tc-export CXX to find the correct
compiler.

GTEST_LIB needs to be changed to the correct libdir. Otherwise it
passes -L/lib/ triggering it to build in x86 mode and fail at linking
stage. Alter GTEST_INC also for good measure.

Pass -DGOOGLE_TEST for ctest testing, while also keeping non-ctest
tests.

Pass USE_CXX14_IF_AVAILABLE to cmake and change -std=c++11 to
-std=c++14 in the Makefile to support the latest gtest.

- use emake to build docs and tests in src_compile

`emake test` is more appropriate in src_compile.  And `emake doxygen`
works fine to generate docs.

- add little-endian tests

Pass DMLC_UNIT_TEST_LITTLE_ENDIAN for a few more tests.

Closes: https://bugs.gentoo.org/894038
Closes: https://github.com/gentoo/gentoo/pull/29572
Signed-off-by: Peter Levine <plevine457@gmail.com>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2023-03-17 13:07:06 +01:00
..
…