Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/libpaper/
Date: Mon, 12 Sep 2022 18:33:29
Message-Id: 1663007237.7771b8705df0fa8ae6eef155b67efc401eba5094.sam@gentoo
1 commit: 7771b8705df0fa8ae6eef155b67efc401eba5094
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 12 18:14:47 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 12 18:27:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7771b870
7
8 app-text/libpaper: add 1.2.4
9
10 Closes: https://bugs.gentoo.org/869428
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-text/libpaper/Manifest | 1 +
14 app-text/libpaper/libpaper-1.2.4.ebuild | 40 +++++++++++++++++++++++++++++++++
15 2 files changed, 41 insertions(+)
16
17 diff --git a/app-text/libpaper/Manifest b/app-text/libpaper/Manifest
18 index 8fd05463a034..47f83793461d 100644
19 --- a/app-text/libpaper/Manifest
20 +++ b/app-text/libpaper/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libpaper-1.2.3.tar.gz 1221218 BLAKE2B 55b209896e50f177b9dbd04a53a1663846a2d43c91487d62b1161a09416cbeaf3057ec5c79248a3d54eb35a61081d8e1d8fe0fb80304b03bf3a1b5151f21f2c3 SHA512 768e15f57e6c2ab6805c175ba0eebf1d130b8ff16b1c929e6557c5d8ceb7c94ead4e38cfc48021a5059e55cf43595729e8c04c9eee7949bdd516c8267fb7a6af
23 +DIST libpaper-1.2.4.tar.gz 1221202 BLAKE2B bdcf4372caa045207acdb28c10e7981c3f23f12ef54c989395be2efe38ece51f437fa5bf50618aae7276a864bffc0eef81ab4727b912d63673615f12bf1f2cad SHA512 1baed66c4ecc725f3eae6dda0b4401c17baf23ef846486c1249f075a6e01537c1050d9617e929cff7a38d2b32fd1f8e1e7d7e090eae300434544a92b210a0fca
24 DIST libpaper_1.1.28.tar.gz 42356 BLAKE2B 48c4a28c6ff01bd91e257b6b306e787e5c6112052cff09bdb501d1cc4ddd10964c3588942098a6092d5a44391dfb22e10d5147d4c5012497f473473129ff7422 SHA512 3bf6ebb0af89931d2f72ea4a09a7fa958b2facda5f238983ec7bac39652e08614b33f0de3af74a03457b2a4203eee4950bf18a4b726e79aa64093ace6a1fb0bc
25
26 diff --git a/app-text/libpaper/libpaper-1.2.4.ebuild b/app-text/libpaper/libpaper-1.2.4.ebuild
27 new file mode 100644
28 index 000000000000..df529ad758d3
29 --- /dev/null
30 +++ b/app-text/libpaper/libpaper-1.2.4.ebuild
31 @@ -0,0 +1,40 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DESCRIPTION="Library for handling paper characteristics"
38 +HOMEPAGE="https://github.com/rrthomas/libpaper"
39 +SRC_URI="https://github.com/rrthomas/libpaper/releases/download/v${PV}/${P}.tar.gz"
40 +
41 +# paperspecs is public-domain
42 +LICENSE="LGPL-3+ public-domain"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +
46 +BDEPEND="
47 + sys-apps/help2man
48 +"
49 +
50 +# False positive (runs within a conditional)
51 +QA_AM_MAINTAINER_MODE=".*help2man.*"
52 +
53 +src_configure() {
54 + econf --enable-relocatable
55 +}
56 +
57 +src_install() {
58 + default
59 +
60 + find "${ED}" -type f -name '*.la' -delete || die
61 +
62 + dodir /etc
63 + (paperconf 2>/dev/null || echo a4) > "${ED}"/etc/papersize \
64 + || die "papersize config failed"
65 +}
66 +
67 +pkg_postinst() {
68 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
69 + elog "Run e.g. \"paperconfig -p letter\" as root to use letter-pagesizes"
70 + fi
71 +}