From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0F422158020 for ; Sun, 18 Dec 2022 13:57:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54B30E0831; Sun, 18 Dec 2022 13:57:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 359E6E0831 for ; Sun, 18 Dec 2022 13:57:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2425634158D for ; Sun, 18 Dec 2022 13:57:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5A4F7621 for ; Sun, 18 Dec 2022 13:57:26 +0000 (UTC) From: "Denis Reva" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Denis Reva" Message-ID: <1671371833.069d3e00e21db988a3c53a8cdaf5eb9c045a635b.RarogCmex@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/gbinder/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/gbinder/Manifest dev-python/gbinder/gbinder-1.1.1.ebuild dev-python/gbinder/metadata.xml X-VCS-Directories: dev-python/gbinder/ X-VCS-Committer: RarogCmex X-VCS-Committer-Name: Denis Reva X-VCS-Revision: 069d3e00e21db988a3c53a8cdaf5eb9c045a635b X-VCS-Branch: dev Date: Sun, 18 Dec 2022 13:57:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c96b5b19-9c99-4e85-9dcc-86f8dceb3e37 X-Archives-Hash: b0ac8e0ce45d8213513b0c8478f378de commit: 069d3e00e21db988a3c53a8cdaf5eb9c045a635b Author: Denis Reva gmail com> AuthorDate: Sun Dec 18 13:57:13 2022 +0000 Commit: Denis Reva gmail com> CommitDate: Sun Dec 18 13:57:13 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=069d3e00 dev-python/gbinder: Updated to new version, added missing ~x86, ~arm and ~arm64 keywords, added metadata.xml, I'm now maintainer Signed-off-by: Denis Reva gmail.com> dev-python/gbinder/Manifest | 1 + dev-python/gbinder/gbinder-1.1.1.ebuild | 36 +++++++++++++++++++++++++++++++++ dev-python/gbinder/metadata.xml | 36 +++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) diff --git a/dev-python/gbinder/Manifest b/dev-python/gbinder/Manifest index a17031d32..3bc720ddf 100644 --- a/dev-python/gbinder/Manifest +++ b/dev-python/gbinder/Manifest @@ -1 +1,2 @@ DIST gbinder-1.0.0.tar.gz 22640 BLAKE2B dbd0b07c693c803c6646fded1ea0b546d7dc40a1a5f1592601d28d63dbe5113b2bcc07314710c7ba1b47f3417b943398e720ece089ff8a68856e7b2cfda55ae1 SHA512 3b52c01c99321108a3d5c0129fb4fcf22d164e5de1e197f0e01a77e3bcbf9c4fd7ee35ce58131f545f65561c622b30f5919f4bdc995005b00a18a15c695fbf51 +DIST gbinder-1.1.1.tar.gz 24340 BLAKE2B d93d332e0c8a04c5adbf0ca2680d32a7e8d7b0ba8350f50b365966b8bce082456b3463509334831fc376ebecc0f2dd67542bd5d45c94e028d325458944a70147 SHA512 1910d6e904ac46da519064e9dc57e4059e1ea7072f2cf4b7ca0888a73701a590ff565fe9e9ca67acf94dba2a69f3138457d8b9533c2360befdd508b983f32a03 diff --git a/dev-python/gbinder/gbinder-1.1.1.ebuild b/dev-python/gbinder/gbinder-1.1.1.ebuild new file mode 100644 index 000000000..b93707756 --- /dev/null +++ b/dev-python/gbinder/gbinder-1.1.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +if [[ ${PV} != *9999* ]]; then + MY_PN="${PN}-python" + MY_P="${MY_PN}-${PV}" + S="${WORKDIR}/${MY_P}" + SRC_URI="https://github.com/erfanoabdi/gbinder-python/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/erfanoabdi/gbinder-python.git" +fi + +DESCRIPTION="Python bindings for libgbinder" +HOMEPAGE="https://github.com/erfanoabdi/gbinder-python" +LICENSE="GPL-3" +SLOT="0" + +DEPEND="dev-libs/gbinder + dev-libs/libglibutil" +RDEPEND="${DEPEND}" +BDEPEND=" + virtual/pkgconfig + dev-python/cython[${PYTHON_USEDEP}] +" + +python_compile() { + distutils-r1_python_compile --cython +} diff --git a/dev-python/gbinder/metadata.xml b/dev-python/gbinder/metadata.xml new file mode 100644 index 000000000..48efb4328 --- /dev/null +++ b/dev-python/gbinder/metadata.xml @@ -0,0 +1,36 @@ + + + + + denis7774@gmail.com + Denis Reva + rarogcmex + + + Cython extension module for gbinder + Prerequisites + libgbinder + libglibutil + pkgconf + For development, you will also need Cython: + + pip install cython + Description + There are two Cython files: cgbinder.pxd describing the C++ API of the libgbinder library, and gbinder.pyx describing classes that will be visible from Python user code. The .pyx imports .pxd to learn about C functions available to be called. + + There is also setup.py file. This file describes how to build the extension module, using distutils. In there, we specify the library to link with as libraries=['gbinder']. The gbinder stands for libgbinder.so that we previously installed. + + There are two options to build the package: + + One, use Cython's cythonize() function to generate a .c file from the .pyx one, and then compile it against the libgbinder.so library. + Two, if the .c is already provided, just compile it - no Cython required! + Development build + For development, use option 1 by providing --cython flag: + + python setup.py build_ext --inplace --cython + The result will be a .so shared library named like gbinder.cpython-38-x86_64-linux-gnu.so. build_ext means we're building a C++ extension. --inplace means to put it in the current directory. If you run python from current directory, you'll be able to import gbinder. + + + erfanoabdi/gbinder-python + +