1 |
commit: 5147fa76d4628a08aa093bad13f38a8cfc6e8638 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 6 22:54:54 2019 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 6 23:00:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5147fa76 |
7 |
|
8 |
media-gfx/jpeg2ps: Update ebuild for EAPI 7. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/335526 |
11 |
Closes: https://bugs.gentoo.org/468664 |
12 |
Bug: https://bugs.gentoo.org/697288 |
13 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
14 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
15 |
|
16 |
media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff | 7 ++-- |
17 |
media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild | 46 ++++++++++++++++++++++++ |
18 |
2 files changed, 50 insertions(+), 3 deletions(-) |
19 |
|
20 |
diff --git a/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff b/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff |
21 |
index f07b69c5bc6..ffc33233365 100644 |
22 |
--- a/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff |
23 |
+++ b/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff |
24 |
@@ -1,6 +1,7 @@ |
25 |
-diff --exclude='*~' -Naur jpeg2ps-1.9.orig/asc85ec.c jpeg2ps-1.9/asc85ec.c |
26 |
---- jpeg2ps-1.9.orig/asc85ec.c 2005-09-10 23:02:15.000000000 -0300 |
27 |
-+++ jpeg2ps-1.9/asc85ec.c 2005-09-10 23:08:08.000000000 -0300 |
28 |
+https://bugs.gentoo.org/105561 |
29 |
+ |
30 |
+--- jpeg2ps-1.9.orig/asc85ec.c |
31 |
++++ jpeg2ps-1.9/asc85ec.c |
32 |
@@ -3,6 +3,7 @@ |
33 |
|
34 |
#include <stdio.h> |
35 |
|
36 |
diff --git a/media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild b/media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild |
37 |
new file mode 100644 |
38 |
index 00000000000..7d2bc418a0d |
39 |
--- /dev/null |
40 |
+++ b/media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild |
41 |
@@ -0,0 +1,46 @@ |
42 |
+# Copyright 1999-2019 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=7 |
46 |
+ |
47 |
+inherit toolchain-funcs readme.gentoo-r1 |
48 |
+ |
49 |
+DESCRIPTION="Convert JPEG images to Postscript using a wrapper" |
50 |
+HOMEPAGE="https://web.archive.org/web/20131003144811/http://www.pdflib.com/download/free-software/jpeg2ps/" |
51 |
+SRC_URI="https://web.archive.org/web/20131003165952/http://www.pdflib.com/fileadmin/pdflib/products/more/${PN}/${P}.tar.gz" |
52 |
+ |
53 |
+LICENSE="free-noncomm" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
56 |
+IUSE="metric" |
57 |
+ |
58 |
+PATCHES=("${FILESDIR}"/${P}-include.diff) |
59 |
+ |
60 |
+src_compile() { |
61 |
+ emake \ |
62 |
+ CC="$(tc-getCC)" \ |
63 |
+ LD="$(tc-getCC)" \ |
64 |
+ CFLAGS="-c ${CFLAGS} $(usex metric "-DA4" "")" \ |
65 |
+ LDFLAGS="${LDFLAGS}" |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ dobin jpeg2ps |
70 |
+ doman jpeg2ps.1 |
71 |
+ dodoc jpeg2ps.txt |
72 |
+ |
73 |
+ if use metric; then |
74 |
+ DOC_CONTENTS="By default, this installation of jpeg2ps will generate |
75 |
+ A4 size output. You can force letter output with |
76 |
+ \n\tjpeg2ps -p letter file.jpg > file.ps" |
77 |
+ else |
78 |
+ DOC_CONTENTS="By default, this installation of jpeg2ps will generate |
79 |
+ letter size output. You can force A4 output with |
80 |
+ \n\tjpeg2ps -p a4 file.jpg > file.ps" |
81 |
+ fi |
82 |
+ readme.gentoo_create_doc |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ readme.gentoo_print_elog |
87 |
+} |