diff options
Diffstat (limited to 'sys-fs/udev/udev-9999.ebuild')
-rw-r--r-- | sys-fs/udev/udev-9999.ebuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys-fs/udev/udev-9999.ebuild b/sys-fs/udev/udev-9999.ebuild index 7934423439b0..ba1551d202d3 100644 --- a/sys-fs/udev/udev-9999.ebuild +++ b/sys-fs/udev/udev-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 2003-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -9,7 +9,10 @@ if [[ ${PV} = 9999* ]]; then EGIT_REPO_URI="https://github.com/systemd/systemd.git" inherit git-r3 else - SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> systemd-${PV}.tar.gz" + MY_PV=${PV/_/-} + MY_P=systemd-${MY_PV} + S=${WORKDIR}/${MY_P} + SRC_URI="https://github.com/systemd/systemd/archive/v${MY_PV}/${MY_P}.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" fi @@ -49,9 +52,6 @@ RDEPEND="${COMMON_DEPEND} PDEPEND=">=sys-apps/hwids-20140304[udev] >=sys-fs/udev-init-scripts-26" -S=${WORKDIR}/systemd-${PV} -EGIT_CHECKOUT_DIR=${S} - pkg_setup() { if [[ ${MERGE_TYPE} != buildonly ]]; then CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~!FW_LOADER_USER_HELPER ~UNIX" @@ -80,6 +80,10 @@ src_prepare() { ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb" EOF + if [[ -d "${WORKDIR}/patches" ]]; then + eapply "${WORKDIR}/patches" + fi + local PATCHES=( "${FILESDIR}/236-uucp-group.patch" ) |