1 |
commit: 27557e1444ff3696e88780eafbc9df8b3cc557b7 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 17 22:37:44 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 17 22:37:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27557e14 |
7 |
|
8 |
media-sound/setmixer: Port to EAPI 7 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/697272 |
11 |
Package-Manager: Portage-2.3.77, Repoman-2.3.17 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
media-sound/setmixer/setmixer-19941227_p1.ebuild | 28 +++++++++++++----------- |
15 |
1 file changed, 15 insertions(+), 13 deletions(-) |
16 |
|
17 |
diff --git a/media-sound/setmixer/setmixer-19941227_p1.ebuild b/media-sound/setmixer/setmixer-19941227_p1.ebuild |
18 |
index 1ae45173a46..5a6817684f7 100644 |
19 |
--- a/media-sound/setmixer/setmixer-19941227_p1.ebuild |
20 |
+++ b/media-sound/setmixer/setmixer-19941227_p1.ebuild |
21 |
@@ -1,40 +1,42 @@ |
22 |
-# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
-EAPI=0 |
27 |
+EAPI=7 |
28 |
|
29 |
-inherit eutils toolchain-funcs |
30 |
+inherit toolchain-funcs |
31 |
|
32 |
MY_PV="27DEC94ds1" |
33 |
DEB_REV="1" |
34 |
|
35 |
DESCRIPTION="A commandline mixer" |
36 |
-HOMEPAGE="http://packages.debian.org/unstable/sound/setmixer" |
37 |
-SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${MY_PV}.orig.tar.gz |
38 |
+HOMEPAGE="https://packages.debian.org/unstable/sound/setmixer" |
39 |
+SRC_URI=" |
40 |
+ mirror://debian/pool/main/s/${PN}/${PN}_${MY_PV}.orig.tar.gz |
41 |
mirror://debian/pool/main/s/${PN}/${PN}_${MY_PV}-${DEB_REV}.diff.gz" |
42 |
|
43 |
LICENSE="GPL-2" |
44 |
SLOT="0" |
45 |
KEYWORDS="amd64 ~ppc sparc x86" |
46 |
-IUSE="" |
47 |
|
48 |
-S=${WORKDIR}/${PN}-${MY_PV}.orig |
49 |
+S="${WORKDIR}/${PN}-${MY_PV}.orig" |
50 |
|
51 |
-src_unpack() { |
52 |
- unpack ${A} |
53 |
- epatch "${DISTDIR}"/${PN}_${MY_PV}-${DEB_REV}.diff.gz |
54 |
-} |
55 |
+PATCHES=( "${WORKDIR}"/${PN}_${MY_PV}-${DEB_REV}.diff ) |
56 |
|
57 |
src_compile() { |
58 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \ |
59 |
- LDFLAGS="${LDFLAGS}" setmixer || die "emake failed." |
60 |
+ emake \ |
61 |
+ CC="$(tc-getCC)" \ |
62 |
+ CFLAGS="${CFLAGS}" \ |
63 |
+ LDFLAGS="${LDFLAGS}" setmixer |
64 |
} |
65 |
|
66 |
src_install() { |
67 |
dobin setmixer |
68 |
+ |
69 |
dodoc README setmixer.lsm |
70 |
doman setmixer.1 |
71 |
+ |
72 |
insinto /etc |
73 |
doins debian/setmixer.conf |
74 |
+ |
75 |
newinitd "${FILESDIR}"/setmixer.rc setmixer |
76 |
} |