summaryrefslogtreecommitdiff
path: root/dev-util/maxcso
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-12-22 14:08:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2021-12-22 14:08:05 +0000
commit93a93e9a3b53c1a73142a305ea1f8136846942ee (patch)
treeb9791a06ab3284e27b568412c59316c66240c682 /dev-util/maxcso
parent2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff)
gentoo resync : 22.12.2021
Diffstat (limited to 'dev-util/maxcso')
-rw-r--r--dev-util/maxcso/Manifest5
-rw-r--r--dev-util/maxcso/files/maxcso-1.13.0-ldflags.patch26
-rw-r--r--dev-util/maxcso/maxcso-1.13.0.ebuild38
-rw-r--r--dev-util/maxcso/maxcso-9999.ebuild36
-rw-r--r--dev-util/maxcso/metadata.xml21
5 files changed, 126 insertions, 0 deletions
diff --git a/dev-util/maxcso/Manifest b/dev-util/maxcso/Manifest
new file mode 100644
index 000000000000..3abd1ac8bcb3
--- /dev/null
+++ b/dev-util/maxcso/Manifest
@@ -0,0 +1,5 @@
+AUX maxcso-1.13.0-ldflags.patch 797 BLAKE2B 6459e1f62048dc7861af1e6f568fabdbb84e4cad028d950c2167ccc52eee441535dd1dc55f0f66246226435670e00fa50a9e2ff5681ace1e2e64af873711e137 SHA512 dc7732065354d3aad608c804dfeff770b4e6ae4aa478f7eff8e6e777585f5ca40ceac56c6af3527d7bca284cf85e988f0bf138cc4891ad5aecf3d17cf9e9b8b1
+DIST maxcso-1.13.0.tar.gz 3734868 BLAKE2B 8c8db7741d8c5fb42ca26660221f2f56141845ad8ab95cf84e910e15b6a01109203015de9fec51da23e786a5015399bfdee2782f7e195c6557ce2e05c901f4e4 SHA512 1d09dee8094d09debe69764f06356339de60da01aaaac7d372c66c4909b86625114f8d6dbdce22d9d700340f9a7b07f1ff71031ad8f1465a65fd38cd5df21209
+EBUILD maxcso-1.13.0.ebuild 823 BLAKE2B d6fc9245208f93f65fbf51b283ebd986de6f775e5e77871fdfab49ccec2c3031f9121f7fa5289fc08f5ade88ffa8b93dcb3c0ae90630fa3c8dfcb81769d9e4d1 SHA512 53fa75c24caf4b1f318066763152c8f7c4cbc779ee8a38cc54b09c4881697bf668f48d8eec27b9bdd4e68070905b9d414e2fe5ef20e064400c82f1d8c7bb8629
+EBUILD maxcso-9999.ebuild 779 BLAKE2B 5b8c29afe4632ab3fce679d87647d5546c0b70ffa6c8ecb1ecdc2844ee972632bf6768be2ba0976fbfcf9882d6b2c46e59994640e3f2b213b33502958cf08546 SHA512 8cf828b6533ab093f48c8fe44ce608b216020a7c173f28cc68d738f0d79621cbe7a86bc56e2516cc1d6350cc2315f727a4731fb1ca32b311c9f6ac06ce390226
+MISC metadata.xml 678 BLAKE2B 01209cedb979a2c55c77634e4400de72ffb01de0d3ec5463b5b3d4bf2ca650dc97957d108a54a8f52c6909a53b1be168a5a0e89cbf903b2be9c59f9c72b634b8 SHA512 9cdcacb261fc57bc1639eba48f84891eabc3729bc99856b34b01fb425d6002cf779ba54747ff529f9c97264c798bff1a30c451fd65d15893884ffc7c495417d2
diff --git a/dev-util/maxcso/files/maxcso-1.13.0-ldflags.patch b/dev-util/maxcso/files/maxcso-1.13.0-ldflags.patch
new file mode 100644
index 000000000000..ba6b92b0627a
--- /dev/null
+++ b/dev-util/maxcso/files/maxcso-1.13.0-ldflags.patch
@@ -0,0 +1,26 @@
+From 29458b4586c8bec1a025a71eab06146fc646ccc4 Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Tue, 7 Dec 2021 07:17:28 -0800
+Subject: [PATCH] build: Support LDFLAGS
+
+Fixes the gentoo issue: https://bugs.gentoo.org/828416
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 4a93ec74..1cc7fc63 100644
+--- a/Makefile
++++ b/Makefile
+@@ -32,7 +32,7 @@ ZOPFLI_C_OBJ = $(ZOPFLI_C_SRC:.c=.o)
+
+ # TODO: Perhaps detect and use system libdeflate if available.
+ maxcso: $(SRC_CXX_OBJ) $(CLI_CXX_OBJ) $(ZOPFLI_C_OBJ) 7zip/7zip.a libdeflate/libdeflate.a
+- $(CXX) -o $@ $(SRC_CXXFLAGS) $(CXXFLAGS) $^ -luv -llz4 -lz
++ $(CXX) $(LDFLAGS) -o $@ $(SRC_CXXFLAGS) $(CXXFLAGS) $^ -luv -llz4 -lz
+
+ 7zip/7zip.a:
+ $(MAKE) -C 7zip 7zip.a
+--
+2.32.0
+
diff --git a/dev-util/maxcso/maxcso-1.13.0.ebuild b/dev-util/maxcso/maxcso-1.13.0.ebuild
new file mode 100644
index 000000000000..ba5155edd760
--- /dev/null
+++ b/dev-util/maxcso/maxcso-1.13.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Fast cso compressor"
+HOMEPAGE="https://github.com/unknownbrackets/maxcso"
+if [[ "${PV}" == *9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/unknownbrackets/maxcso.git"
+else
+ SRC_URI="https://github.com/unknownbrackets/maxcso/archive/v${PV}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="ISC MIT LGPL-2.1+ Apache-2.0"
+SLOT="0"
+
+BDEPEND="virtual/pkgconfig"
+RDEPEND="
+ app-arch/lz4
+ dev-libs/libuv
+ sys-libs/zlib
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=("${FILESDIR}/${P}-ldflags.patch")
+
+src_compile() {
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+ dodoc README.md README_CSO.md README_ZSO.md
+}
diff --git a/dev-util/maxcso/maxcso-9999.ebuild b/dev-util/maxcso/maxcso-9999.ebuild
new file mode 100644
index 000000000000..a9f29908ada6
--- /dev/null
+++ b/dev-util/maxcso/maxcso-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Fast cso compressor"
+HOMEPAGE="https://github.com/unknownbrackets/maxcso"
+if [[ "${PV}" == *9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/unknownbrackets/maxcso.git"
+else
+ SRC_URI="https://github.com/unknownbrackets/maxcso/archive/v${PV}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="ISC MIT LGPL-2.1+ Apache-2.0"
+SLOT="0"
+
+BDEPEND="virtual/pkgconfig"
+RDEPEND="
+ app-arch/lz4
+ dev-libs/libuv
+ sys-libs/zlib
+"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+ dodoc README.md README_CSO.md README_ZSO.md
+}
diff --git a/dev-util/maxcso/metadata.xml b/dev-util/maxcso/metadata.xml
new file mode 100644
index 000000000000..fa6c6aa051c1
--- /dev/null
+++ b/dev-util/maxcso/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>orbea@riseup.net</email>
+ <name>orbea</name>
+ </maintainer>
+ <maintainer type="person" proxied="proxy">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ A fast ISO to CSO compression program for use with PSP and PS2
+ emulators, which uses multiple algorithms for best compression
+ ratio.
+ </longdescription>
+</pkgmetadata>