Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/softgun/files/, app-emulation/softgun/
Date: Sun, 30 Aug 2020 02:26:20
Message-Id: 1598754294.281e52813fe3e1e4f657f0ea753eeae826199a30.sam@gentoo
1 commit: 281e52813fe3e1e4f657f0ea753eeae826199a30
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 30 02:24:54 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 02:24:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281e5281
7
8 app-emulation/softgun: cleanup EAPI 4
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-emulation/softgun/Manifest | 1 -
14 .../softgun/files/softgun-0.21-make.patch | 68 ----------------------
15 app-emulation/softgun/softgun-0.21.ebuild | 32 ----------
16 3 files changed, 101 deletions(-)
17
18 diff --git a/app-emulation/softgun/Manifest b/app-emulation/softgun/Manifest
19 index 3284509fa94..849e9260fef 100644
20 --- a/app-emulation/softgun/Manifest
21 +++ b/app-emulation/softgun/Manifest
22 @@ -1,2 +1 @@
23 -DIST softgun-0.21.tgz 1126433 BLAKE2B 367ef0b200efc46c9727fc5e465f8e7ba036804ef29ff782955cb4b58ade9100279a16fb3cf0d1d9321d5a5db01a6ac0a4d69cd50b700d9a7a04b1ca798fe5d8 SHA512 145c6e8407e57353212dcb7ab8193c9b5d5c7fa6271dfbe3f4637c236b07989ef61729f55850da14639dc7d7d64ad5b68c73783e634dc5d2763865977c62ca8a
24 DIST softgun-0.22.tgz 1239881 BLAKE2B 34bbb67ee0f359fd75e19ec455ccb674e613a25b7a68fa638b7b9c4c2021fbbebe1aee5a4e4184e2e5a92d4ae81fe95acd68f7c68ae3700b2284e64f5b785a30 SHA512 5c13840874b09aab6c0921d705c0ea94da87cc1a80d2fcbc9f329ade25f33bb2c8eba2fe284b4c3b41e70b8f258a45fc83caa296880bfa3e7870994de587e591
25
26 diff --git a/app-emulation/softgun/files/softgun-0.21-make.patch b/app-emulation/softgun/files/softgun-0.21-make.patch
27 deleted file mode 100644
28 index bb3ded406a0..00000000000
29 --- a/app-emulation/softgun/files/softgun-0.21-make.patch
30 +++ /dev/null
31 @@ -1,68 +0,0 @@
32 ---- softgun-0.21/config.mk
33 -+++ softgun-0.21/config.mk
34 -@@ -9,7 +9,7 @@ bindir=$(prefix)/bin
35 - libdir=$(prefix)/lib/softgun/
36 -
37 - #CFLAGS=-Wall -pg -O1 -g
38 --CFLAGS=-Wall -O9 -g -fomit-frame-pointer -fno-strict-overflow -Wstrict-overflow=3 -Wno-unused-but-set-variable
39 -+CFLAGS+=-fno-strict-overflow -Wstrict-overflow=3 -Wno-unused-but-set-variable
40 - DEFS=-D_GNU_SOURCE
41 - INCLUDES:=-I$(top_srcdir) -I.
42 -
43 -@@ -19,13 +19,13 @@
44 - SHAREDLDFLAGS=-nostdlib -shared
45 - CYGWIN=$(findstring CYGWIN,$(shell uname))
46 - ifeq ($(shell uname),Linux)
47 --LDFLAGS=-lpthread -lrt -lm -lz -lasound
48 -+LDLIBS=-lpthread -ldl -lrt -lm -lz -lasound
49 - else
50 - ifeq ($(shell uname),FreeBSD)
51 -- LDFLAGS=-lpthread -lm -lz -lSDL
52 -+ LDLIBS=-lpthread -lm -lz -lSDL
53 - else
54 - ifeq ($(CYGWIN),CYGWIN)
55 -- LDFLAGS=-lpthread -lrt -lm -lz
56 -+ LDLIBS=-lpthread -lrt -lm -lz
57 - else
58 - $(error "Unknown architecture $(shell uname)")
59 - endif
60 ---- softgun-0.21/Makefile
61 -+++ softgun-0.21/Makefile
62 -@@ -116,7 +116,7 @@
63 -
64 -
65 - softgun: $(OBJS)
66 -- $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
67 -+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LDLIBS)
68 -
69 - boards/libboards.a:
70 - $(MAKE) -C boards libboards.a
71 ---- softgun-0.21/printer/module.mk
72 -+++ softgun-0.21/printer/module.mk
73 -@@ -5,5 +5,5 @@
74 - INSTALL_BINS += pcl3gui2png
75 -
76 - pcl3gui2png: $(PRINTER_OBJS) printer/pcl3gui2png.c
77 -- $(CC) -o $@ $(PRINTER_OBJS) printer/pcl3gui2png.c
78 -+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^
79 -
80 ---- softgun-0.21/tools/Makefile
81 -+++ softgun-0.21/tools/Makefile
82 -@@ -2,7 +2,7 @@ include ../config.mk
83 -
84 - ifeq ($(shell uname),Linux)
85 - sg_tunctl: tunctl.c
86 -- $(CC) $(CFLAGS) tunctl.c -o sg_tunctl
87 -+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^
88 -
89 - install:
90 - install -m 0755 sg_tunctl $(bindir)
91 -@@ -14,7 +14,7 @@ install:
92 - endif
93 -
94 - to_c_array: to_c_array.c
95 -- $(CC) $(CFLAGS) to_c_array.c -o to_c_array
96 -+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^
97 -
98 -
99 - clean:
100
101 diff --git a/app-emulation/softgun/softgun-0.21.ebuild b/app-emulation/softgun/softgun-0.21.ebuild
102 deleted file mode 100644
103 index ceb15acaf31..00000000000
104 --- a/app-emulation/softgun/softgun-0.21.ebuild
105 +++ /dev/null
106 @@ -1,32 +0,0 @@
107 -# Copyright 1999-2013 Gentoo Foundation
108 -# Distributed under the terms of the GNU General Public License v2
109 -
110 -EAPI="4"
111 -
112 -inherit toolchain-funcs eutils
113 -
114 -DESCRIPTION="ARM software emulator"
115 -HOMEPAGE="http://softgun.sourceforge.net/"
116 -SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
117 -
118 -LICENSE="GPL-2"
119 -SLOT="0"
120 -KEYWORDS="~amd64 ~ppc ~x86"
121 -IUSE=""
122 -
123 -src_prepare() {
124 - epatch "${FILESDIR}"/${PN}-0.21-make.patch
125 - sed -i \
126 - -e "/^CFLAGS/s:-O9.*-Werror:${CFLAGS}:" \
127 - config.mk || die
128 -}
129 -
130 -src_compile() {
131 - emake CC="$(tc-getCC)"
132 -}
133 -
134 -src_install() {
135 - dodir /usr/bin
136 - emake install prefix="${D}/usr"
137 - dodoc README configs/*.sg
138 -}