mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-python/gbinder: add 1.3.1, drop 1.1.2-r2
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
DIST gbinder-1.1.2.tar.gz 22772 BLAKE2B c5b3ae434422afc761e9e9d63f86ab9c89b6b2b96b98f7d8cde185de5c2349a7a42ac2a9355fabc0c412d1eb580c7d305056d2546dd148b558c9154c76127c41 SHA512 6f076a5cb265eed193d2ac2623921e76ced923230ca2131460efea941182f26b770d657f5155f6a29fa54a314f6dc62a8d5b96d14ee90a359389e60318a38b71
|
||||
DIST gbinder-1.3.0.tar.gz 25267 BLAKE2B 060d8d0c7333fa145398e521d83eef7296531631ae3b2bf585b369f6444c613b943b62b40fe93ef26145501b1897318126b39a4f722e2a5fb98e61539d9c1329 SHA512 fda25822cc6021f11204029322458abf923ac326cc4aa5b9f36920022662460b02e18e45c4765d095bd074cdbfe43023237bc09dcab21cd9524146a62e302d5c
|
||||
DIST gbinder-1.3.1.gh.tar.gz 25484 BLAKE2B 1f3d7512eb4bb88b98418c5d1f7ec9b0fb608cdd6a40b20faaa88a8e2721fb1a0fad0072d1e9f7e36086e0b345f89bd4fb1ddce14e99c5b30feec98117ea6c4a SHA512 85c78ad76cc9403b09be1fb96424f529aa0cee7a570bc5cb7a4515a4746b006998c6b32a6d59c9931846d825c99ae59e71e2e907940adc3ae13415d6655d5f00
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
DISTUTILS_USE_PEP517="setuptools"
|
||||
DISTUTILS_EXT=1
|
||||
@@ -14,20 +14,20 @@ 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"
|
||||
SRC_URI="https://github.com/waydroid/gbinder-python/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/erfanoabdi/gbinder-python.git"
|
||||
EGIT_REPO_URI="https://github.com/waydroid/gbinder-python.git"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Python bindings for dev-libs/gbinder"
|
||||
HOMEPAGE="https://github.com/erfanoabdi/gbinder-python"
|
||||
HOMEPAGE="https://github.com/waydroid/gbinder-python"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/gbinder
|
||||
>=dev-libs/gbinder-1.1.40
|
||||
dev-libs/libglibutil
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
@@ -36,10 +36,4 @@ BDEPEND="
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/gbinder-1.1.1-setuptools.patch
|
||||
)
|
||||
|
||||
python_configure_all() {
|
||||
DISTUTILS_ARGS=( --cython )
|
||||
}
|
||||
distutils_enable_tests import-check
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
DISTUTILS_USE_PEP517="setuptools"
|
||||
DISTUTILS_EXT=1
|
||||
@@ -14,20 +14,20 @@ 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"
|
||||
SRC_URI="https://github.com/waydroid/gbinder-python/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/erfanoabdi/gbinder-python.git"
|
||||
EGIT_REPO_URI="https://github.com/waydroid/gbinder-python.git"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Python bindings for dev-libs/gbinder"
|
||||
HOMEPAGE="https://github.com/erfanoabdi/gbinder-python"
|
||||
HOMEPAGE="https://github.com/waydroid/gbinder-python"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/gbinder
|
||||
>=dev-libs/gbinder-1.1.40
|
||||
dev-libs/libglibutil
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
@@ -35,3 +35,5 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests import-check
|
||||
|
||||
@@ -6,31 +6,7 @@
|
||||
<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>
|
||||
<remote-id type="github">waydroid/gbinder-python</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user