dev-libs/libxlsxwriter: add 1.1.6, wire up tests

This isn't the latest version (leaving that for bug #956680) but
needed to do this to get tests wired up as 1.1.6 has an updated cunit.h
vs 1.1.5.

Bug: https://bugs.gentoo.org/956680
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-27 02:35:30 +01:00
parent 5e4eaf320c
commit 78762e65fe
2 changed files with 53 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST libxlsxwriter-1.1.5.tar.gz 21541446 BLAKE2B f9e2fde83bde852b4568b8ce82a28ad75e6e8d1ca6f3683ac2308d28707e7e4874facf8eac2ce9b4b9fdcc96d8b775dd69eefb2f976f564323a278a3dad032d0 SHA512 bd7db0fcf25ebf492b4d8f7da8fdb6cc79400d7d0fa5856ddae259cb24817034fc97d4828cbde42434f41198dcfb6732ac63c756abd962689f4249ca64bf19c6
DIST libxlsxwriter-1.1.6.tar.gz 21583760 BLAKE2B 02e240001cce1521261a424a54655896d15bd065f89c2762ce93f87a3f7c7d85426b826ed12334f020f862dd1b5be8dc890b6439669a344bd24ffdd2c4e87c05 SHA512 421d7a5f9f3584873ff7596abb36815f012dcb59c57fff1a311d2e15474ebaf07dbd461a6bdc42ce5db5e60acf73544c119adc64ede59a8de4d041846f22f998

View File

@@ -0,0 +1,52 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake plocale
DESCRIPTION="C library for creating Excel XLSX files"
HOMEPAGE="https://libxlsxwriter.github.io/ https://github.com/jmcnamara/libxlsxwriter"
SRC_URI="https://github.com/jmcnamara/libxlsxwriter/archive/RELEASE_${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-RELEASE_${PV}"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="openssl test"
RESTRICT="!test? ( test )"
DEPEND="
sys-libs/zlib[minizip]
openssl? ( dev-libs/openssl:= )
"
RDEPEND="${DEPEND}"
# pytest gets invoked directly
BDEPEND="
test? ( dev-python/pytest )
"
src_configure() {
DOUBLEFUNCTION=OFF
for x in $(plocale_get_locales); do
if ! [[ "${x}" =~ ^en* ]]; then
#non-english locale detected; apply double function fix
DOUBLEFUNCTION=ON
break
fi
done
local mycmakeargs=(
-DCMAKE_BUILD_TYPE=Release
-DBUILD_TESTS="$(usex test)"
-DUSE_OPENSSL_MD5="$(usex openssl)"
-DUSE_SYSTEM_MINIZIP=ON
-DUSE_DTOA_LIBRARY=${DOUBLEFUNCTION}
)
cmake_src_configure
}
src_install() {
cmake_src_install
dodoc CONTRIBUTING.md License.txt Readme.md Changes.txt
dodoc -r docs examples
}