diff --git a/dev-libs/libchardet/Manifest b/dev-libs/libchardet/Manifest new file mode 100644 index 0000000000..6b3dd7b46e --- /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 0000000000..33098f1e39 --- /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 0000000000..daeac81135 --- /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 0000000000..6cfbc4f4b5 --- /dev/null +++ b/dev-libs/libchardet/metadata.xml @@ -0,0 +1,15 @@ + + + + + alexey+gentoo@asokolov.org + Alexey Sokolov + + + libchardet is based on Mozilla Universal Charset Detector library and, detects the character set used to encode data. + + + https://github.com/Joungkyun/libchardet/issues + Joungkyun/libchardet + +