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/ueagle-atm/
Date: Fri, 14 Apr 2017 11:09:46
Message-Id: 1492168155.c893801e171932299e41b6bfc83d9fb179a6ce15.pinkbyte@gentoo
1 commit: c893801e171932299e41b6bfc83d9fb179a6ce15
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 14 11:09:15 2017 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 14 11:09:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c893801e
7
8 net-dialup/ueagle-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/ueagle-atm/ueagle-atm-1.1-r3.ebuild | 30 ++++++--------------------
13 1 file changed, 6 insertions(+), 24 deletions(-)
14
15 diff --git a/net-dialup/ueagle-atm/ueagle-atm-1.1-r3.ebuild b/net-dialup/ueagle-atm/ueagle-atm-1.1-r3.ebuild
16 index bf986b51ab3..6143b28417a 100644
17 --- a/net-dialup/ueagle-atm/ueagle-atm-1.1-r3.ebuild
18 +++ b/net-dialup/ueagle-atm/ueagle-atm-1.1-r3.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/ueagle-data-src-${PV}.tar.gz"
30 LICENSE="BSD GPL-2"
31 SLOT="0"
32 KEYWORDS="~amd64 x86"
33 -IUSE=""
34
35 DEPEND=""
36 RDEPEND="net-dialup/ppp
37 @@ -20,23 +19,6 @@ RDEPEND="net-dialup/ppp
38
39 S="${WORKDIR}/ueagle-data-src-${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_compile() {
59 emake generate
60 }
61 @@ -44,10 +26,10 @@ src_compile() {
62 src_install() {
63 # Copy to the firmware directory
64 insinto /lib/firmware/ueagle-atm
65 - doins build/* || die "doins firmware failed"
66 + doins build/*
67
68 # Documentation necessary to complete the setup
69 - dodoc "${FILESDIR}/README" || die "dodoc failed"
70 + dodoc "${FILESDIR}/README"
71 }
72
73 pkg_postinst() {
74 @@ -61,13 +43,13 @@ pkg_postinst() {
75 echo
76
77 # Check user-space for PPPoA support
78 - if ! built_with_use net-dialup/ppp atm ; then
79 + if ! has_version net-dialup/ppp[atm] ; then
80 ewarn "Run the following command if connecting via PPPoA protocol:"
81 ewarn " euse -E atm && emerge net-dialup/ppp"
82 echo
83 fi
84 # Check user-space for PPPoE support
85 - if ! has_version >=net-dialup/linux-atm-2.5.0 ; then
86 + if ! has_version net-dialup/linux-atm ; then
87 ewarn "Run the following command if connecting via PPPoE protocol:"
88 ewarn " emerge net-dialup/linux-atm"
89 echo