respect flags where possible
---- configure.ac
-+++ configure.ac
+--- a/configure.ac
++++ b/configure.ac
@@ -18,26 +18,6 @@
Fixes bug #552072. Thanks Helmut Jarausch.
---- src/device-info.h
-+++ src/device-info.h
+--- a/src/device-info.h
++++ b/src/device-info.h
@@ -14,6 +14,7 @@
#include <libudev.h>
#include <fcntl.h>
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-inherit eutils autotools user
+inherit autotools epatch user
DESCRIPTION="mount and unmount removable devices without a password"
HOMEPAGE="https://ignorantguru.github.com/udevil/"
src_prepare() {
# This works for 0.4.4 too, no sense copying the patch
epatch "${FILESDIR}"/${PN}-0.4.3-flags.patch
- epatch "${FILESDIR}"/${P}-stat.patch
+ epatch "${FILESDIR}"/${PN}-0.4.4-stat.patch
eautoreconf
}
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit eutils autotools user
+inherit autotools user
DESCRIPTION="mount and unmount removable devices without a password"
HOMEPAGE="https://ignorantguru.github.com/udevil/"
enewgroup plugdev
}
-src_prepare() {
+PATCHES=(
# This works for 0.4.4 too, no sense copying the patch
- epatch "${FILESDIR}"/${PN}-0.4.3-flags.patch
- epatch "${FILESDIR}"/${P}-stat.patch
- epatch "${FILESDIR}"/${P}-include-sysmacros.patch
- eapply_user
+ "${FILESDIR}"/${PN}-0.4.3-flags.patch
+ "${FILESDIR}"/${PN}-0.4.4-stat.patch
+ "${FILESDIR}"/${PN}-0.4.4-include-sysmacros.patch
+)
+
+src_prepare() {
+ default
eautoreconf
}
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit eutils autotools user
+inherit autotools user
DESCRIPTION="mount and unmount removable devices without a password"
HOMEPAGE="https://ignorantguru.github.com/udevil/"
enewgroup plugdev
}
-src_prepare() {
+PATCHES=(
# This works for 0.4.4 too, no sense copying the patch
- epatch "${FILESDIR}"/${PN}-0.4.3-flags.patch
- epatch "${FILESDIR}"/${P}-stat.patch
- epatch "${FILESDIR}"/${P}-include-sysmacros-r1.patch
- eapply_user
+ "${FILESDIR}"/${PN}-0.4.3-flags.patch
+ "${FILESDIR}"/${PN}-0.4.4-stat.patch
+ "${FILESDIR}"/${PN}-0.4.4-include-sysmacros.patch
+)
+
+src_prepare() {
+ default
eautoreconf
}