diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-12-19 12:52:50 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-12-19 12:52:50 +0000 |
| commit | 81ced48f539e85b7b7d01de970edf99f1ae9ab09 (patch) | |
| tree | 529e69d0aa6be4d01cdc1edb60cfb5a630328351 /dev-python/gbinder | |
| parent | bcc6560e8797a12125f07484ee14e28eaeb7aad6 (diff) | |
| download | baldeagleos-repo-81ced48f539e85b7b7d01de970edf99f1ae9ab09.tar.gz baldeagleos-repo-81ced48f539e85b7b7d01de970edf99f1ae9ab09.tar.xz baldeagleos-repo-81ced48f539e85b7b7d01de970edf99f1ae9ab09.zip | |
Adding metadata
Diffstat (limited to 'dev-python/gbinder')
| -rw-r--r-- | dev-python/gbinder/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/gbinder/gbinder-1.1.1.ebuild | 36 | ||||
| -rw-r--r-- | dev-python/gbinder/metadata.xml | 31 |
3 files changed, 65 insertions, 3 deletions
diff --git a/dev-python/gbinder/Manifest b/dev-python/gbinder/Manifest index a17031d3241f..3bc720ddfc20 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 000000000000..ed0ec498bf97 --- /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_{7,8,9,10,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 index 8c8101bcdb2c..9033784732f9 100644 --- a/dev-python/gbinder/metadata.xml +++ b/dev-python/gbinder/metadata.xml @@ -1,10 +1,35 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="project"> - <email>core@liguros.net</email> - <name>Development</name> + <maintainer type="person"> + <email>denis7774@gmail.com</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> <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file |
