1 |
commit: c930063a72fdb869c1f52c83982996604e631271 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 27 11:08:05 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 27 11:11:11 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c930063a |
7 |
|
8 |
app-text/djvu: Use optfeature |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
app-text/djvu/djvu-3.5.25.3.ebuild | 8 ++++---- |
14 |
app-text/djvu/djvu-3.5.27.ebuild | 6 +++--- |
15 |
2 files changed, 7 insertions(+), 7 deletions(-) |
16 |
|
17 |
diff --git a/app-text/djvu/djvu-3.5.25.3.ebuild b/app-text/djvu/djvu-3.5.25.3.ebuild |
18 |
index e4efe10..a7cda09 100644 |
19 |
--- a/app-text/djvu/djvu-3.5.25.3.ebuild |
20 |
+++ b/app-text/djvu/djvu-3.5.25.3.ebuild |
21 |
@@ -1,8 +1,9 @@ |
22 |
-# Copyright 1999-2014 Gentoo Foundation |
23 |
+# Copyright 1999-2015 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
# $Id$ |
26 |
|
27 |
EAPI=5 |
28 |
+ |
29 |
inherit autotools eutils fdo-mime flag-o-matic |
30 |
|
31 |
MY_P="${PN}libre-${PV#*_p}" |
32 |
@@ -63,9 +64,8 @@ src_install() { |
33 |
|
34 |
pkg_postinst() { |
35 |
fdo-mime_mime_database_update |
36 |
- if ! has_version app-text/djview; then |
37 |
- elog "For djviewer or browser plugin, emerge app-text/djview." |
38 |
- fi |
39 |
+ has_version app-text/djview || \ |
40 |
+ optfeature "For djviewer or browser plugin" app-text/djview |
41 |
} |
42 |
|
43 |
pkg_postrm() { |
44 |
|
45 |
diff --git a/app-text/djvu/djvu-3.5.27.ebuild b/app-text/djvu/djvu-3.5.27.ebuild |
46 |
index be1c6c3..1322b75 100644 |
47 |
--- a/app-text/djvu/djvu-3.5.27.ebuild |
48 |
+++ b/app-text/djvu/djvu-3.5.27.ebuild |
49 |
@@ -3,6 +3,7 @@ |
50 |
# $Id$ |
51 |
|
52 |
EAPI=5 |
53 |
+ |
54 |
inherit eutils fdo-mime flag-o-matic |
55 |
|
56 |
MY_P="${PN}libre-${PV#*_p}" |
57 |
@@ -54,9 +55,8 @@ src_install() { |
58 |
|
59 |
pkg_postinst() { |
60 |
fdo-mime_mime_database_update |
61 |
- if ! has_version app-text/djview; then |
62 |
- elog "For djviewer or browser plugin, emerge app-text/djview." |
63 |
- fi |
64 |
+ has_version app-text/djview || \ |
65 |
+ optfeature "For djviewer or browser plugin" app-text/djview |
66 |
} |
67 |
|
68 |
pkg_postrm() { |