diff options
Diffstat (limited to 'media-gfx/hp2xx')
-rw-r--r-- | media-gfx/hp2xx/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/hp2xx/files/hp2xx-3.4.4-clang16-build.patch | 13 | ||||
-rw-r--r-- | media-gfx/hp2xx/hp2xx-3.4.4-r4.ebuild | 84 |
3 files changed, 99 insertions, 0 deletions
diff --git a/media-gfx/hp2xx/Manifest b/media-gfx/hp2xx/Manifest index 559e486a995a..c72ff2241553 100644 --- a/media-gfx/hp2xx/Manifest +++ b/media-gfx/hp2xx/Manifest @@ -1,5 +1,7 @@ +AUX hp2xx-3.4.4-clang16-build.patch 290 BLAKE2B f93ba27b84124b61c7532e7b54281530e70a06b0f6fcbf6222eb31cb2468b817d5c56476d1fafb31a1b1d94dfd97bcf7becf7e098c6bb7a6635fd8b5cd7fe6d7 SHA512 50548185d91cf5e299cfa8c03b78e8add415d5a359bb84b69b8038f4d1499025fcbde150cf8e6a96358217c495f0eba55b554e4c518ef7b28a90f856f8242786 AUX hp2xx-3.4.4-docbuild.patch 474 BLAKE2B 2e790843db84da1cbc0aebde13bcb3762cae3d727c6999f45ef9a1b8598d9a47fb786a032b051540410cc1f2ade6c94394a4fd5b4f319a4cae35acb03ef36227 SHA512 48e103f3f6d71f31fa4734a500d173afa33564eebe56ded5edf42c30b6a6c52b22f7742293661328bf26111e4b7fa68c6f47fec7e9ab387d49551b49147ebc70 AUX hp2xx-3.4.4-r1.patch 3721 BLAKE2B 0cb18857495aa32789f0df25227e5cae1f2b137cfd7f1f8a6c224778638770d98f348e9b81628f1ff45a16cc181584e2e187873d4deb0f3d2ecadda268a1e542 SHA512 e68e320602a4ff49029b8e97962b10bc38f8d23a08ed37691b835fc1ecb22ad51533961448de044092f9ba2cb79e191f2772359b22f2bb3dde19bf5f18c1aac7 DIST hp2xx-3.4.4.tar.gz 610330 BLAKE2B c1e374d53fe36710bef6802347829fe9dce67c73c6ca2f2ea6120a1afd343bbdcbd870b6005001d934d9803b91597ebcaceccafdb5cc29d26ad3aed108016abc SHA512 ccfe4a23ca482471506e59d6d459ce3ed56d9d775613e3238bd82d11cf4ea0595bf57ff95b3bd22a674865ec7f07dc63c1bcf0deb2a430b7ae241734c7e57ccd EBUILD hp2xx-3.4.4-r3.ebuild 1532 BLAKE2B ed3cafa1b78e4bbcd470958ea75352b7485d87697b8ad0e6243e69698d3cd476dbc692262b3539dfd7ff3e20e6987abd534de00f5812e5ce5522500f0e4f9548 SHA512 aed1e9cffac48a43500a0344fc33ec5ace196afe21dfa6c4f6582076659ae90f7c1a1d910030722aa493e7ecb4c7a2e93fb6e32f7146e60bf6c5d6249b7befc8 +EBUILD hp2xx-3.4.4-r4.ebuild 1572 BLAKE2B 334ad85b5094fe58c77ec79f358c7ea10cfca9f114419a52db8834a36abaec096769bcbddca25e910b27bf41c0a99c934d33c00503c889b2b0d6583c8ad4fe03 SHA512 f17f453f14dfc0fd3f7bfe5b4c32feffe330217e03114d89f5a5ba771b626b434ac7db9e0b7f30188c52cb62184ef3384b6713cb6d71d4c690470da12f5744c0 MISC metadata.xml 260 BLAKE2B ef27f93753b1b9b96d35941f8a39c7e3b1695a49bff8076cb92b718524ddf1449ffa97d26ae289ad493695a8bfbeadb6bee0030f649bef02e0ae155ca851713e SHA512 94c019f5d5e8bec9d817d4b192ae0b87effc9f73283800b6ee7b5fe50a85bf6e245eb9720c2d8f3b497b40c7e298969c5e23c5afe3af14384eee92e76afacc8c diff --git a/media-gfx/hp2xx/files/hp2xx-3.4.4-clang16-build.patch b/media-gfx/hp2xx/files/hp2xx-3.4.4-clang16-build.patch new file mode 100644 index 000000000000..20c8a143a6e3 --- /dev/null +++ b/media-gfx/hp2xx/files/hp2xx-3.4.4-clang16-build.patch @@ -0,0 +1,13 @@ +Bug: https://bugs.gentoo.org/896218 +--- a/sources/getopt.c ++++ b/sources/getopt.c +@@ -22,6 +22,9 @@ + along with this program; if not, write to the Free Software + Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + */ ++ ++#include <string.h> ++ + + /** + ** Additions / fixes for hp2xx diff --git a/media-gfx/hp2xx/hp2xx-3.4.4-r4.ebuild b/media-gfx/hp2xx/hp2xx-3.4.4-r4.ebuild new file mode 100644 index 000000000000..c71fb1376d07 --- /dev/null +++ b/media-gfx/hp2xx/hp2xx-3.4.4-r4.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Convert Hewlett-Packard's HP-GL plotter language to other graphics formats" +HOMEPAGE="https://www.gnu.org/software/hp2xx/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="jpeg png tiff X" + +RDEPEND=" + jpeg? ( media-libs/libjpeg-turbo:= ) + png? ( + media-libs/libpng:= + sys-libs/zlib + ) + tiff? ( media-libs/tiff:= ) + X? ( x11-libs/libX11 )" +DEPEND="${RDEPEND}" +BDEPEND="sys-apps/texinfo" + +PATCHES=( + "${FILESDIR}"/${P}-r1.patch + "${FILESDIR}"/${P}-docbuild.patch + "${FILESDIR}"/${P}-clang16-build.patch +) + +src_prepare() { + default + cp -v makes/generic.mak sources/Makefile || die +} + +src_configure() { + export PREVIEWER="no_prev" + export EX_SRC= + export EX_OBJ= + export EX_DEFS=-DUNIX + export ALL_LIBS=-lm + + use jpeg && \ + EX_SRC+=" to_jpg.c" \ + EX_OBJ+=" to_jpg.o" \ + EX_DEFS+=" -DJPG" \ + ALL_LIBS+=" -ljpeg" + use png && \ + EX_SRC+=" png.c to_png.c" \ + EX_OBJ+=" png.o to_png.o" \ + EX_DEFS+=" -DPNG" \ + ALL_LIBS+=" -lpng" + use tiff && \ + EX_SRC+=" to_tif.c" \ + EX_OBJ+=" to_tif.o" \ + EX_DEFS+=" -DTIF" \ + ALL_LIBS+=" -ltiff" + use X && \ + PREVIEWER="to_x11" \ + EX_DEFS="-DHAS_UNIX_X11" \ + ALL_LIBS+=" -lX11" + + tc-export CC +} + +src_compile() { + emake -C sources all +} + +src_install() { + dodir \ + /usr/bin \ + /usr/share/info \ + /usr/share/man/man1 + + emake \ + prefix="${ED}"/usr \ + mandir="${ED}"/usr/share/man \ + infodir="${ED}"/usr/share/info \ + install +} |