Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/ucon64/, games-util/ucon64/files/
Date: Thu, 25 Nov 2021 17:40:10
Message-Id: 1637861982.4fe59e92e50c3ca9486471d87b63acd6b9650eb7.ionen@gentoo
1 commit: 4fe59e92e50c3ca9486471d87b63acd6b9650eb7
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 25 17:37:41 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 25 17:39:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fe59e92
7
8 games-util/ucon64: add 2.2.2
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 games-util/ucon64/Manifest | 1 +
13 .../ucon64/files/ucon64-2.2.2-respect-flags.patch | 29 ++++++++++
14 games-util/ucon64/ucon64-2.2.2.ebuild | 63 ++++++++++++++++++++++
15 3 files changed, 93 insertions(+)
16
17 diff --git a/games-util/ucon64/Manifest b/games-util/ucon64/Manifest
18 index 190c02eda09a..1128342e97df 100644
19 --- a/games-util/ucon64/Manifest
20 +++ b/games-util/ucon64/Manifest
21 @@ -1 +1,2 @@
22 DIST ucon64-2.2.1-src.tar.gz 1476080 BLAKE2B 8f7010bde2c7306f6a76dec4ce5e31975c286801e6504bf8bc99287bd7adc4ab10331a8cab308fed83ece9e13bdb01327f6d3439eba776038dbb19eb2b72cf70 SHA512 34453399151e5ed256fdcf387b9d32a052718b264e51b99a2be251b90589337d13cd317f8d1aa7d3c8e39c8e407b22797d4608ec6d14b99c8673ec74f349f6c2
23 +DIST ucon64-2.2.2-src.tar.gz 1481087 BLAKE2B 3ae3d09f4ea186d4e64d712bf0e3036ca79b7e87ba9a9b165fdcee2f0e24ac1dd00a5da9653a404850e8bc1f85cd6b26e0d03615e60090709d9b792c3db07e8e SHA512 21e403e6de64c0a76de32032fbafea75f53a96b88b343220cdc8d62ef3bdec252764cacb9bbf98a910477ba451bc05aee8c9f91024b9e5d3149f7ead20d426b5
24
25 diff --git a/games-util/ucon64/files/ucon64-2.2.2-respect-flags.patch b/games-util/ucon64/files/ucon64-2.2.2-respect-flags.patch
26 new file mode 100644
27 index 000000000000..9e772fe6c76a
28 --- /dev/null
29 +++ b/games-util/ucon64/files/ucon64-2.2.2-respect-flags.patch
30 @@ -0,0 +1,29 @@
31 +--- a/Makefile
32 ++++ b/Makefile
33 +@@ -13,3 +13,3 @@
34 +
35 +-CFLAGS+=-I. -Wall -W -Wno-implicit-fallthrough -O3 -fsigned-char
36 ++CFLAGS+=-I. -Wall -W -Wno-implicit-fallthrough -fsigned-char
37 + ifneq ($(findstring clang,$(CC)),clang)
38 +@@ -21,3 +21,2 @@
39 + # ld: warning: option -s is obsolete and being ignored
40 +-LDFLAGS+=-s
41 + endif
42 +--- a/backup/libcd64/Makefile
43 ++++ b/backup/libcd64/Makefile
44 +@@ -1,3 +1,2 @@
45 + ifeq ($(CC),cc)
46 +-CC=gcc
47 + endif
48 +@@ -12,5 +11,3 @@
49 + else
50 +-CFLAGS+=-O3 -funroll-loops
51 + ifneq ($(findstring clang,$(CC)),clang)
52 +-CFLAGS+=-fexpensive-optimizations
53 + endif
54 +--- a/libdiscmage/Makefile.in
55 ++++ b/libdiscmage/Makefile.in
56 +@@ -37,3 +37,2 @@
57 + # /usr/bin/libtool: -static not specified, -s invalid
58 +-LDFLAGS+=-s
59 + endif
60
61 diff --git a/games-util/ucon64/ucon64-2.2.2.ebuild b/games-util/ucon64/ucon64-2.2.2.ebuild
62 new file mode 100644
63 index 000000000000..617f85487c0d
64 --- /dev/null
65 +++ b/games-util/ucon64/ucon64-2.2.2.ebuild
66 @@ -0,0 +1,63 @@
67 +# Copyright 1999-2021 Gentoo Authors
68 +# Distributed under the terms of the GNU General Public License v2
69 +
70 +EAPI=8
71 +
72 +inherit toolchain-funcs
73 +
74 +DESCRIPTION="The backup tool and wonderful emulator's Swiss Army knife program"
75 +HOMEPAGE="http://ucon64.sourceforge.net/"
76 +SRC_URI="mirror://sourceforge/ucon64/${P}-src.tar.gz"
77 +S="${WORKDIR}/${P}-src/src"
78 +
79 +LICENSE="GPL-2+ LGPL-2.1+"
80 +SLOT="0"
81 +KEYWORDS="~amd64 ~x86"
82 +IUSE="debug usb zlib"
83 +
84 +RDEPEND="
85 + usb? ( virtual/libusb:0 )
86 + zlib? ( sys-libs/zlib:= )"
87 +DEPEND="${RDEPEND}"
88 +
89 +PATCHES=(
90 + "${FILESDIR}"/${P}-respect-flags.patch
91 +)
92 +
93 +src_prepare() {
94 + default
95 +
96 + sed "/discmage.so/s|.* \"|\"${EPREFIX}/usr/$(get_libdir)/${PN}/|" \
97 + -i ucon64_misc.c || die
98 +}
99 +
100 +src_configure() {
101 + local econfargs=(
102 + $(use_enable debug)
103 + $(use_with usb libusb)
104 + $(use_with zlib)
105 + --enable-ppdev
106 + --with-libcd64
107 + --with-libdiscmage
108 + )
109 + econf "${econfargs[@]}"
110 +
111 + tc-export AR CC LD
112 +}
113 +
114 +src_install() {
115 + dobin ucon64
116 +
117 + exeinto /usr/$(get_libdir)/${PN}
118 + doexe libdiscmage/discmage.so
119 +
120 + docinto html
121 + dodoc -r ../images ../{changes,developers,faq,hardware,readme}.html
122 +}
123 +
124 +pkg_postinst() {
125 + if [[ ! ${REPLACING_VERSIONS} ]]; then
126 + elog "Be sure to check ~/.ucon64rc for some options after"
127 + elog "you've run uCON64 for the first time."
128 + fi
129 +}