dev-libs/libchardet: new package, add 1.0.6

Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
This commit is contained in:
Alexey Sokolov 2024-07-05 12:20:05 +01:00
parent 429788ad79
commit 87b8058656
No known key found for this signature in database
GPG Key ID: 5AE420CC0209989E
4 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST libchardet-1.0.6.tar.bz2 435028 BLAKE2B 2a84aac34c15f62574ebc763f77faf97c6f5c3f99c5ec95797c45c0fc8abdf9491cb6f6153c74282843e0cd4c0ef8dcbccae7538006020c11425b9372534dbdf SHA512 f46b603d258883afd2f1e7758d48887bc507cb5040f7e9f21b43fbcc11e4ad2393b66ade7e003ac58bae0215ac5e888e0e4c04d6da695b1ef9f113551a2ea597

View File

@ -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

View File

@ -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
}

View File

@ -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>