Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/diff-pdf/
Date: Tue, 19 Feb 2019 14:26:17
Message-Id: 1550586176.0cc3af652207b2bfa99af736802d98cb78b837a9.mjo@gentoo
1 commit: 0cc3af652207b2bfa99af736802d98cb78b837a9
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 16 17:30:19 2019 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 19 14:22:56 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cc3af65
7
8 app-text/diff-pdf: new package to visually compare two PDF files.
9
10 This has been an open request (and desire of mine) for a while, but
11 the older releases depended on the deprecated 2.8 slot of wxGTK.
12 However a new release was recently made with all of the upstream
13 improvements from the past few years, so it is now possible to
14 package this properly. Here it is.
15
16 Thanks to Erik Quaeghebeur who opened the package request bug,
17 supplied an ebuild, and helped me do some testing.
18
19 Closes: https://bugs.gentoo.org/549260
20 Reported-by: Erik Quaeghebeur
21 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
22 Package-Manager: Portage-2.3.51, Repoman-2.3.11
23
24 app-text/diff-pdf/Manifest | 1 +
25 app-text/diff-pdf/diff-pdf-0.3.ebuild | 39 +++++++++++++++++++++++++++++++++++
26 app-text/diff-pdf/metadata.xml | 8 +++++++
27 3 files changed, 48 insertions(+)
28
29 diff --git a/app-text/diff-pdf/Manifest b/app-text/diff-pdf/Manifest
30 new file mode 100644
31 index 00000000000..26aac9e3e9f
32 --- /dev/null
33 +++ b/app-text/diff-pdf/Manifest
34 @@ -0,0 +1 @@
35 +DIST diff-pdf-0.3.tar.gz 132862 BLAKE2B bb3fa163337482785778fa7cbeab3e9f883d8537e4a905592eb20f4bb876597f500beaa2d9f13706887e1d340dd378c68c231b91a4dd478fb206b32f2cbd768c SHA512 b85585162b498c5abf14020ad04616ebdb5efce25b20604dab81c6068a036a818d7e10ddbbdb69d278d4b5a46ab9b9aa782a52e37f278f3e9db7b4d2259aaa08
36
37 diff --git a/app-text/diff-pdf/diff-pdf-0.3.ebuild b/app-text/diff-pdf/diff-pdf-0.3.ebuild
38 new file mode 100644
39 index 00000000000..1f289d32bcb
40 --- /dev/null
41 +++ b/app-text/diff-pdf/diff-pdf-0.3.ebuild
42 @@ -0,0 +1,39 @@
43 +# Copyright 1999-2019 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +# No EAPI=7 support in wxwidgets.eclass.
47 +EAPI=6
48 +
49 +inherit wxwidgets
50 +
51 +DESCRIPTION="A simple tool for visually comparing two PDF files"
52 +HOMEPAGE="http://vslavik.github.io/${PN}/ https://github.com/vslavik/${PN}/"
53 +SRC_URI="https://github.com/vslavik/${PN}/releases/download/v${PV}/${P}.tar.gz"
54 +
55 +# The COPYING.icons file states that two icons were taken from
56 +# version 2.16.5 of GTK+, which is licensed LGPL-2+.
57 +LICENSE="GPL-2+ LGPL-2+"
58 +SLOT="0"
59 +KEYWORDS="~amd64"
60 +IUSE=""
61 +
62 +# The build system checks for "poppler-glib", which is provided only
63 +# when app-text/poppler is built with USE=cairo. Moreover the glib ABI
64 +# of poppler is relatively stable, and I can only assume that diff-pdf
65 +# uses that rather than the low-level libpoppler.so API. Since the
66 +# subslot on app-text/poppler is ONLY for the low-level API, we
67 +# therefore don't need a subslot dependency on app-text/poppler.
68 +#
69 +# Since diff-pdf.cpp includes glib.h directly, I've included
70 +# dev-libs/glib as an explicit dependency. Ditto for x11-libs/cairo.
71 +DEPEND="app-text/poppler[cairo]
72 + dev-libs/glib
73 + x11-libs/cairo
74 + x11-libs/wxGTK:3.0[X]"
75 +RDEPEND="${DEPEND}"
76 +
77 +src_configure() {
78 + WX_GTK_VER="3.0"
79 + setup-wxwidgets
80 + default
81 +}
82
83 diff --git a/app-text/diff-pdf/metadata.xml b/app-text/diff-pdf/metadata.xml
84 new file mode 100644
85 index 00000000000..45125b9b6e9
86 --- /dev/null
87 +++ b/app-text/diff-pdf/metadata.xml
88 @@ -0,0 +1,8 @@
89 +<?xml version="1.0" encoding="UTF-8"?>
90 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
91 +<pkgmetadata>
92 + <maintainer type="person">
93 + <email>mjo@g.o</email>
94 + <name>Michael Orlitzky</name>
95 + </maintainer>
96 +</pkgmetadata>