Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id BAEBD2226AA for ; Tue, 15 Nov 2022 19:36:29 +0000 (UTC) Date: Tue, 15 Nov 2022 19:36:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668540987; x=1668800187; bh=2l92HhvtyEBANJ0USdfz65Zd9vTKTzSGHZtoA3oJ0w0=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Zp36Igmv2H0OPju8YBJ/oevkh3vHsT1+9jh/mZsZwe/jR1Cy5s9lMN13bHzsbbz6L wRih/6gRSAZQ0E1Q8AnZeK9DDK6YrOpGUNHfrXNegiHhiaRNxS39g+XrO3xZTYmRlb CNlSD+mTKq+HDUqKzDlDA9pqovQaeH7khAj5xgdRwg/jtyRAURIfJZtdEIG7PMTDrs wX1e1SZkLDKbH/aWMvAO417Qsjzubk5Pz1hiN/Gh6oOitbh85pMCS5V/B8f4pAaHwH se9ZxhdG7eq4jpcC6e/2+Yric90AlwEZd/HB1vJFUt1hvCm9tq9CTIRNag71nwl9LC +QUzXW3vmvpfw== To: alpine-aports@lists.alpinelinux.org From: Zsolt Vadasz Cc: Zsolt Vadasz Subject: [PATCH] testing/py3-langdetect: new aport Message-ID: <20221115213547.18997-1-zsolt_vadasz@protonmail.com> Feedback-ID: 28710920:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable https://pypi.org/project/langdetect/ Language detection library ported from Google's language-detection. --- testing/py3-langdetect/APKBUILD | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/py3-langdetect/APKBUILD diff --git a/testing/py3-langdetect/APKBUILD b/testing/py3-langdetect/APKBU= ILD new file mode 100644 index 0000000000..520755e612 --- /dev/null +++ b/testing/py3-langdetect/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Zsolt Vadasz +pkgname=3Dpy3-langdetect +_pkgname=3Dlangdetect +pkgver=3D1.0.9 +pkgrel=3D0 +pkgdesc=3D"Language detection library ported from Google's language-detect= ion." +url=3D"http://packages.python.org/pypi/langdetect" +arch=3D"noarch" +license=3D"MIT" +depends=3D" +=09python3 +=09py3-six +=09" +checkdepends=3D"python3-dev" +makedepends=3D"py3-setuptools" +source=3D"https://files.pythonhosted.org/packages/0e/72/a3add0e4eec4eb9e25= 69554f7c70f4a3c27712f40e3284d483e88094cc0e/langdetect-1.0.9.tar.gz" +builddir=3D"$srcdir/$_pkgname-$pkgver" + +build() { +=09python3 setup.py build +} + +check() { +=09python3 setup.py test +} + +package() { +=09PYTHONPATH=3D$pkgdir`python3 -c "import site; print(site.getsitepackage= s()[0])"` \ +=09python3 setup.py install \ +=09=09--prefix=3D/usr \ +=09=09--root=3D"$pkgdir" \ +=09=09--single-version-externally-managed +} + +sha512sums=3D" +7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd= 26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db langdetect-1.0.9.ta= r.gz +" --=20 2.36.3