summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfe İzbudak <efe.izbudak@metu.edu.tr>2022-06-29 17:18:55 +0300
committerSam James <sam@gentoo.org>2022-08-29 23:37:37 +0100
commit0ce43d3e5afed7970373db36e8791894931730f6 (patch)
tree8f629e8c8581ad7ff5de5775278bbbc34e1573a7 /dev-libs/libxlsxwriter
parentdev-util/scap-driver: fix kmod build on kernels >= 5.18 (diff)
downloadgentoo-0ce43d3e5afed7970373db36e8791894931730f6.tar.gz
gentoo-0ce43d3e5afed7970373db36e8791894931730f6.tar.bz2
gentoo-0ce43d3e5afed7970373db36e8791894931730f6.zip
dev-libs/libxlsxwriter: new package, add 1.1.4
Closes: https://bugs.gentoo.org/627452 Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libxlsxwriter')
-rw-r--r--dev-libs/libxlsxwriter/Manifest1
-rw-r--r--dev-libs/libxlsxwriter/libxlsxwriter-1.1.4.ebuild46
-rw-r--r--dev-libs/libxlsxwriter/metadata.xml18
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/libxlsxwriter/Manifest b/dev-libs/libxlsxwriter/Manifest
new file mode 100644
index 000000000000..34b0177a746b
--- /dev/null
+++ b/dev-libs/libxlsxwriter/Manifest
@@ -0,0 +1 @@
+DIST libxlsxwriter-1.1.4.tar.gz 20442200 BLAKE2B 38308dd8e954820b6debf15bc884effd583c0e0fa1667ed4451085ff8cf1bf4101807110873a501617785763886c107c19ab30c16390b5fb608f52b2736465be SHA512 fad36f7882fcb21b87e13cf603022cfad3f14e6f955a06e2771712facd0fe12f83f4d1655dc1a744724bda1ac83af7e7bf1393457c5507d8983f63002ab294b5
diff --git a/dev-libs/libxlsxwriter/libxlsxwriter-1.1.4.ebuild b/dev-libs/libxlsxwriter/libxlsxwriter-1.1.4.ebuild
new file mode 100644
index 000000000000..c31861ee337b
--- /dev/null
+++ b/dev-libs/libxlsxwriter/libxlsxwriter-1.1.4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake plocale
+
+DESCRIPTION="Libxlsxwriter is a C library for creating Excel XLSX files"
+HOMEPAGE="https://libxlsxwriter.github.io/"
+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"
+IUSE="openssl"
+
+DEPEND="
+ sys-libs/zlib[minizip]
+ openssl? ( dev-libs/openssl:= )
+"
+RDEPEND="${DEPEND}"
+
+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
+}
diff --git a/dev-libs/libxlsxwriter/metadata.xml b/dev-libs/libxlsxwriter/metadata.xml
new file mode 100644
index 000000000000..6a9883e0d995
--- /dev/null
+++ b/dev-libs/libxlsxwriter/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>efe.izbudak@metu.edu.tr</email>
+ <name>Efe İzbudak</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> for MD5 digest</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">jmcnamara/libxlsxwriter</remote-id>
+ </upstream>
+</pkgmetadata>