public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/jpeg2ps/, media-gfx/jpeg2ps/files/
Date: Wed,  6 Nov 2019 23:07:19 +0000 (UTC)	[thread overview]
Message-ID: <1573081234.5147fa76d4628a08aa093bad13f38a8cfc6e8638.ulm@gentoo> (raw)

commit:     5147fa76d4628a08aa093bad13f38a8cfc6e8638
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  6 22:54:54 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Nov  6 23:00:34 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5147fa76

media-gfx/jpeg2ps: Update ebuild for EAPI 7.

Closes: https://bugs.gentoo.org/335526
Closes: https://bugs.gentoo.org/468664
Bug: https://bugs.gentoo.org/697288
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff |  7 ++--
 media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild          | 46 ++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 3 deletions(-)

diff --git a/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff b/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff
index f07b69c5bc6..ffc33233365 100644
--- a/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff
+++ b/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff
@@ -1,6 +1,7 @@
-diff --exclude='*~' -Naur jpeg2ps-1.9.orig/asc85ec.c jpeg2ps-1.9/asc85ec.c
---- jpeg2ps-1.9.orig/asc85ec.c	2005-09-10 23:02:15.000000000 -0300
-+++ jpeg2ps-1.9/asc85ec.c	2005-09-10 23:08:08.000000000 -0300
+https://bugs.gentoo.org/105561
+
+--- jpeg2ps-1.9.orig/asc85ec.c
++++ jpeg2ps-1.9/asc85ec.c
 @@ -3,6 +3,7 @@
  
  #include <stdio.h>

diff --git a/media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild b/media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild
new file mode 100644
index 00000000000..7d2bc418a0d
--- /dev/null
+++ b/media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs readme.gentoo-r1
+
+DESCRIPTION="Convert JPEG images to Postscript using a wrapper"
+HOMEPAGE="https://web.archive.org/web/20131003144811/http://www.pdflib.com/download/free-software/jpeg2ps/"
+SRC_URI="https://web.archive.org/web/20131003165952/http://www.pdflib.com/fileadmin/pdflib/products/more/${PN}/${P}.tar.gz"
+
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="metric"
+
+PATCHES=("${FILESDIR}"/${P}-include.diff)
+
+src_compile() {
+	emake \
+		CC="$(tc-getCC)" \
+		LD="$(tc-getCC)" \
+		CFLAGS="-c ${CFLAGS} $(usex metric "-DA4" "")" \
+		LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+	dobin jpeg2ps
+	doman jpeg2ps.1
+	dodoc jpeg2ps.txt
+
+	if use metric; then
+		DOC_CONTENTS="By default, this installation of jpeg2ps will generate
+			A4 size output.  You can force letter output with
+			\n\tjpeg2ps -p letter file.jpg > file.ps"
+	else
+		DOC_CONTENTS="By default, this installation of jpeg2ps will generate
+			letter size output.  You can force A4 output with
+			\n\tjpeg2ps -p a4 file.jpg > file.ps"
+	fi
+	readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+	readme.gentoo_print_elog
+}


                 reply	other threads:[~2019-11-06 23:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1573081234.5147fa76d4628a08aa093bad13f38a8cfc6e8638.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox