summaryrefslogtreecommitdiff
path: root/media-gfx/metapixel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-25 13:34:50 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-25 13:34:50 +0000
commit479921825a5c44a5fbcd5441f00ee98e54db9bac (patch)
treea40800c43ce47a1158369633f7d432b2bd365743 /media-gfx/metapixel
parentfa5cba104ab90ce81be0cb7e9992447a10e76013 (diff)
gentoo auto-resync : 25:12:2023 - 13:34:50
Diffstat (limited to 'media-gfx/metapixel')
-rw-r--r--media-gfx/metapixel/Manifest2
-rw-r--r--media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch12
-rw-r--r--media-gfx/metapixel/metapixel-1.0.2-r2.ebuild44
3 files changed, 58 insertions, 0 deletions
diff --git a/media-gfx/metapixel/Manifest b/media-gfx/metapixel/Manifest
index 8ba70c16d323..c096d979cfce 100644
--- a/media-gfx/metapixel/Manifest
+++ b/media-gfx/metapixel/Manifest
@@ -1,5 +1,7 @@
+AUX metapixel-1.0.2-clang16-build-fix.patch 310 BLAKE2B 81ee12d89b0930c10cd6abb3e2f66f969efd515f4f0a9161260874fd5a2a670a55a8189f3a2d9d6d84ecd7968ba7027b051498ceb23b891e4b95fe51f8594d9a SHA512 aa83f9c0050dc3bf3cac14e98369d1f243a7f175b049c3d0b384a01a81ba422656659cadd2e2f389ef7c008f6beb2898c9ef8ee69b8d9caba9c87641074bae64
AUX metapixel-1.0.2-giflib5.patch 529 BLAKE2B 760b6f3c846a48e64e57d650584f56b506bbe62f4c7b70ae74081e4256b042d961d58964f1b78033ec2a657a1bc5400b112cab7782e81318f71361bf7fa6baf6 SHA512 1e6636ae03f05b9b1ce3a766cae4b19503a1eddd85cb4a97dcd63511d1520bd11dde3e3d76d3ec6ff23839e49be62a8fa704e25323ed28232e27eaf625fe4b17
AUX metapixel-1.0.2-libpng15.patch 4395 BLAKE2B 37f1834c834bbcb2e5f21eb6ef76d9de2e216466c6fe4cc130d477cc44cf609f24067b39be705b732911e21767557b2517b63f230d7710e66e45462802df84db SHA512 5edf6adb335de038996589bbfa799df471aeb8aec41d46f639ff4165fe9574b8a103bfdbdf086ac48de29d11dd263166e0787aad8ebc1298a9865837cc2d3282
DIST metapixel-1.0.2.tar.gz 63197 BLAKE2B ba5efaed9c3a305b9659af6d910e0c9597637510ed9d1d03a27feaeb1687751609bd60f009761c599593c02904f0c583324fc4b392af100fc60560cb4be2be8d SHA512 88a718fc349b9063c61a8ac24fc41923c742b25fb7e84c6b565ac92a301a04b46870750d5c06f751b2104c3f36108365b45214b52a6ede98da83441e2e30e156
EBUILD metapixel-1.0.2-r1.ebuild 908 BLAKE2B 6bc4c75bf67abba6cc23eadc4e699062682259c32848e10dd8d4783a6b6769bcc80cfdaf1c371a1cebcadbed1ccf811d9d0403196857124c3911888c87a31227 SHA512 17386b85ce7b0494b49e341217326060c23907896ee3d8d7d3b675705c3d7e983e71533414732139167e43b98534ffec51c553add89d55e08d1c82f167c645df
+EBUILD metapixel-1.0.2-r2.ebuild 956 BLAKE2B be08317c9f6c4fea316e3b80472f438193df81e41ecd717cc7f7240771168e80a6b156ab6cfc4f7b3dfd08229312227ee8b37e9b7a0b3fe3706a120649dadd25 SHA512 7452467da02f0ed79d836cf6454600f0b228921bd50edc87e0089bb1a3727eb043415641e8c104e2b8f69773684e8ee719482d114e3bce38348a1da64cff2233
MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a
diff --git a/media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch b/media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch
new file mode 100644
index 000000000000..0ddc05175484
--- /dev/null
+++ b/media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch
@@ -0,0 +1,12 @@
+Bug: https://bugs.gentoo.org/896224
+--- a/getopt.c
++++ b/getopt.c
+@@ -39,6 +39,8 @@
+ #endif
+
+ #include <stdio.h>
++#include <string.h>
++#include <unistd.h>
+
+ /* Comment out all this code if we are using the GNU C Library, and are not
+ actually compiling the library itself. This code is part of the GNU C
diff --git a/media-gfx/metapixel/metapixel-1.0.2-r2.ebuild b/media-gfx/metapixel/metapixel-1.0.2-r2.ebuild
new file mode 100644
index 000000000000..97ea64edc098
--- /dev/null
+++ b/media-gfx/metapixel/metapixel-1.0.2-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit toolchain-funcs
+
+DESCRIPTION="a program for generating photomosaics"
+HOMEPAGE="https://www.complang.tuwien.ac.at/schani/metapixel/"
+SRC_URI="https://www.complang.tuwien.ac.at/schani/${PN}/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-lang/perl
+ >=media-libs/giflib-5:0=
+ >=media-libs/libpng-1.4:0=
+ media-libs/libjpeg-turbo:=
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-libpng15.patch
+ "${FILESDIR}"/${P}-giflib5.patch
+ "${FILESDIR}"/${P}-clang16-build-fix.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e 's:/usr/X11R6:/usr:g' Makefile || die
+ sed -i -e 's:ar:$(AR):' rwimg/Makefile || die
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" LDOPTS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}{,-prepare,-imagesize,-sizesort}
+ doman ${PN}.1
+ dodoc NEWS README
+}