Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dialup/ueagle4-atm/
Date: Fri, 14 Apr 2017 11:40:19
Message-Id: 1492170010.7a1e2c4bd8f744b24763f35c66ae4e161611f29f.pinkbyte@gentoo
1 commit: 7a1e2c4bd8f744b24763f35c66ae4e161611f29f
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 14 11:39:49 2017 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 14 11:40:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a1e2c4b
7
8 net-dialup/ueagle4-atm: update ebuild - new EAPI, replace deprecated built_with_use with has_version
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11
12 net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild | 30 ++++++---------------------
13 1 file changed, 6 insertions(+), 24 deletions(-)
14
15 diff --git a/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild b/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild
16 index 868ae43a638..80b2ba00625 100644
17 --- a/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild
18 +++ b/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild
19 @@ -1,7 +1,7 @@
20 -# Copyright 1999-2012 Gentoo Foundation
21 +# Copyright 1999-2017 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI="2"
25 +EAPI=6
26
27 inherit eutils linux-info
28
29 @@ -12,7 +12,6 @@ SRC_URI="http://eagle-usb.org/ueagle-atm/non-free/ueagle4-data-${PV}.tar.gz"
30 LICENSE="Ikanos"
31 SLOT="0"
32 KEYWORDS="~amd64 ~x86"
33 -IUSE=""
34
35 DEPEND=""
36 RDEPEND="net-dialup/ppp
37 @@ -20,30 +19,13 @@ RDEPEND="net-dialup/ppp
38
39 S="${WORKDIR}/ueagle4-data-${PV}"
40
41 -pkg_setup() {
42 - linux-info_pkg_setup
43 -
44 - if kernel_is lt 2 6 16 ; then
45 - eerror "The kernel-space driver exists only in kernels >= 2.6.16."
46 - eerror "Please emerge net-dialup/eagle-usb instead or upgrade the kernel."
47 - die "Unsupported kernel version"
48 - fi
49 -
50 - if ! has_version '>=sys-apps/baselayout-1.12.0' ; then
51 - ewarn "The best way of using this driver is through the PPP net module of the"
52 - ewarn " >=sys-apps/baselayout-1.12.0"
53 - ewarn "which is also the only documented mode of using ${PN} driver."
54 - ewarn "Please install baselayout-1.12.0 or else you will be on your own!"
55 - fi
56 -}
57 -
58 src_install() {
59 # Copy to the firmware directory
60 insinto /lib/firmware/ueagle-atm
61 - doins * || die "doins firmware failed"
62 + doins *
63
64 # Documentation necessary to complete the setup
65 - dodoc "${FILESDIR}/README" || die "dodoc failed"
66 + dodoc "${FILESDIR}/README"
67 }
68
69 pkg_postinst() {
70 @@ -57,13 +39,13 @@ pkg_postinst() {
71 echo
72
73 # Check user-space for PPPoA support
74 - if ! built_with_use net-dialup/ppp atm ; then
75 + if ! has_version net-dialup/ppp[atm] ; then
76 ewarn "Run the following command if connecting via PPPoA protocol:"
77 ewarn " euse -E atm && emerge net-dialup/ppp"
78 echo
79 fi
80 # Check user-space for PPPoE support
81 - if ! has_version >=net-dialup/linux-atm-2.5.0 ; then
82 + if ! has_version net-dialup/linux-atm ; then
83 ewarn "Run the following command if connecting via PPPoE protocol:"
84 ewarn " emerge net-dialup/linux-atm"
85 echo