Lines 4-16
Link Here
|
4 |
EAPI=8 |
4 |
EAPI=8 |
5 |
inherit flag-o-matic linux-info systemd |
5 |
inherit flag-o-matic linux-info systemd |
6 |
|
6 |
|
7 |
#Set this variable to the required external ell version |
|
|
8 |
ELL_REQ="0.61" |
9 |
|
7 |
|
10 |
if [[ ${PV} == *9999* ]]; then |
8 |
if [[ ${PV} == *9999* ]]; then |
11 |
inherit autotools git-r3 |
9 |
inherit autotools git-r3 |
12 |
IWD_EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/wireless/iwd.git" |
10 |
EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/wireless/iwd.git" |
13 |
ELL_EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git" |
|
|
14 |
else |
11 |
else |
15 |
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/network/wireless/${P}.tar.xz" |
12 |
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/network/wireless/${P}.tar.xz" |
16 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" |
Lines 29-35
Link Here
|
29 |
client? ( sys-libs/readline:0= ) |
26 |
client? ( sys-libs/readline:0= ) |
30 |
" |
27 |
" |
31 |
|
28 |
|
32 |
[[ -z "${ELL_REQ}" ]] || DEPEND+=" >=dev-libs/ell-${ELL_REQ}" |
29 |
DEPEND=">=dev-libs/ell-0.61" |
33 |
|
30 |
|
34 |
RDEPEND=" |
31 |
RDEPEND=" |
35 |
${DEPEND} |
32 |
${DEPEND} |
Lines 97-111
Link Here
|
97 |
check_extra_config |
94 |
check_extra_config |
98 |
} |
95 |
} |
99 |
|
96 |
|
100 |
src_unpack() { |
|
|
101 |
if [[ ${PV} == *9999* ]] ; then |
102 |
EGIT_REPO_URI=${IWD_EGIT_REPO_URI} git-r3_src_unpack |
103 |
EGIT_REPO_URI=${ELL_EGIT_REPO_URI} EGIT_CHECKOUT_DIR=${WORKDIR}/ell git-r3_src_unpack |
104 |
else |
105 |
default |
106 |
fi |
107 |
} |
108 |
|
109 |
src_prepare() { |
97 |
src_prepare() { |
110 |
default |
98 |
default |
111 |
if [[ ${PV} == *9999* ]] ; then |
99 |
if [[ ${PV} == *9999* ]] ; then |
Lines 127-134
Link Here
|
127 |
--with-systemd-unitdir="$(systemd_get_systemunitdir)" |
115 |
--with-systemd-unitdir="$(systemd_get_systemunitdir)" |
128 |
--with-systemd-modloaddir="${EPREFIX}/usr/lib/modules-load.d" |
116 |
--with-systemd-modloaddir="${EPREFIX}/usr/lib/modules-load.d" |
129 |
--with-systemd-networkdir="$(systemd_get_utildir)/network" |
117 |
--with-systemd-networkdir="$(systemd_get_utildir)/network" |
|
|
118 |
--enable-external-ell |
130 |
) |
119 |
) |
131 |
[[ ${PV} == *9999* ]] || myeconfargs+=(--enable-external-ell) |
|
|
132 |
econf "${myeconfargs[@]}" |
120 |
econf "${myeconfargs[@]}" |
133 |
} |
121 |
} |
134 |
|
122 |
|