mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-26 08:40:57 +02:00
bluepy: cleanup
This commit is contained in:
parent
48435b2c7b
commit
606e829e23
2 changed files with 43 additions and 43 deletions
|
|
@ -1,43 +0,0 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi fcaps
|
||||
|
||||
DESCRIPTION="Python interface to Bluetooth LE on Linux"
|
||||
HOMEPAGE="https://github.com/IanHarvey/bluepy"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/glib:2"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
#set EPYTHON variable for python_get_sitedir
|
||||
python_setup
|
||||
}
|
||||
|
||||
#FIXME:
|
||||
#.[31;01mQA Notice: Files built without respecting LDFLAGS have been detected.[0m
|
||||
# Please include the following list of files in your report:
|
||||
#/usr/lib/python3.12/site-packages/bluepy/bluepy-helper
|
||||
|
||||
|
||||
#FILECAPS=( cap_net_raw ${python_get_sitedir}/${PN}/bluepy-helper --
|
||||
#cap_net_admin ${python_get_sitedir}/${PN}/bluepy-helper )
|
||||
# or
|
||||
pkg_postinst() {
|
||||
#fcaps 'cap_net_raw,cap_net_admin+eip' ${python_get_sitedir}/${PN}/bluepy-helper
|
||||
einfo "=========", ${python_get_sitedir}/${PN}/bluepy-helper
|
||||
elog "test ===="
|
||||
fcaps cap_net_raw ${python_get_sitedir}/${PN}/bluepy-helper
|
||||
fcaps cap_net_admin+eip ${python_get_sitedir}/${PN}/bluepy-helper
|
||||
# rm ${python_get_sitedir}/${PN}/{bluez-src.tgz,bluepy-helper.c,Makefile,version.h}
|
||||
}
|
||||
43
dev-python/bluepy/bluepy-1.3.0-r2.ebuild
Normal file
43
dev-python/bluepy/bluepy-1.3.0-r2.ebuild
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi fcaps
|
||||
|
||||
DESCRIPTION="Python interface to Bluetooth LE on Linux"
|
||||
HOMEPAGE="https://github.com/IanHarvey/bluepy"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/glib:2"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare(){
|
||||
sed -i 's|description-file|description_file|' setup.cfg || die "failed to sed setup.cfg"
|
||||
sed -i 's|$(CFLAGS) $(CPPFLAGS)|$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)|' bluepy/Makefile || die "failed to sed Makefile"
|
||||
#compile bluepy-helper using python_compile() later. Or not
|
||||
#sed -i '/pre_install()$/d' setup.py || die "failed to sed setup.py"
|
||||
distutils-r1_src_prepare
|
||||
# eapply_user
|
||||
}
|
||||
|
||||
#python_compile() {
|
||||
# pushd bluepy > /dev/null
|
||||
#FIXME: broken Makefile, do not untar multiple times
|
||||
# emake -j1
|
||||
# popd > /dev/null
|
||||
# distutils-r1_python_compile
|
||||
#}
|
||||
|
||||
pkg_postinst() {
|
||||
python_setup
|
||||
fcaps cap_net_raw,cap_net_admin+eip $(python_get_sitedir)/bluepy/bluepy-helper
|
||||
rm $(python_get_sitedir)/${PN}/{bluez-src.tgz,bluepy-helper.c,Makefile,version.h}
|
||||
}
|
||||
Loading…
Reference in a new issue