Diff udev-242 with a udev-9999

/usr/portage/sys-fs/udev/udev-9999.ebuild 2019-10-27 17:39:00.000000000 +0300
3 3

  
4 4
EAPI=6
5 5

  
6
inherit bash-completion-r1 linux-info meson ninja-utils multilib-minimal toolchain-funcs udev
6
inherit bash-completion-r1 linux-info meson ninja-utils multilib-minimal toolchain-funcs udev usr-ldscript
7 7

  
8 8
if [[ ${PV} = 9999* ]]; then
9 9
	EGIT_REPO_URI="https://github.com/systemd/systemd.git"
......
13 13
	MY_P=systemd-${MY_PV}
14 14
	S=${WORKDIR}/${MY_P}
15 15
	SRC_URI="https://github.com/systemd/systemd/archive/v${MY_PV}/${MY_P}.tar.gz"
16
	KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
16
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
17 17
fi
18 18

  
19 19
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
......
21 21

  
22 22
LICENSE="LGPL-2.1 MIT GPL-2"
23 23
SLOT="0"
24
IUSE="acl +kmod selinux"
24
IUSE="acl +kmod selinux static-libs"
25 25

  
26 26
RESTRICT="test"
27 27

  
......
97 97
	fi
98 98

  
99 99
	local PATCHES=(
100
		"${FILESDIR}"/242-gcc-9.patch
101 100
	)
102 101

  
103 102
	default
......
119 118
		-Dselinux=$(meson_multilib_native_use selinux)
120 119
		-Dlink-udev-shared=false
121 120
		-Dsplit-usr=true
121
		-Drootlibdir="${EPREFIX}/usr/$(get_libdir)"
122
		-Dstatic-libudev=$(usex static-libs true false)
122 123

  
123 124
		# Prevent automagic deps
124 125
		-Dgcrypt=false
......
146 147
	local targets=(
147 148
		src/udev/${libudev}
148 149
	)
150
	if use static-libs; then
151
		targets+=( src/udev/libudev.a )
152
	fi
149 153
	if multilib_is_native_abi; then
150 154
		targets+=(
151 155
			systemd-udevd
......
169 173
multilib_src_install() {
170 174
	local libudev=$(readlink src/udev/libudev.so.1)
171 175

  
172
	into /
173 176
	dolib.so src/udev/{${libudev},libudev.so.1,libudev.so}
177
	gen_usr_ldscript -a udev
178
	use static-libs && dolib.a src/udev/libudev.a
174 179

  
175 180
	insinto "/usr/$(get_libdir)/pkgconfig"
176 181
	doins src/libudev/libudev.pc
......
185 190
		exeinto /lib/udev
186 191
		doexe src/udev/{ata_id,cdrom_id,mtd_probe,scsi_id,v4l_id}
187 192

  
188
		rm rules/99-systemd.rules || die
193
		rm rules.d/99-systemd.rules || die
189 194
		insinto /lib/udev/rules.d
190
		doins rules/*.rules
195
		doins rules.d/*.rules
191 196

  
192 197
		insinto /usr/share/pkgconfig
193 198
		doins src/udev/udev.pc
......
211 216
	# see src_prepare() for content of 40-gentoo.rules
212 217
	insinto /lib/udev/rules.d
213 218
	doins "${T}"/40-gentoo.rules
214
	doins "${S}"/rules/*.rules
219
	doins "${S}"/rules.d/*.rules
215 220

  
216 221
	dobashcomp shell-completion/bash/udevadm
217 222

  
Thank you!