commit:     c930063a72fdb869c1f52c83982996604e631271
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 27 11:08:05 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Oct 27 11:11:11 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c930063a

app-text/djvu: Use optfeature

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 app-text/djvu/djvu-3.5.25.3.ebuild | 8 ++++----
 app-text/djvu/djvu-3.5.27.ebuild   | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/app-text/djvu/djvu-3.5.25.3.ebuild 
b/app-text/djvu/djvu-3.5.25.3.ebuild
index e4efe10..a7cda09 100644
--- a/app-text/djvu/djvu-3.5.25.3.ebuild
+++ b/app-text/djvu/djvu-3.5.25.3.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
+
 inherit autotools eutils fdo-mime flag-o-matic
 
 MY_P="${PN}libre-${PV#*_p}"
@@ -63,9 +64,8 @@ src_install() {
 
 pkg_postinst() {
        fdo-mime_mime_database_update
-       if ! has_version app-text/djview; then
-               elog "For djviewer or browser plugin, emerge app-text/djview."
-       fi
+       has_version app-text/djview || \
+               optfeature "For djviewer or browser plugin" app-text/djview
 }
 
 pkg_postrm() {

diff --git a/app-text/djvu/djvu-3.5.27.ebuild b/app-text/djvu/djvu-3.5.27.ebuild
index be1c6c3..1322b75 100644
--- a/app-text/djvu/djvu-3.5.27.ebuild
+++ b/app-text/djvu/djvu-3.5.27.ebuild
@@ -3,6 +3,7 @@
 # $Id$
 
 EAPI=5
+
 inherit eutils fdo-mime flag-o-matic
 
 MY_P="${PN}libre-${PV#*_p}"
@@ -54,9 +55,8 @@ src_install() {
 
 pkg_postinst() {
        fdo-mime_mime_database_update
-       if ! has_version app-text/djview; then
-               elog "For djviewer or browser plugin, emerge app-text/djview."
-       fi
+       has_version app-text/djview || \
+               optfeature "For djviewer or browser plugin" app-text/djview
 }
 
 pkg_postrm() {

Reply via email to