commit: 069d3e00e21db988a3c53a8cdaf5eb9c045a635b
Author: Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Sun Dec 18 13:57:13 2022 +0000
Commit: Denis Reva <denis7774 <AT> gmail <DOT> 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 <denis7774 <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ <name>Denis Reva</name>
+ <description>rarogcmex</description>
+ </maintainer>
+ <longdescription lang="en">
+ 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.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">erfanoabdi/gbinder-python</remote-id>
+ </upstream>
+</pkgmetadata>