public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: dev-libs/libchardet/files/, dev-libs/libchardet/
@ 2024-07-08 16:36 David Roman
  0 siblings, 0 replies; only message in thread
From: David Roman @ 2024-07-08 16:36 UTC (permalink / raw
  To: gentoo-commits

commit:     87b8058656ac74ab8bc87bd49ba89354ddeb3d6c
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Fri Jul  5 11:20:05 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Fri Jul  5 17:26:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=87b80586

dev-libs/libchardet: new package, add 1.0.6

Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>

 dev-libs/libchardet/Manifest                        |  1 +
 .../files/libchardet-1.0.6-pkgconfig.patch          | 10 ++++++++++
 dev-libs/libchardet/libchardet-1.0.6.ebuild         | 21 +++++++++++++++++++++
 dev-libs/libchardet/metadata.xml                    | 15 +++++++++++++++
 4 files changed, 47 insertions(+)

diff --git a/dev-libs/libchardet/Manifest b/dev-libs/libchardet/Manifest
new file mode 100644
index 000000000..6b3dd7b46
--- /dev/null
+++ b/dev-libs/libchardet/Manifest
@@ -0,0 +1 @@
+DIST libchardet-1.0.6.tar.bz2 435028 BLAKE2B 2a84aac34c15f62574ebc763f77faf97c6f5c3f99c5ec95797c45c0fc8abdf9491cb6f6153c74282843e0cd4c0ef8dcbccae7538006020c11425b9372534dbdf SHA512 f46b603d258883afd2f1e7758d48887bc507cb5040f7e9f21b43fbcc11e4ad2393b66ade7e003ac58bae0215ac5e888e0e4c04d6da695b1ef9f113551a2ea597

diff --git a/dev-libs/libchardet/files/libchardet-1.0.6-pkgconfig.patch b/dev-libs/libchardet/files/libchardet-1.0.6-pkgconfig.patch
new file mode 100644
index 000000000..33098f1e3
--- /dev/null
+++ b/dev-libs/libchardet/files/libchardet-1.0.6-pkgconfig.patch
@@ -0,0 +1,10 @@
+Don't copy CFLAGS from portage's make.conf to .pc
+
+--- a/chardet.pc.in
++++ b/chardet.pc.in
+@@ -9,4 +9,4 @@ Name: @PACKAGE_NAME@
+ Description: Mozilla's Universal Charset Detector C/C++ API
+ Version: @PACKAGE_VERSION@
+ Libs: -L${libdir} -lchardet
+-Cflags: -I${includedir}/chardet @CFLAGS@
++Cflags: -I${includedir}/chardet

diff --git a/dev-libs/libchardet/libchardet-1.0.6.ebuild b/dev-libs/libchardet/libchardet-1.0.6.ebuild
new file mode 100644
index 000000000..daeac8113
--- /dev/null
+++ b/dev-libs/libchardet/libchardet-1.0.6.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Mozilla's Universal Charset Detector C/C++ API"
+HOMEPAGE="https://github.com/Joungkyun/libchardet"
+SRC_URI="https://github.com/Joungkyun/libchardet/releases/download/${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 MPL-1.1"
+SLOT="0/0"
+KEYWORDS="~amd64"
+
+PATCHES=(
+	"${FILESDIR}/libchardet-1.0.6-pkgconfig.patch"
+)
+
+src_install() {
+	default
+	find "${ED}" -name "*.la" -delete || die
+}

diff --git a/dev-libs/libchardet/metadata.xml b/dev-libs/libchardet/metadata.xml
new file mode 100644
index 000000000..6cfbc4f4b
--- /dev/null
+++ b/dev-libs/libchardet/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>alexey+gentoo@asokolov.org</email>
+		<name>Alexey Sokolov</name>
+	</maintainer>
+	<longdescription lang="en">
+		libchardet is based on Mozilla Universal Charset Detector library and, detects the character set used to encode data.
+	</longdescription>
+	<upstream>
+		<bugs-to>https://github.com/Joungkyun/libchardet/issues</bugs-to>
+		<remote-id type="github">Joungkyun/libchardet</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-08 16:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-08 16:36 [gentoo-commits] repo/proj/guru:master commit in: dev-libs/libchardet/files/, dev-libs/libchardet/ David Roman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox