summaryrefslogtreecommitdiff
path: root/app-crypt/rotix
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-15 16:50:39 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-15 16:50:39 +0100
commit3be8faef74cb863e207124a6fccbf01ce90c0799 (patch)
tree222958402b707645e8b7bcb072c607c538f2f5c0 /app-crypt/rotix
parentea3e1bbf643d1d8892f4df05e4f05c1b2a2125d8 (diff)
gentoo auto-resync : 15:09:2023 - 16:50:39
Diffstat (limited to 'app-crypt/rotix')
-rw-r--r--app-crypt/rotix/Manifest3
-rw-r--r--app-crypt/rotix/files/rotix-0.83-cc-cflags-lflags.patch61
-rw-r--r--app-crypt/rotix/files/rotix-0.83-nl.po-charset.patch22
-rw-r--r--app-crypt/rotix/rotix-0.83-r2.ebuild38
4 files changed, 124 insertions, 0 deletions
diff --git a/app-crypt/rotix/Manifest b/app-crypt/rotix/Manifest
index 7ba9c815ccc2..4af6244754f7 100644
--- a/app-crypt/rotix/Manifest
+++ b/app-crypt/rotix/Manifest
@@ -1,6 +1,9 @@
AUX 0.83-respect-CFLAGS-and-dont-strip.patch 623 BLAKE2B 62cff4d1566fbb9263142404e495de64c8fa5cca8c1a1b4319a7d677ed930c02a6147e71f90f9a9ff0be4e80049c8540148191df170d7124be62f43c1d2c5515 SHA512 1b1fab8bdcfac682d0927075a0614ae888a1b23382ce8484b2ab9eac316f46a907bbd872615553201c5ccbf1d8f677491612956075bffacced0d408defad9e07
+AUX rotix-0.83-cc-cflags-lflags.patch 1411 BLAKE2B 660d530265180f2eade64ba70a1a0402e1e3d822a29ba130e60a04d94253231650ba1cfa58e962c38858d8c35ecc80089f6c31695513fd81966d1a8014ee71e1 SHA512 a04ab4f8f9473b00d0c5d1ae2a04bd0cde7a21947c47213dc71f00dc3787d65bec627f1c30402945b3b0163413b26a2db163ef9afa76561e342d720c72bab257
AUX rotix-0.83-interix.patch 252 BLAKE2B 319f34ee0d874d5a608259d4fd3f018ec085ec28f96b8a620b4b1606b844acec7d3b665e62b5c032bbe2d928f924d1dcbc519628a8ccde9e0ac259be2f485871 SHA512 4c3862c22fb6c39f8f9653d7415414f28c31f91eeac284fa277c2527abe0a4d549f1eda141a5409b9ba171bbab3c4a2b9c66ecf438413e542682a85b2c549b8c
AUX rotix-0.83-locale.patch 206 BLAKE2B 98f179037eaebee3ca2c1f41d543dba29fc61209518b3abec238473a38da0d3140aed50ed5a33ed1d0656336df2f3a236cd0f8ced9f0795d807710f1978f881f SHA512 caa6430c0bf96fccae2547524c7eb81170e27ef2adb054671db0f1d8f88ed6a4960b827d1781af4adbf5216c00e007a48071b1b4237f5a691bd46e45bbd599a0
+AUX rotix-0.83-nl.po-charset.patch 807 BLAKE2B d8482b4244facbff9cc37975edb3ee0613ba90fee69b6ec67c7a04e3812ce05701a3e38038e12ddf1bff2699de8be2d9cba713448e444feb9cfd972c77b9e3d4 SHA512 468e616e8b97b42652abdf7b9f2082233b0084cb971b2fd7dbb26e020777531f5aea758910738270bed3923ba4ce7930d5edcd42f976d549468bd0b08d4bcf7f
DIST rotix-0.83.tar.gz 15412 BLAKE2B 4a0db309fa23af3e15a63263e40a2b27e2ebf1e0cf162f2776ebd5237621207eee3a41374170c2e0441104704bde4aff8f929fc5ad8994dfcf4fd1cb5a461696 SHA512 bffe527714f35a99f3322e87d1e2fcbafd38f3a7677e2ca816988df2ce1567ce064f0ab7a543fab3dc2d73f148675fe069c398a5d9c7bb285cb6b1658c3fbffb
EBUILD rotix-0.83-r1.ebuild 800 BLAKE2B 720423e54f7e829944a9a958ad4868e80ec32cfc9cdd6e6ce992ec2363433a78a6d290c29ee10d26ff51db663c33a0af8d7930b7447bfe9b8cb9f4d095e3a443 SHA512 cdb690a367fdcb20c0446ef57a69dfbbbd89d174182c9d5897ef7e4c010ea18a7d3f5cbd2b2da69cd69c7f6937fad004e762fa6a954a2d32873d06f6744fb6ce
+EBUILD rotix-0.83-r2.ebuild 896 BLAKE2B 4e12fcbb8667acbb3122a09b0e03c31a1c7e3fc88ab3a7ad87cafec7975a013703753063a1cd17c969b27396fa8e4445b78d290b7b8c4b0df822391e3257f32f SHA512 5a5ac5eadab8c93b92aee44f92eb38a97d42dd18c27d595447b863e30fdd31a8607c063fd3d6974aafee071be56161ae4051033b0aba8b342032611d4a3d2fc9
MISC metadata.xml 248 BLAKE2B b4fe04f63894c1e80ba5c13119bbe5b1eb8dbbbfe86a5d0cfe4fb2998c1b045523c2039787212e05e1ed08ebbbfd83386de86de00fc38e7d4e946bcbad117502 SHA512 7e1ead3f76b507b555179148f9c10a3fa3401df81bf4461d456b3255e9844ed4e706d2788761587b086a5e89b430c1149856733a142f3f58ecbe55c2f2ccad8e
diff --git a/app-crypt/rotix/files/rotix-0.83-cc-cflags-lflags.patch b/app-crypt/rotix/files/rotix-0.83-cc-cflags-lflags.patch
new file mode 100644
index 000000000000..2cb97fdc52ac
--- /dev/null
+++ b/app-crypt/rotix/files/rotix-0.83-cc-cflags-lflags.patch
@@ -0,0 +1,61 @@
+From 615eaabfa00cbef1b783bd3026fdfa3f45385e53 Mon Sep 17 00:00:00 2001
+From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
+Date: Thu, 14 Sep 2023 00:20:51 +0300
+Subject: [PATCH] Respect CFLAGS, STRIP and CC, append LDFLAGS to linking
+
+--- a/Makefile
++++ b/Makefile
+@@ -22,12 +22,6 @@
+
+ include Makefile.settings
+
+-ifdef DEBUG
+-CFLAGS += -g3
+-else
+-CFLAGS += -O3
+-endif
+-
+ ifdef I18N
+ CFLAGS += -DPACKAGE=\"${PACKAGE}\" -D LOCALEDIR=\"${LOCALE}\"
+ endif
+@@ -39,7 +33,7 @@ endif
+ all : rotix po
+
+ rotix : rot.o help.o rotix.o
+- $(CC) -Wall $(CFLAGS) -o rotix rot.o help.o rotix.o
++ $(CC) -Wall $(CFLAGS) $(LDFLAGS) $(LFLAGS) -o rotix rot.o help.o rotix.o
+ ifdef STRIP
+ ifndef DEBUG
+ $(STRIP) rotix
+--- a/configure
++++ b/configure
+@@ -82,14 +82,7 @@ if [ "$i18n" = "1" ]; then
+ fi;
+ fi
+
+-if type gcc > /dev/null 2> /dev/null; then
+- echo "CC=gcc" >> Makefile.settings;
+-elif type cc > /dev/null 2> /dev/null; then
+- echo "CC=cc" >> Makefile.settings;
+-else
+- echo 'Cannot find a C compiler, aborting.'
+- exit 1;
+-fi
++echo "CC?=cc" >> Makefile.settings;
+
+ if [ "$strip" = "1" ]; then
+ if type strip > /dev/null 2> /dev/null; then
+@@ -101,10 +94,7 @@ if [ "$strip" = "1" ]; then
+ else
+ echo 'No strip utility found, cannot remove unnecessary parts from executable.'
+ echo ''
+- echo 'STRIP=0' >> Makefile.settings;
+ fi
+-else
+- echo 'STRIP=0' >> Makefile.settings;
+ fi
+
+ case "$arch" in
+--
+2.41.0
+
diff --git a/app-crypt/rotix/files/rotix-0.83-nl.po-charset.patch b/app-crypt/rotix/files/rotix-0.83-nl.po-charset.patch
new file mode 100644
index 000000000000..9cbc892da0c0
--- /dev/null
+++ b/app-crypt/rotix/files/rotix-0.83-nl.po-charset.patch
@@ -0,0 +1,22 @@
+https://github.com/shemminga/rotix/pull/2
+From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= <rul@kalgan.cc>
+Date: Mon, 18 Oct 2021 20:28:50 -0700
+Subject: [PATCH] Fix NL translation
+
+Avoids the following error:
+ po/NL.po: warning: Charset "CHARSET" is not a portable encoding name.
+ Message conversion to user's charset might not work.
+
+--- a/po/NL.po
++++ b/po/NL.po
+@@ -15,8 +15,8 @@ msgstr ""
+ "Last-Translator: Sjoerd Hemminga <sjoerd@huiswerkservice.nl>\n"
+ "Language-Team: NL <NL@li.org>\n"
+ "MIME-Version: 1.0\n"
+-"Content-Type: text/plain; charset=CHARSET\n"
+-"Content-Transfer-Encoding: ENCODING\n"
++"Content-Type: text/plain; charset=ASCII\n"
++"Content-Transfer-Encoding: 8bit\n"
+
+ #: rotix.c:134 rotix.c:145 rotix.c:185
+ msgid "rotix: you cannot specify both an inputfile and a text\n"
diff --git a/app-crypt/rotix/rotix-0.83-r2.ebuild b/app-crypt/rotix/rotix-0.83-r2.ebuild
new file mode 100644
index 000000000000..ee8600113fa1
--- /dev/null
+++ b/app-crypt/rotix/rotix-0.83-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Rotix allows you to generate rotational obfuscations"
+HOMEPAGE="https://github.com/shemminga/rotix"
+SRC_URI="https://github.com/shemminga/${PN}/releases/download/${PV}/${PN}_${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="nls"
+
+BDEPEND="nls? ( sys-devel/gettext )"
+RDEPEND="nls? ( virtual/libintl )"
+
+PATCHES=(
+ "${FILESDIR}/rotix-0.83-cc-cflags-lflags.patch"
+ "${FILESDIR}/rotix-0.83-locale.patch"
+ "${FILESDIR}/rotix-0.83-interix.patch"
+ "${FILESDIR}/rotix-0.83-nl.po-charset.patch"
+)
+
+src_configure() {
+ econf --i18n=$(usex nls 1 0) --strip=0 --debug=0
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+ dodoc README
+}