From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1515567-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4FE6415ACFC for <garchives@archives.gentoo.org>; Fri, 5 May 2023 04:39:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69101E095E; Fri, 5 May 2023 04:39:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D96CE095E for <gentoo-commits@lists.gentoo.org>; Fri, 5 May 2023 04:39:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3F5F833F6A5 for <gentoo-commits@lists.gentoo.org>; Fri, 5 May 2023 04:39:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A1D9E8AC for <gentoo-commits@lists.gentoo.org>; Fri, 5 May 2023 04:39:34 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1683260630.56db9dbc9980d95b895964d75458d8c0e2990c4c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libxlsxwriter/, dev-libs/libxlsxwriter/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libxlsxwriter/files/libxlsxwriter-1.1.5-findzlib.patch dev-libs/libxlsxwriter/libxlsxwriter-1.1.5-r1.ebuild X-VCS-Directories: dev-libs/libxlsxwriter/files/ dev-libs/libxlsxwriter/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 56db9dbc9980d95b895964d75458d8c0e2990c4c X-VCS-Branch: master Date: Fri, 5 May 2023 04:39:34 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 706d6e2d-dc68-4f0f-a652-18b2a3388b7e X-Archives-Hash: dd20064b1435cda36e022fab841e3061 commit: 56db9dbc9980d95b895964d75458d8c0e2990c4c Author: Efe İzbudak <efe.izbudak <AT> metu <DOT> edu <DOT> tr> AuthorDate: Thu May 4 04:02:09 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri May 5 04:23:50 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56db9dbc dev-libs/libxlsxwriter: fix cmake zlib find_package() syntax A syntax error in the CMakeLists.txt have been fixed about zlib find_package(). Closes: https://bugs.gentoo.org/902017 Signed-off-by: Efe İzbudak <efe.izbudak <AT> metu.edu.tr> Closes: https://github.com/gentoo/gentoo/pull/30865 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/libxlsxwriter-1.1.5-findzlib.patch | 22 ++++++++++ .../libxlsxwriter/libxlsxwriter-1.1.5-r1.ebuild | 50 ++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/dev-libs/libxlsxwriter/files/libxlsxwriter-1.1.5-findzlib.patch b/dev-libs/libxlsxwriter/files/libxlsxwriter-1.1.5-findzlib.patch new file mode 100644 index 000000000000..717cdd3f8463 --- /dev/null +++ b/dev-libs/libxlsxwriter/files/libxlsxwriter-1.1.5-findzlib.patch @@ -0,0 +1,22 @@ +ZLIB syntax +Fixed upstream with: https://github.com/jmcnamara/libxlsxwriter/commit/e5014443ffca8614ea0cc6d70e6e6e3d15f82155 +https://bugs.gentoo.org/902017 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -219,13 +219,13 @@ enable_language(CXX) + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) + + # ZLIB +-find_package(ZLIB REQUIRED "1.0") ++find_package(ZLIB "1.0" REQUIRED) + list(APPEND LXW_PRIVATE_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS}) + message("zlib version: " ${ZLIB_VERSION}) + + # MINIZIP + if (USE_SYSTEM_MINIZIP) +- find_package(MINIZIP REQUIRED "1.0") ++ find_package(MINIZIP REQUIRED) + list(APPEND LXW_PRIVATE_INCLUDE_DIRS ${MINIZIP_INCLUDE_DIRS}) + endif() + diff --git a/dev-libs/libxlsxwriter/libxlsxwriter-1.1.5-r1.ebuild b/dev-libs/libxlsxwriter/libxlsxwriter-1.1.5-r1.ebuild new file mode 100644 index 000000000000..9080128e987c --- /dev/null +++ b/dev-libs/libxlsxwriter/libxlsxwriter-1.1.5-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 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" + +DEPEND=" + sys-libs/zlib[minizip] + openssl? ( dev-libs/openssl:= ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-findzlib.patch" + ) + +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 + -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 +}