Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/u2ps/files/, app-text/u2ps/
Date: Sun, 22 Dec 2019 19:49:38
Message-Id: 1577044162.d10f7f920ba85ee09e6fa585eccaa8979ce1df6a.dilfridge@gentoo
1 commit: d10f7f920ba85ee09e6fa585eccaa8979ce1df6a
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 22 19:46:42 2019 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 22 19:49:22 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d10f7f92
7
8 app-text/u2ps: Version bump
9
10 Package-Manager: Portage-2.3.81, Repoman-2.3.20
11 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
12
13 app-text/u2ps/Manifest | 1 +
14 app-text/u2ps/files/u2ps-1.1-nostrip.patch | 14 ++++++++++++++
15 app-text/u2ps/u2ps-1.1.ebuild | 29 +++++++++++++++++++++++++++++
16 3 files changed, 44 insertions(+)
17
18 diff --git a/app-text/u2ps/Manifest b/app-text/u2ps/Manifest
19 index 3de90669892..1e71263526d 100644
20 --- a/app-text/u2ps/Manifest
21 +++ b/app-text/u2ps/Manifest
22 @@ -1 +1,2 @@
23 +DIST u2ps-1.1.tar.gz 110892 BLAKE2B af0dd92d47a8530e8434983132c3bf0f0e6b88ff14cc9d7e73e95c842b4c1dad1b900d91c22a34c8f94373e62382841329e5b2e6b3aa9b51f6e5d6d6d164b596 SHA512 44a470268aafe7b90c17e14a15864924d0ba78b0c8707b9bf076e13b262a9d43d71b6527c5a995f82741e52fe2d07eac6a2626921e7465127a57405d4b5babd3
24 DIST u2ps-full-0.8.4.tar.gz 5496922 BLAKE2B 416a206b768328cf1a268b4706578610e6bed45ee7475d52de515e112e51bbfcc777b2f21603826d52da42b9c6a3bd10dd4e95920e77c14e957ad4a6d0888984 SHA512 31e5c22163a934a3e153ec95e2e5dd94ce79f71a72278a386a6446b1dd053161c896344c51b696c37d838eb3f06fa6fe1db6b5daa55812a06467b2525266363e
25
26 diff --git a/app-text/u2ps/files/u2ps-1.1-nostrip.patch b/app-text/u2ps/files/u2ps-1.1-nostrip.patch
27 new file mode 100644
28 index 00000000000..33ac79c4909
29 --- /dev/null
30 +++ b/app-text/u2ps/files/u2ps-1.1-nostrip.patch
31 @@ -0,0 +1,14 @@
32 +diff -ruN u2ps-1.1.orig/Makefile u2ps-1.1/Makefile
33 +--- u2ps-1.1.orig/Makefile 2019-02-17 20:01:48.000000000 +0100
34 ++++ u2ps-1.1/Makefile 2019-12-22 20:43:17.667058496 +0100
35 +@@ -18,8 +18,8 @@
36 +
37 + install:
38 + install -dm 0755 $(DESTDIR)$(bindir)
39 +- install -sm 0755 u2ps $(DESTDIR)$(bindir)/u2ps
40 +- install -sm 0755 psfrem $(DESTDIR)$(bindir)/psfrem
41 ++ install -m 0755 u2ps $(DESTDIR)$(bindir)/u2ps
42 ++ install -m 0755 psfrem $(DESTDIR)$(bindir)/psfrem
43 + install -dm 0755 $(DESTDIR)$(basedir)
44 + install -dm 0755 $(DESTDIR)$(basedir)/ProcSet
45 + install -m 0644 res/*.ps $(DESTDIR)$(basedir)
46
47 diff --git a/app-text/u2ps/u2ps-1.1.ebuild b/app-text/u2ps/u2ps-1.1.ebuild
48 new file mode 100644
49 index 00000000000..c28a8ccdd0a
50 --- /dev/null
51 +++ b/app-text/u2ps/u2ps-1.1.ebuild
52 @@ -0,0 +1,29 @@
53 +# Copyright 1999-2019 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +
58 +DESCRIPTION="A text to PostScript converter like a2ps, but supports UTF-8"
59 +HOMEPAGE="https://github.com/arsv/u2ps"
60 +SRC_URI="https://github.com/arsv/${PN}/releases/download/${PV}/${P}.tar.gz"
61 +
62 +LICENSE="GPL-3"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~x86"
65 +IUSE=""
66 +
67 +DEPEND="app-text/ghostscript-gpl"
68 +RDEPEND="${DEPEND}"
69 +BDEPEND="${DEPEND}"
70 +
71 +PATCHES=( "${FILESDIR}/${P}-nostrip.patch" )
72 +
73 +src_configure() {
74 + # this isnt autoconf, so econf fails...
75 + ./configure \
76 + --prefix=/usr \
77 + --datadir=/usr/share \
78 + --mandir=/usr/share/man \
79 + --with-gs=/usr/bin/gs \
80 + || die 'configure failed'
81 +}