WIP: LibreTranslate-1.3.4.ebuild #6

Draft
alarig wants to merge 2 commits from alarig-LibreTranslate into master
4 changed files with 76 additions and 0 deletions

View 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=""

View 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

View 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

View File

@ -39,6 +39,8 @@ src_prepare() {
default
# Don't strip CFLAGS
sed -i 's/fort_CFLAGS =/fort_CFLAGS = ${CFLAGS} /' src/Makefile.am || die
# Dont compile debug by default
sed -i '/fort_CFLAGS/ s/ -g / /' src/Makefile.am || die
# Don't test network
sed -i '/http/d' test/Makefile.am || die
eautoreconf