Received: from avasout-ptp-002.plus.net (avasout-ptp-002.plus.net [84.93.230.235]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 4D332781129 for ; Thu, 24 Mar 2022 18:36:49 +0000 (UTC) Received: from alpine.my.domain ([212.159.59.85]) by smtp with ESMTP id XSK5n6DnMYWUuXSK6nYTgD; Thu, 24 Mar 2022 18:36:45 +0000 X-Clacks-Overhead: "GNU Terry Pratchett" X-CM-Score: 0.00 X-CNFS-Analysis: v=2.4 cv=XfLqcK15 c=1 sm=1 tr=0 ts=623cba3d a=WCS0tyHtJqBilYZXUjgseQ==:117 a=WCS0tyHtJqBilYZXUjgseQ==:17 a=ZpkkFur0AAAA:8 a=NEAV23lmAAAA:8 a=mP63xQkVpWR-yKDxPTEA:9 a=5FtNF28YhzYDeMx1bpRV:22 From: Gavin Henry To: alpine-aports@lists.alpinelinux.org Cc: Gavin Henry Subject: [PATCH] testing/opendht: python bindings Date: Thu, 24 Mar 2022 18:36:27 +0000 Message-Id: <20220324183626.17888-1-ghenry@sentrypeer.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfCjSdIkNwpaoBfSatnw1XPsrO0H3QW+OWRWbz4ITIjF+1NcO2iaQHFWUX1dTdGI+n+71SInf9D5n2/3Jn7BQFSlgeMHsEbl0KQLWjc0fRjeT22rHkWQR KYk2sRBCLZbklcjunHMsJXyWqoKDEl8dVjeXWcnrldW1bEOO2m6lks554ZoQoaxj5VobmjeP7ko/flzFwUSS+TU0/zi2LoZ9GKg= --- testing/opendht/APKBUILD | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/testing/opendht/APKBUILD b/testing/opendht/APKBUILD index d31f68762e..c2ba13068e 100644 --- a/testing/opendht/APKBUILD +++ b/testing/opendht/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Gavin Henry pkgname=opendht pkgver=2.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="C++14 Distributed Hash Table implementation" url="https://github.com/savoirfairelinux/opendht" arch="all" @@ -11,13 +11,17 @@ makedepends=" argon2-dev asio-dev cmake + cython gnutls-dev + jsoncpp-dev msgpack-cxx-dev nettle-dev + py3-setuptools + python3-dev readline-dev samurai " -subpackages="$pkgname-static $pkgname-libs $pkgname-dev $pkgname-doc" +subpackages="$pkgname-static py3-$pkgname:_py3 $pkgname-libs $pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/savoirfairelinux/opendht/archive/refs/tags/$pkgver.tar.gz" build() { @@ -31,6 +35,7 @@ build() { -DCMAKE_BUILD_TYPE=MinSizeRel \ -DOPENDHT_C=ON \ -DOPENDHT_TOOLS=ON \ + -DOPENDHT_PYTHON=ON \ -G Ninja \ $CMAKE_CROSSOPTS . cmake --build build @@ -50,6 +55,12 @@ libs() { amove usr/lib/libopendht-c.so } +_py3() { + pkgdesc="$pkgdesc (python bindings)" + amove usr/lib/python* + amove usr/bin/dhtcluster +} + sha512sums=" e7db51f47c5b5254d97c39d67f9b7329c70680bfe5d9f189627332a5fccb3bdf12e420d507dfd5e0fd023109ed5f32d47ccb9c52d0d4bb69cf6178e7e665205a opendht-2.4.0.tar.gz " -- 2.35.1