1 |
commit: 1c88feea94d12bcc94c4ace29a871b38875ed5d1 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 11 17:16:56 2020 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 11 17:17:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c88feea |
7 |
|
8 |
app-misc/linux-logo: 6.0 bump |
9 |
|
10 |
Almost 10 years after previous release |
11 |
|
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
13 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
14 |
|
15 |
app-misc/linux-logo/Manifest | 1 + |
16 |
.../files/linux-logo-6.0-configure.patch | 78 ++++++++++++++++++++++ |
17 |
app-misc/linux-logo/linux-logo-6.0.ebuild | 76 +++++++++++++++++++++ |
18 |
3 files changed, 155 insertions(+) |
19 |
|
20 |
diff --git a/app-misc/linux-logo/Manifest b/app-misc/linux-logo/Manifest |
21 |
index 053a018722d..d9fe570152f 100644 |
22 |
--- a/app-misc/linux-logo/Manifest |
23 |
+++ b/app-misc/linux-logo/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST linux_logo-5.11.tar.gz 103623 BLAKE2B 5790bae07a9496a690e0ef2d6426a68365c4ab91df058a31a5bffed38b8f3caac01b80ce49d52583f77632cc5e3061a20a5530437ca3508e823eeb88eb2e94cb SHA512 3c11d59eeb1ea613eb66d3ea5ef2d7c9ef906cb12430b9350570a6a1937ec174bdd974e6227358339c3fd2e0647a5066a0bea22289c4aa9bc8b03afb0033f114 |
26 |
+DIST linux_logo-6.0.tar.gz 117486 BLAKE2B 3340b893574f0c18561b208824cd80cff19c387d981af6ca63f56e691cebd2030e058ef367d91a999fd662592582da38b21a5a31f3f8364dbd87a43bd2c2b608 SHA512 ebd7513f90e79bb21acd984c671a1d1ce8421411d2b2948b01e6e08f7c9826184f9b9d528e0cfc814df8d8015d444a09c45025c344115ac9a6c2cff5743f03ad |
27 |
|
28 |
diff --git a/app-misc/linux-logo/files/linux-logo-6.0-configure.patch b/app-misc/linux-logo/files/linux-logo-6.0-configure.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..05df945a4c5 |
31 |
--- /dev/null |
32 |
+++ b/app-misc/linux-logo/files/linux-logo-6.0-configure.patch |
33 |
@@ -0,0 +1,78 @@ |
34 |
+diff -Naur linux_logo-6.0.orig/configure linux_logo-6.0/configure |
35 |
+--- linux_logo-6.0.orig/configure 2020-05-08 07:37:08.000000000 +0200 |
36 |
++++ linux_logo-6.0/configure 2020-05-11 19:00:57.894062221 +0200 |
37 |
+@@ -41,31 +41,8 @@ |
38 |
+ XGETTEXT=xgettext |
39 |
+ fi |
40 |
+ |
41 |
+-which gcc |
42 |
+-GCC_MISSING=$? |
43 |
+- |
44 |
+-if [ $GCC_MISSING -eq 1 ]; then |
45 |
+- which cc |
46 |
+- CC_MISSING=$? |
47 |
+- if [ $CC_MISSING -eq 1 ]; then |
48 |
+- echo "C compiler not found!" |
49 |
+- else |
50 |
+- CC=cc |
51 |
+- fi |
52 |
+-else |
53 |
+- CC=gcc |
54 |
+-fi |
55 |
+- |
56 |
+ LIBSYSINFO=libsysinfo-0.3.0 |
57 |
+ |
58 |
+-LDFLAGS="" |
59 |
+- |
60 |
+-if [ $CC = gcc ]; then |
61 |
+- CFLAGS="-Wall -O2" |
62 |
+-else |
63 |
+- CFLAGS="-O2" |
64 |
+-fi |
65 |
+- |
66 |
+ $CROSS$CC $CFLAGS -c intl_test.c |
67 |
+ INTL_MISSING=$? |
68 |
+ |
69 |
+diff -Naur linux_logo-6.0.orig/libsysinfo-0.3.0/configure linux_logo-6.0/libsysinfo-0.3.0/configure |
70 |
+--- linux_logo-6.0.orig/libsysinfo-0.3.0/configure 2020-05-08 07:37:08.000000000 +0200 |
71 |
++++ linux_logo-6.0/libsysinfo-0.3.0/configure 2020-05-11 19:01:09.551071479 +0200 |
72 |
+@@ -15,39 +15,6 @@ |
73 |
+ PREFIX=/usr/local |
74 |
+ INSTALL=`which install` |
75 |
+ |
76 |
+-which gcc |
77 |
+-GCC_MISSING=$? |
78 |
+- |
79 |
+-if [ $GCC_MISSING -eq 1 ]; then |
80 |
+- which cc |
81 |
+- CC_MISSING=$? |
82 |
+- if [ $CC_MISSING -eq 1 ]; then |
83 |
+- echo "C compiler not found!" |
84 |
+- else |
85 |
+- CC=cc |
86 |
+- fi |
87 |
+-else |
88 |
+- CC=gcc |
89 |
+-fi |
90 |
+- |
91 |
+-which ar |
92 |
+-AR_MISSING=$? |
93 |
+- |
94 |
+-if [ $AR_MISSING -eq 0 ]; then |
95 |
+- AR=ar |
96 |
+-fi |
97 |
+- |
98 |
+- |
99 |
+-if [ $OS = SunOS ]; then |
100 |
+- AR=/usr/ccs/bin/ar |
101 |
+-fi |
102 |
+- |
103 |
+-if [ $CC = gcc ]; then |
104 |
+- CFLAGS="-Wall -O2" |
105 |
+-else |
106 |
+- CFLAGS="-O2" |
107 |
+-fi |
108 |
+- |
109 |
+ LIBSYSINFO_INCLUDE="-I.." |
110 |
+ LFLAGS="" |
111 |
+ |
112 |
|
113 |
diff --git a/app-misc/linux-logo/linux-logo-6.0.ebuild b/app-misc/linux-logo/linux-logo-6.0.ebuild |
114 |
new file mode 100644 |
115 |
index 00000000000..5d00ccd57c2 |
116 |
--- /dev/null |
117 |
+++ b/app-misc/linux-logo/linux-logo-6.0.ebuild |
118 |
@@ -0,0 +1,76 @@ |
119 |
+# Copyright 1999-2020 Gentoo Authors |
120 |
+# Distributed under the terms of the GNU General Public License v2 |
121 |
+ |
122 |
+EAPI=7 |
123 |
+inherit toolchain-funcs systemd |
124 |
+ |
125 |
+MY_P=${PN/-/_}-${PV} |
126 |
+DESCRIPTION="A utility that displays an ANSI/ASCII logo and some system information" |
127 |
+HOMEPAGE="http://www.deater.net/weave/vmwprod/linux_logo/" |
128 |
+SRC_URI="http://www.deater.net/weave/vmwprod/linux_logo/${MY_P}.tar.gz" |
129 |
+ |
130 |
+LICENSE="GPL-2" |
131 |
+SLOT="0" |
132 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" |
133 |
+IUSE="nls" |
134 |
+ |
135 |
+RDEPEND="nls? ( virtual/libintl )" |
136 |
+DEPEND="${RDEPEND}" |
137 |
+BDEPEND="nls? ( sys-devel/gettext )" |
138 |
+ |
139 |
+PATCHES=( |
140 |
+ "${FILESDIR}"/"${P}"-configure.patch |
141 |
+) |
142 |
+ |
143 |
+DOCS=( BUGS README README.CUSTOM_LOGOS TODO USAGE LINUX_LOGO.FAQ ) |
144 |
+ |
145 |
+S=${WORKDIR}/${MY_P} |
146 |
+ |
147 |
+src_prepare() { |
148 |
+ cp "${FILESDIR}"/logo-config "${S}/logo_config" || die |
149 |
+ cp "${FILESDIR}"/linux_logo_creator "${S}/" || die |
150 |
+ cp "${FILESDIR}"/linux-logo.service "${S}/" || die |
151 |
+ cp "${FILESDIR}"/gentoo-*.logo "${S}"/logos/ || die |
152 |
+ |
153 |
+ sed -e 's#=$(PREFIX)#=$(DESTDIR)$(PREFIX)#' -i po/Makefile || die |
154 |
+ default |
155 |
+} |
156 |
+ |
157 |
+src_configure() { |
158 |
+ ARCH="" CC="$(tc-getCC)" AR="$(tc-getAR)" LDFLAGS="${LDFLAGS}" DESTDIR="${D}" \ |
159 |
+ ./configure --prefix=/usr || die |
160 |
+} |
161 |
+ |
162 |
+src_install() { |
163 |
+ default |
164 |
+ |
165 |
+ dobin "${FILESDIR}"/linux_logo_creator |
166 |
+ newinitd "${FILESDIR}"/${PN}.init.d ${PN} |
167 |
+ newconfd "${FILESDIR}"/${PN}-5.11.conf ${PN} |
168 |
+ |
169 |
+ # systemd support |
170 |
+ systemd_newunit "${FILESDIR}/linux-logo.service" "linux-logo.service" |
171 |
+} |
172 |
+ |
173 |
+pkg_postinst() { |
174 |
+ echo |
175 |
+ elog "Linux_logo ebuild for Gentoo comes with two Gentoo logos." |
176 |
+ elog "" |
177 |
+ elog "To display the first Gentoo logo type: linux_logo -L gentoo" |
178 |
+ elog "To display the second Gentoo logo type: linux_logo -L gentoo-alt" |
179 |
+ elog "To display all the logos available type: linux_logo -L list." |
180 |
+ elog "" |
181 |
+ elog "To start linux_logo on boot, please type:" |
182 |
+ elog " rc-update add linux-logo default" |
183 |
+ elog "or for systemd" |
184 |
+ elog " systemctl enable linux-logo.service" |
185 |
+ elog "which uses the settings found in" |
186 |
+ elog " /etc/conf.d/linux-logo" |
187 |
+ echo |
188 |
+} |
189 |
+ |
190 |
+pkg_prerm() { |
191 |
+ # Restore issue files |
192 |
+ mv /etc/issue.linux-logo.backup /etc/issue 2> /dev/null |
193 |
+ mv /etc/issue.net.linux-logo.backup /etc/issue.net 2> /dev/null |
194 |
+} |