summaryrefslogtreecommitdiff
path: root/media-gfx/hp2xx
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/hp2xx
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/hp2xx')
-rw-r--r--media-gfx/hp2xx/Manifest8
-rw-r--r--media-gfx/hp2xx/files/hp2xx-3.4.4-docbuild.patch14
-rw-r--r--media-gfx/hp2xx/files/hp2xx-3.4.4-r1.patch137
-rw-r--r--media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild69
-rw-r--r--media-gfx/hp2xx/hp2xx-3.4.4.ebuild44
-rw-r--r--media-gfx/hp2xx/metadata.xml16
6 files changed, 288 insertions, 0 deletions
diff --git a/media-gfx/hp2xx/Manifest b/media-gfx/hp2xx/Manifest
new file mode 100644
index 000000000000..bfc40a6a78e9
--- /dev/null
+++ b/media-gfx/hp2xx/Manifest
@@ -0,0 +1,8 @@
+AUX hp2xx-3.4.4-docbuild.patch 474 SHA256 a7abbdc8b1dc4b15734eadb64e256999e5e17e1488794a444ccef23c25402598 SHA512 48e103f3f6d71f31fa4734a500d173afa33564eebe56ded5edf42c30b6a6c52b22f7742293661328bf26111e4b7fa68c6f47fec7e9ab387d49551b49147ebc70 WHIRLPOOL 62addb152b6cdf349fecec17e6292c7aa5719bd1239ac76f5775569f108d00016349485e6f84fa93d81641d83c7847c202a95a02dd4ca6dcb3bfd80d547b706d
+AUX hp2xx-3.4.4-r1.patch 3824 SHA256 a4b4a81f113bde0436546f37b19ebb61e5c78f8eb45d148f61309bce217fb23d SHA512 49a98dc29f820bf43550bec589045e81eaaed991681625bce1a192fee967e28663f053503644663cdb0e57709ba67000dc7f6922054a4ec3969f1555a63df0a3 WHIRLPOOL 8a6229f211ea7ce13a4a841fb6ddaf1ca0d03d57d2b751c2f8f8e3ac1d13197826fba3037df7eea6f9a430dcbf0ba05cb0b8d1e73db3373422ad242360ec27b9
+DIST hp2xx-3.4.4.tar.gz 610330 SHA256 47b72fb386a189b52f07e31e424c038954c4e0ce405803841bed742bab488817 SHA512 ccfe4a23ca482471506e59d6d459ce3ed56d9d775613e3238bd82d11cf4ea0595bf57ff95b3bd22a674865ec7f07dc63c1bcf0deb2a430b7ae241734c7e57ccd WHIRLPOOL ee3415eadaef3065239859de414d78f6619feef9e70c80a53fc835b52a2acb476645d7040880d2ab480cd92b53f002f58da7a6774bc436a5bfe587acc6b38f00
+EBUILD hp2xx-3.4.4-r1.ebuild 1608 SHA256 3078b17d676c34f19015b871f3d623e887d2f7e00c10d5c5a6fd77852fe5a763 SHA512 564dc7efb794a295afda77d82dded7b2c82c3f76ef072ac74ea739b7b84f9fcff5c42923daa1075f9ee57bce11d96f79dfd8cf256c8174bbbc19dbe82abd10ac WHIRLPOOL 99ccd9aa03eb69a792cb5091af24a61ff265d8f2f91ca7c79d0d160a5751cd70c489a1994535a60657ffb2fb7c4a0c3284886ceb6c2caf8d92bc30752c367c81
+EBUILD hp2xx-3.4.4.ebuild 852 SHA256 2b3b5c1376cbf806e948d1f56de6c55b0ec873f03a4fc6f884869426af25292c SHA512 0fb2ca8a2f88889878acef6fb6e4f11063383a07802e4ed657f3179fd8d6638d231b1534f225077a42d0e4f34b47298ff9e3e89af1e73fc62c1b00fc25ed1e3f WHIRLPOOL e2731cb74147076039628b7611829a498b326dc03def8f01285aad1a25732e9dcb18f5d1f6036bfbf84cfab78f7623cfdc1b95cd7a12b498be7593bd221c5aef
+MISC ChangeLog 2719 SHA256 6c6c4a68d4ce4b790154b46e9363ffdde0588decbb288600fe969966d22096d3 SHA512 413977f9a536b068bf7aa250f00d4fc7a64f8adb5162a65b60a73b787e29ca643664bac68012e1c0711232e7e35d53cb5822876c4bbf900d2e456184148bffcb WHIRLPOOL c34dd888bc1007d533d20da828e3cee2ad9e0ab98afb211bda862655fcb78ec37d2918d4dc01208b5d82f00d2836c6ac0359afa592dbdd60f794982fc36cb5a8
+MISC ChangeLog-2015 914 SHA256 1811824973ef014ca7f7921c5e66d51bc834086d86b08458a3d9959156cc5998 SHA512 fa089ba22a2d5ad16540cac8344fcd9facd1908bdce09631a1ff3a6887f7ff9dd39fc9f46a930cd381a5bd5498c1f1a252f52147bf03c7fe681847bb04f25be1 WHIRLPOOL 983ef86c0a6c3f83e12faaa514c33097b51bb51ecf37610634a03aaf7b5c28af718ddaf60fbb26c7565f9f1cb3af542508cc2f52b7c670c8518bc47e12565729
+MISC metadata.xml 496 SHA256 54af2f31b59e3b2d68e23dd30ebac69fa17eab31e75a18fe16dfbc41350e579e SHA512 301342c36942f65692c763b055abacd9d927760a9fab3640713d39983a69c49fc2adf321f2fa03ff2229970515b0ae2dc6ac87c34e3fe24a81840944d2d2fbf2 WHIRLPOOL 9023351d2cb02b79d402c2ba69c3a503e6a1a27bb45eca9cc89dd3823fd2cc7eb10a5b33aab0baed112af988822989a220a5082939802da38ce254acfc9be1d6
diff --git a/media-gfx/hp2xx/files/hp2xx-3.4.4-docbuild.patch b/media-gfx/hp2xx/files/hp2xx-3.4.4-docbuild.patch
new file mode 100644
index 000000000000..4245eea61254
--- /dev/null
+++ b/media-gfx/hp2xx/files/hp2xx-3.4.4-docbuild.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/attachment.cgi?id=399898
+Only first hunk preserved.
+diff -ruN hp2xx-3.4.4-r0/doc/hp2xxinf.tex hp2xx-3.4.4-r3/doc/hp2xxinf.tex
+--- hp2xx-3.4.4-r0/doc/hp2xxinf.tex 2003-06-21 17:41:16.000000000 +0200
++++ hp2xx-3.4.4-r3/doc/hp2xxinf.tex 2015-03-27 20:36:32.000000000 +0100
+@@ -92,7 +92,7 @@
+ @page
+ @tex
+ {\parskip=0pt
+-\hfill mk\@daveg.com\par
++\hfill mk@@daveg.com\par
+ \hfill {\it Using HP2XX}, \manvers\par
+ \hfill \TeX{}info \texinfoversion\par
+ }
diff --git a/media-gfx/hp2xx/files/hp2xx-3.4.4-r1.patch b/media-gfx/hp2xx/files/hp2xx-3.4.4-r1.patch
new file mode 100644
index 000000000000..9bff4f43b922
--- /dev/null
+++ b/media-gfx/hp2xx/files/hp2xx-3.4.4-r1.patch
@@ -0,0 +1,137 @@
+diff -ruN hp2xx-3.4.4.orig/makes/generic.mak hp2xx-3.4.4/makes/generic.mak
+--- hp2xx-3.4.4.orig/makes/generic.mak 2003-06-21 17:16:35.000000000 +0200
++++ hp2xx-3.4.4/makes/generic.mak 2012-02-07 22:30:29.000000000 +0100
+@@ -30,11 +30,11 @@
+ CP = cp
+ MKINFO = makeinfo
+ RMCMD = rm -f
+-STRIP = strip
++STRIP = true
+
+ # Installation sites (GNU conventions):
+ #
+-prefix = /usr/local
++prefix = /usr
+ bindir = $(prefix)/bin
+ includedir = $(prefix)/include
+ mandir = $(prefix)/man
+@@ -44,10 +44,10 @@
+ # CC and CFLAGS set for gcc, but any ANSI-C compiler should work.
+ # For non-gcc compilers, simply set CFLAGS = -O (to start with)
+ #
+-CC = gcc
+-CFLAGS = -O2 -Wall -finline-functions
++#CC = gcc
++#CFLAGS = -O2 -Wall -finline-functions
+
+-LFLAGS = # only sometimes needed; see below for examples
++LFLAGS = $(LDFLAGS) # only sometimes needed; see below for examples
+ CPPFLAGS = -I. # only sometimes needed; see below for examples
+ BINDCMD = # only needed for EMX and DJGPP DOS extenders
+
+@@ -62,7 +62,7 @@
+ #
+ DEFINES = -DUNIX -DHAS_UNIX_X11
+ PREVIEWER = to_x11
+-ALL_LIBS = -lX11 -lm # Maybe -lX instead of -lX11 is needed?
++ALL_LIBS = -L/usr/X11R6/lib/ -lX11 -lm # Maybe -lX instead of -lX11 is needed?
+ #
+ # Generic UNIX, no previewer
+ #
+@@ -195,31 +195,41 @@
+ EX_SRC =
+ EX_OBJ =
+ EX_DEFS =
++EX_LIBS = -lz
+ #
+ # PNG support (requires -lpng and -lz on the ALL_LIBS line)
+-#EX_SRC = png.c to_png.c
+-#EX_OBJ = png.o to_png.o
+-#EX_DEFS= -DPNG
++EX_SRC += png.c to_png.c
++EX_OBJ += png.o to_png.o
++EX_DEFS += -DPNG
++EX_LIBS += -lpng
+ #
+ # TIFF support (requires -ltiff and possibly -lz on the ALL_LIBS line)
+-#EX_SRC = to_tif.c
+-#EX_OBJ = to_tif.o
+-#EX_DEFS = -DTIF
++EX_SRC += to_tif.c
++EX_OBJ += to_tif.o
++EX_DEFS += -DTIF
++EX_LIBS += -ltiff
+ #
+ # JPEG support (requires -ljpeg)
+-#EX_SRC = to_jpg.c
+-#EX_OBJ = to_jpg.o
+-#EX_DEFS = -DJPG
++EX_SRC += to_jpg.c
++EX_OBJ += to_jpg.o
++EX_DEFS += -DJPG
++EX_LIBS += -ljpeg
+ #
+ # PDF support (requires -lpdf)
+-#EX_SRC = to_pdf.c
+-#EX_OBJ = to_pdf.o
+-#EX_DEFS = -DUSEPDF
++#EX_SRC += to_pdf.c
++#EX_OBJ += to_pdf.o
++#EX_DEFS += -DUSEPDF
++#EX_LIBS += -lpdf
+ #
+ # Include extras:
+-# EX_SRC = to_pic.c to_pac.c
+-# EX_OBJ = to_pic.o to_pac.o
+-# EX_DEFS = -DPIC_PAC
++EX_SRC += to_pic.c to_pac.c
++EX_OBJ += to_pic.o to_pac.o
++EX_DEFS += -DPIC_PAC
++#
++# Epson Esc/P2 support
++EX_SRC += to_escp2.c
++EX_OBJ += to_escp2.o
++EX_DEFS += -DEPSON
+ #
+ #############################################################################
+ # No user-serviceable parts below!
+@@ -245,8 +255,8 @@
+ PROGRAM = hp2xx
+
+ default:
+- @echo "This makefile needs manual configuration! Edit it now!
+- @echo "After configuration, you may use the following commands:
++ @echo "This makefile needs manual configuration! Edit it now!"
++ @echo "After configuration, you may use the following commands:"
+ @echo ""
+ @echo "make all Compile everything"
+ @echo "make check Run a color application in preview mode"
+@@ -267,7 +277,7 @@
+ #########################################################################
+
+ all: $(OBJS)
+- $(CC) $(LFLAGS) $(OBJS) $(ALL_LIBS) -o $(PROGRAM)
++ $(CC) $(LFLAGS) $(OBJS) $(ALL_LIBS) $(EX_LIBS) -o $(PROGRAM)
+ $(BINDCMD)
+
+
+diff -ruN hp2xx-3.4.4.orig/sources/png.c hp2xx-3.4.4/sources/png.c
+--- hp2xx-3.4.4.orig/sources/png.c 2003-06-21 17:31:51.000000000 +0200
++++ hp2xx-3.4.4/sources/png.c 2012-02-07 22:26:33.000000000 +0100
+@@ -5,6 +5,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include "to_png.h"
++#include <zlib.h>
+ #include <png.h>
+
+ #define PDNCOL 256
+@@ -36,7 +37,7 @@
+ }
+
+ /* set up error handlimg for libpng */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ return;
+ }
diff --git a/media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild b/media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild
new file mode 100644
index 000000000000..81f8977412f5
--- /dev/null
+++ b/media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils base
+
+DESCRIPTION="Versatile tool to convert Hewlett-Packard's HP-GL plotter language into other graphics formats"
+HOMEPAGE="https://www.gnu.org/software/hp2xx/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="X jpeg png tiff"
+
+RDEPEND="
+ png? ( media-libs/libpng sys-libs/zlib )
+ tiff? ( media-libs/tiff )
+ jpeg? ( virtual/jpeg )
+ X? ( x11-libs/libX11 )"
+DEPEND="${RDEPEND}
+ sys-apps/texinfo"
+
+PATCHES=( "${FILESDIR}"/${P}-r1.patch
+ "${FILESDIR}"/${P}-docbuild.patch )
+
+src_prepare() {
+ base_src_prepare
+ cp -v makes/generic.mak sources/Makefile || die
+}
+
+src_compile() {
+ cd "${S}/sources" || die
+ export PREVIEWER="no_prev"
+ export EX_SRC=
+ export EX_OBJ=
+ export EX_DEFS=-DUNIX
+ export ALL_LIBS=-lm
+ use X && \
+ PREVIEWER="to_x11" \
+ EX_DEFS="-DHAS_UNIX_X11" \
+ ALL_LIBS="${ALL_LIBS} -lX11"
+ use jpeg && \
+ EX_SRC="${EX_SRC} to_jpg.c" \
+ EX_OBJ="${EX_OBJ} to_jpg.o" \
+ EX_DEFS="${EX_DEFS} -DJPG" \
+ ALL_LIBS="${ALL_LIBS} -ljpeg"
+ use png && \
+ EX_SRC="${EX_SRC} png.c to_png.c" \
+ EX_OBJ="${EX_OBJ} png.o to_png.o" \
+ EX_DEFS="${EX_DEFS} -DPNG" \
+ ALL_LIBS="${ALL_LIBS} -lpng"
+ use tiff && \
+ EX_SRC="${EX_SRC} to_tif.c" \
+ EX_OBJ="${EX_OBJ} to_tif.o" \
+ EX_DEFS="${EX_DEFS} -DTIF" \
+ ALL_LIBS="${ALL_LIBS} -ltiff"
+ emake all
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/info /usr/share/man/man1
+
+ make prefix="${D}/usr" \
+ mandir="${D}/usr/share/man" \
+ infodir="${D}/usr/share/info" \
+ install || die
+}
diff --git a/media-gfx/hp2xx/hp2xx-3.4.4.ebuild b/media-gfx/hp2xx/hp2xx-3.4.4.ebuild
new file mode 100644
index 000000000000..387ff013c002
--- /dev/null
+++ b/media-gfx/hp2xx/hp2xx-3.4.4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils base
+
+DESCRIPTION="Versatile tool to convert Hewlett-Packard's HP-GL plotter language into other graphics formats"
+HOMEPAGE="https://www.gnu.org/software/hp2xx/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="
+ media-libs/libpng
+ media-libs/tiff
+ sys-libs/zlib
+ virtual/jpeg
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-r1.patch" )
+
+src_prepare() {
+ base_src_prepare
+ cp -v makes/generic.mak sources/Makefile || die
+}
+
+src_compile() {
+ cd "${S}/sources" || die
+ emake all
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/info /usr/share/man/man1
+
+ make prefix="${D}/usr" \
+ mandir="${D}/usr/share/man" \
+ infodir="${D}/usr/share/info" \
+ install || die
+}
diff --git a/media-gfx/hp2xx/metadata.xml b/media-gfx/hp2xx/metadata.xml
new file mode 100644
index 000000000000..06c031cac403
--- /dev/null
+++ b/media-gfx/hp2xx/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>konstantin@muenning.com</email>
+ <name>Konstantin Münning</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>printing@gentoo.org</email>
+ <name>Gentoo Printing Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ </pkgmetadata>