WIP: LibreTranslate-1.3.4.ebuild #6
22
app-accessibility/LibreTranslate/LibreTranslate-1.3.4.ebuild
Normal file
22
app-accessibility/LibreTranslate/LibreTranslate-1.3.4.ebuild
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
PYTHON_COMPAT=(python3_{8..11})
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Free and Open Source Machine Translation API"
|
||||||
|
HOMEPAGE="https://libretranslate.com/
|
||||||
|
https://github.com/LibreTranslate/LibreTranslate"
|
||||||
|
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="AGPL-3.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-python/flask-2.2.2[${PYTHON_USEDEP}]
|
||||||
|
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND=""
|
26
dev-python/argostranslate/argostranslate-1.7.0.ebuild
Normal file
26
dev-python/argostranslate/argostranslate-1.7.0.ebuild
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Open-source neural machine translation library"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/argostranslate/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND=""
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
26
dev-python/ctranslate2/ctranslate2-2.24.0.ebuild
Normal file
26
dev-python/ctranslate2/ctranslate2-2.24.0.ebuild
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION=""
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/ctranslate2/
|
||||||
|
"
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND=""
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
|
@ -39,6 +39,8 @@ src_prepare() {
|
||||||
default
|
default
|
||||||
# Don't strip CFLAGS
|
# Don't strip CFLAGS
|
||||||
sed -i 's/fort_CFLAGS =/fort_CFLAGS = ${CFLAGS} /' src/Makefile.am || die
|
sed -i 's/fort_CFLAGS =/fort_CFLAGS = ${CFLAGS} /' src/Makefile.am || die
|
||||||
|
# Don’t compile debug by default
|
||||||
|
sed -i '/fort_CFLAGS/ s/ -g / /' src/Makefile.am || die
|
||||||
# Don't test network
|
# Don't test network
|
||||||
sed -i '/http/d' test/Makefile.am || die
|
sed -i '/http/d' test/Makefile.am || die
|
||||||
eautoreconf
|
eautoreconf
|
||||||
|
|
Loading…
Reference in a new issue