public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joe Kappus" <joe@wt.gd>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-arch/unalz/files/, app-arch/unalz/
Date: Wed, 12 Jun 2024 22:06:00 +0000 (UTC)	[thread overview]
Message-ID: <1718229906.4911a96e391a797ec1df384df1a0fdac06f7606b.joe@gentoo> (raw)

commit:     4911a96e391a797ec1df384df1a0fdac06f7606b
Author:     Joe Kappus <joe <AT> wt <DOT> gd>
AuthorDate: Wed Jun 12 22:05:06 2024 +0000
Commit:     Joe Kappus <joe <AT> wt <DOT> gd>
CommitDate: Wed Jun 12 22:05:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4911a96e

app-arch/unalz: revbump, clang build fix

Removed the register keyword, makes clang happy.

Signed-off-by: Joe Kappus <joe <AT> wt.gd>

 .../unalz/files/unalz-0.65-remove-register.patch   | 22 ++++++++++++
 app-arch/unalz/unalz-0.65-r2.ebuild                | 40 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/app-arch/unalz/files/unalz-0.65-remove-register.patch b/app-arch/unalz/files/unalz-0.65-remove-register.patch
new file mode 100644
index 000000000..e277afbf5
--- /dev/null
+++ b/app-arch/unalz/files/unalz-0.65-remove-register.patch
@@ -0,0 +1,22 @@
+diff --git a/UnAlz.cpp b/UnAlz.cpp
+index 26d6bd1..97c0ff8 100644
+--- a/UnAlz.cpp
++++ b/UnAlz.cpp
+@@ -1935,7 +1935,7 @@ void CUnAlz::SetDestCodepage(const char* szToCodepage)
+ ////////////////////////////////////////////////////////////////////////////////////////////////////
+ unsigned int CUnAlz::_strlcpy (char *dest, const char *src, unsigned int size)
+ {
+-	register unsigned int i = 0;
++	unsigned int i = 0;
+ 	if (size > 0) {
+ 	size--;
+ 	for (i=0; size > 0 && src[i] != '\0'; ++i, size--)
+@@ -1947,7 +1947,7 @@ unsigned int CUnAlz::_strlcpy (char *dest, const char *src, unsigned int size)
+ }
+ unsigned int CUnAlz::_strlcat (char *dest, const char *src, unsigned int size)
+ {
+-	register char *d = dest;
++	char *d = dest;
+ 	for (; size > 0 && *d != '\0'; size--, d++);
+ 	return (d - dest) + _strlcpy(d, src, size);
+ }

diff --git a/app-arch/unalz/unalz-0.65-r2.ebuild b/app-arch/unalz/unalz-0.65-r2.ebuild
new file mode 100644
index 000000000..7c424769c
--- /dev/null
+++ b/app-arch/unalz/unalz-0.65-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Extract ALZ archives"
+HOMEPAGE="http://kippler.com/win/unalz/"
+SRC_URI="
+	http://kippler.com/win/${PN}/${P}.tgz
+	https://git.launchpad.net/ubuntu/+source/unalz/patch/?id=b4ade05e7e6dec25fee7d57bac6a055137e332c0 -> ${PN}-0.65-use-system-zlib.patch
+	https://git.launchpad.net/ubuntu/+source/unalz/patch/?id=00932925e108f186301c5941130fc34c9a76f345 -> ${PN}-0.65-use-system-bz2.patch
+"
+S="${WORKDIR}"/${PN}
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+	app-arch/bzip2
+	sys-libs/zlib
+	virtual/libiconv
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-buildfix-wrong-data-type.patch
+	"${DISTDIR}"/${P}-use-system-zlib.patch
+	"${DISTDIR}"/${P}-use-system-bz2.patch
+	"${FILESDIR}"/${P}-respect-compiler-flags.patch
+	"${FILESDIR}"/${P}-remove-register.patch
+)
+
+src_compile() {
+	emake linux-utf8
+}
+
+src_install() {
+	dobin "${S}"/unalz
+}


                 reply	other threads:[~2024-06-12 22:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1718229906.4911a96e391a797ec1df384df1a0fdac06f7606b.joe@gentoo \
    --to=joe@wt.gd \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox