mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
sci-ml/sentencepiece: drop 0.2.0-r3
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST sentencepiece-0.2.0.tar.gz 11980811 BLAKE2B adf28a66de3f6995d31c3b9be6a324614b95f20fe07ea33dd914bcd9d33d123dfee69f80ef7b2a70c3c23700534916caf57ac877e55e5c9d0d671d37372e0aed SHA512 b4214f5bfbe2a0757794c792e87e7c53fda7e65b2511b37fc757f280bf9287ba59b5d630801e17de6058f8292a3c6433211917324cb3446a212a51735402e614
|
||||
DIST sentencepiece-0.2.1.tar.gz 13485527 BLAKE2B 7ec7028e0c8a31d9805a25d90ec58f1c8202888bf52e55f43cb7e2afc3bc509269db7d1a4f3721de31a5b2b947be71996735dc08d0f29d393d725458927bc629 SHA512 012850b63b2323e16acc5dacc0a494ad3f6375425ee86274f0946032e47c088a3b307758b99d752fcf54acf76c82d7d13d0c14bbf07aa9b612c4f1fbd30cf1cf
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/CMakeLists.txt 2025-06-15 16:40:49.662335387 +0200
|
||||
+++ b/CMakeLists.txt 2025-06-15 16:41:17.826038289 +0200
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.!
|
||||
|
||||
-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
|
||||
+cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
||||
file(STRINGS "VERSION.txt" SPM_VERSION)
|
||||
message(STATUS "VERSION: ${SPM_VERSION}")
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
--- a/src/sentencepiece_processor.h 2025-03-20 21:45:30.138329183 +0100
|
||||
+++ b/src/sentencepiece_processor.h 2025-03-20 21:46:09.315859746 +0100
|
||||
@@ -15,6 +15,7 @@
|
||||
#ifndef SENTENCEPIECE_PROCESSOR_H_
|
||||
#define SENTENCEPIECE_PROCESSOR_H_
|
||||
|
||||
+#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
@@ -1,12 +0,0 @@
|
||||
--- a/python/setup.py 2025-07-04 07:49:02.451080540 +0200
|
||||
+++ b/python/setup.py 2025-07-04 07:49:50.934572275 +0200
|
||||
@@ -91,9 +91,6 @@
|
||||
# See: https://github.com/neulab/xnmt/issues/199
|
||||
if sys.platform == 'darwin':
|
||||
cflags.append('-mmacosx-version-min=10.9')
|
||||
- else:
|
||||
- cflags.append('-Wl,-strip-all')
|
||||
- libs.append('-Wl,-strip-all')
|
||||
if sys.platform == 'linux':
|
||||
libs.append('-Wl,-Bsymbolic')
|
||||
print('## cflags={}'.format(' '.join(cflags)))
|
||||
@@ -1,90 +0,0 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_EXT=1
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
inherit cmake distutils-r1 dot-a
|
||||
|
||||
DESCRIPTION="Text tokenizer for Neural Network-based text generation"
|
||||
HOMEPAGE="https://github.com/google/sentencepiece"
|
||||
SRC_URI="https://github.com/google/${PN}/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-cpp/abseil-cpp:=
|
||||
dev-libs/protobuf:=
|
||||
dev-util/google-perftools
|
||||
!sci-ml/pysentencepiece
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/darts
|
||||
"
|
||||
|
||||
DOCS=(
|
||||
README.md
|
||||
doc/api.md
|
||||
doc/experiments.md
|
||||
doc/normalization.md
|
||||
doc/options.md
|
||||
doc/special_symbols.md
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e "s:third_party/darts_clone/darts.h:darts.h:" \
|
||||
src/model_interface.h \
|
||||
src/normalizer.h \
|
||||
src/normalizer.cc \
|
||||
src/unigram_model.h \
|
||||
src/builder.cc \
|
||||
|| die
|
||||
eapply "${FILESDIR}"/${P}-gcc15.patch \
|
||||
"${FILESDIR}"/${P}-cmake.patch \
|
||||
"${FILESDIR}"/${P}-nostrip.patch
|
||||
cmake_src_prepare
|
||||
distutils-r1_src_prepare
|
||||
sed \
|
||||
-e 's|@libprotobuf_lite@|protobuf-lite|' \
|
||||
-e "s|@includedir_for_pc_file@|${S}/src|" \
|
||||
-e "s|@libdir_for_pc_file@|${BUILD_DIR}/src|" \
|
||||
${PN}.pc.in \
|
||||
> python/${PN}.pc \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
lto-guarantee-fat
|
||||
local mycmakeargs=(
|
||||
-DSPM_ABSL_PROVIDER=package
|
||||
-DSPM_PROTOBUF_PROVIDER=package
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
cd python
|
||||
PKG_CONFIG_PATH=. distutils-r1_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH=${BUILD_DIR}/src distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd python
|
||||
${EPYTHON} test/sentencepiece_test.py || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
distutils-r1_src_install
|
||||
strip-lto-bytecode
|
||||
}
|
||||
Reference in New Issue
Block a user