1 # Copyright 2017-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 if [[ ${PV} == 9999 ]]; then
10 EGIT_REPO_URI="https://github.com/bus1/dbus-broker.git"
13 SRC_URI="https://github.com/bus1/dbus-broker/archive/v${PV}/${P}.tar.gz"
14 declare -Ag SUBPROJECTS=(
15 [c-dvar]=9e1a5b4363aaece7169df2b2852944a1434b2df5
16 [c-ini]=43f379396a320940d0661c15780f618f84d29348
17 [c-list]=b1cd4dbf967d73b24dfe6cc56aaf3fdd668692e3
18 [c-rbtree]=fa97402c3faa18c2ddd8325eb66e2bd58a224477
19 [c-shquote]=1d171fe52c23944c3c0be1f2603595f2488a9ff8
20 [c-stdaux]=d6ecce8afbb7703e1469cc5e7a59a8bd32e2d4a4
21 [c-utf8]=1f7e2ff1164bd2161cb480532b2b34cb2074bde1
23 for sp in "${!SUBPROJECTS[@]}"; do
24 commit=${SUBPROJECTS[${sp}]}
25 SRC_URI+=" https://github.com/c-util/${sp}/archive/${commit}/${sp}-${commit}.tar.gz"
30 DESCRIPTION="Linux D-Bus Message Broker"
31 HOMEPAGE="https://github.com/bus1/dbus-broker/wiki"
35 IUSE="audit doc +launcher selinux"
39 >=sys-process/audit-2.7
40 >=sys-libs/libcap-ng-0.6
44 >=sys-apps/systemd-230:0=
46 selinux? ( sys-libs/libselinux )
49 launcher? ( sys-apps/dbus )"
51 doc? ( dev-python/docutils )
56 if [[ ${PV} != 9999 ]]; then
58 for sp in "${!SUBPROJECTS[@]}"; do
59 commit=${SUBPROJECTS[${sp}]}
60 rmdir "subprojects/${sp}" || die
61 mv "${WORKDIR}/${sp}-${commit}" "subprojects/${sp}" || die
69 -Daudit=$(usex audit true false)
70 -Ddocs=$(usex doc true false)
71 -Dlauncher=$(usex launcher true false)
72 -Dselinux=$(usex selinux true false)