1 |
commit: c6be280f00da3f105fb2e9a2ec2e6ad43f1f6024 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 4 12:34:22 2021 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 12:41:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6be280f |
7 |
|
8 |
app-text/djvu: move inkscape and librsvg into BDEPEND. |
9 |
|
10 |
The "inkscape" and "rsvg-convert" commands are run at build-time to |
11 |
generate icons; thus they belong in BDEPEND. This commit moves them |
12 |
there from DEPEND. Done in a new unstable revision because it isn't |
13 |
very important to anyone who has already installed a stable version. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/788073 |
16 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
17 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
18 |
|
19 |
app-text/djvu/djvu-3.5.28-r1.ebuild | 67 +++++++++++++++++++++++++++++++++++++ |
20 |
1 file changed, 67 insertions(+) |
21 |
|
22 |
diff --git a/app-text/djvu/djvu-3.5.28-r1.ebuild b/app-text/djvu/djvu-3.5.28-r1.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..af3433f46f9 |
25 |
--- /dev/null |
26 |
+++ b/app-text/djvu/djvu-3.5.28-r1.ebuild |
27 |
@@ -0,0 +1,67 @@ |
28 |
+# Copyright 1999-2021 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+inherit autotools desktop flag-o-matic optfeature xdg |
34 |
+ |
35 |
+MY_P="${PN}libre-${PV#*_p}" |
36 |
+DESCRIPTION="DjVu viewers, encoders and utilities" |
37 |
+HOMEPAGE="http://djvu.sourceforge.net/" |
38 |
+SRC_URI="http://downloads.sourceforge.net/djvu/${MY_P}.tar.gz" |
39 |
+S="${WORKDIR}/${MY_P%%.3}" |
40 |
+ |
41 |
+LICENSE="GPL-2" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" |
44 |
+IUSE="debug doc jpeg tiff xml" |
45 |
+ |
46 |
+RDEPEND="jpeg? ( virtual/jpeg:0 ) |
47 |
+ tiff? ( media-libs/tiff:0= )" |
48 |
+DEPEND="${RDEPEND}" |
49 |
+ |
50 |
+# inkscape/rsvg-convert are used to generate icons at build-time only |
51 |
+BDEPEND="app-arch/unzip |
52 |
+ || ( gnome-base/librsvg media-gfx/inkscape )" |
53 |
+ |
54 |
+DOCS=( NEWS README ) |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ eautoreconf |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ use debug && append-cppflags "-DRUNTIME_DEBUG_ONLY" |
63 |
+ |
64 |
+ # We install all desktop files by hand. |
65 |
+ econf \ |
66 |
+ $(use_enable xml xmltools) \ |
67 |
+ $(use_with jpeg) \ |
68 |
+ $(use_with tiff) \ |
69 |
+ --disable-desktopfiles |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ default |
74 |
+ |
75 |
+ find "${ED}" -name '*.la' -delete || die |
76 |
+ |
77 |
+ use doc && dodoc -r doc |
78 |
+ |
79 |
+ # Install desktop files. |
80 |
+ cd desktopfiles || die |
81 |
+ for i in {22,32,48,64}; do |
82 |
+ insinto /usr/share/icons/hicolor/${i}x${i}/mimetypes |
83 |
+ newins prebuilt-hi${i}-djvu.png image-vnd.djvu.png |
84 |
+ done |
85 |
+ |
86 |
+ insinto /usr/share/mime/packages |
87 |
+ doins djvulibre-mime.xml |
88 |
+} |
89 |
+ |
90 |
+pkg_postinst() { |
91 |
+ xdg_pkg_postinst |
92 |
+ |
93 |
+ optfeature "djviewer or browser plugin" app-text/djview |
94 |
+} |