Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sys-libs/tevent/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST tevent-0.10.2.tar.gz 800731 BLAKE2B 5ea6b83378b04dbe1666432db0dbd4c0df2e6b0bf5ebcc8ec4ec9bdeb834efec75c87b2019dc78c691aba6c4f6467394101febd6010f106046a1fb8848e27405 SHA512 1da8f28898f35daab515892b880d1de601062cc3e2b2570cd62e6913df17b0195a05acb7b484c628cddc0eb8b0cde893105ede3feb32bc5764e7d25684f332ba
DIST tevent-0.16.2.tar.gz 897447 BLAKE2B d23d60f5e5478899daab248c6a2b8d9b67d19a881bf1cfec2803e4fa538f2f59333b3e28c729a1072b3ec3b528961faf63ccd60fdc92f229a73e358fdcdb080e SHA512 c644771227fd1ee9f221e8cac1be9db97043953670a29415a20f3f8933d4fa93c7421b991a4ecaac0b9b29e922d1ec2f436160f2d2eaf77c6d392f1dec212417
77 changes: 77 additions & 0 deletions sys-libs/tevent/tevent-0.16.2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3+ )
PYTHON_REQ_USE="threads(+)"
inherit waf-utils python-single-r1

DESCRIPTION="Samba tevent library"
HOMEPAGE="https://tevent.samba.org"
SRC_URI="https://www.samba.org/ftp/tevent/tevent-0.16.2.tar.gz -> tevent-0.16.2.tar.gz
"
LICENSE="LGPL-3"

SLOT="0"
KEYWORDS="*"
IUSE="elibc_glibc python"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="test"

RDEPEND="
!elibc_FreeBSD? ( dev-libs/libbsd )
>=sys-libs/talloc-2.3.1
python? (
${PYTHON_DEPS}
sys-libs/talloc[python,${PYTHON_USEDEP}]
)
"
DEPEND="${RDEPEND}
elibc_glibc? (
net-libs/libtirpc
|| (
net-libs/rpcsvc-proto
<sys-libs/glibc-2.26[rpc(+)]
)
)
"
BDEPEND="${PYTHON_DEPS}
virtual/pkgconfig
"

WAF_BINARY="${S}/buildtools/bin/waf"

pkg_setup() {
python-single-r1_pkg_setup
}

src_prepare() {
default
}

src_configure() {
export PYTHONHASHSEED=1

waf-utils_src_configure \
--bundled-libraries=NONE \
--builtin-libraries=NONE \
$(usex python '' '--disable-python')
}

src_compile() {
# need to avoid parallel building, this looks like the sanest way with waf-utils/multiprocessing eclasses
unset MAKEOPTS
waf-utils_src_compile
}

src_install() {
waf-utils_src_install

use python && python_domodule tevent.py
}

src_install_all() {
insinto /usr/include
doins tevent_internal.h
}