commit:     b089b88af4f627a8e209c8c23d189cc1957ee62a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 15 08:42:51 2022 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Jun 15 08:45:37 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b089b88a

media-gfx/jpeg2ps: Update SRC_URI

Bump ebuild to EAPI 8. Update LICENSE and RESTRICT.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ...jpeg2ps-1.9-r2.ebuild => jpeg2ps-1.9-r3.ebuild} | 25 ++++++++++------------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild 
b/media-gfx/jpeg2ps/jpeg2ps-1.9-r3.ebuild
similarity index 52%
rename from media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild
rename to media-gfx/jpeg2ps/jpeg2ps-1.9-r3.ebuild
index 9a25a5e30b7d..430fe4f17edc 100644
--- a/media-gfx/jpeg2ps/jpeg2ps-1.9-r2.ebuild
+++ b/media-gfx/jpeg2ps/jpeg2ps-1.9-r3.ebuild
@@ -1,18 +1,19 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 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";
+SRC_URI="https://distfiles.macports.org/${PN}/${P}.tar.gz";
 
-LICENSE="free-noncomm"
+LICENSE="jpeg2ps"
 SLOT="0"
 KEYWORDS="amd64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
 IUSE="metric"
+RESTRICT="mirror"
 
 PATCHES=("${FILESDIR}"/${P}-include.diff)
 
@@ -20,7 +21,7 @@ src_compile() {
        emake \
                CC="$(tc-getCC)" \
                LD="$(tc-getCC)" \
-               CFLAGS="-c ${CFLAGS} $(usex metric "-DA4" "")" \
+               CFLAGS="-c ${CFLAGS} $(usev metric -DA4)" \
                LDFLAGS="${LDFLAGS}"
 }
 
@@ -29,15 +30,11 @@ src_install() {
        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
+       local size1=letter size2=A4
+       use metric && size1=A4 size2=letter
+       DOC_CONTENTS="By default, this installation of jpeg2ps will generate
+               ${size1} size output. You can force ${size2} output with
+               \n\tjpeg2ps -p ${size2} file.jpg > file.ps"
        readme.gentoo_create_doc
 }
 

Reply via email to