summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2014-03-15 12:08:44 +0100
committerMartin Väth <martin@mvath.de>2015-10-11 10:49:09 +0200
commit19676b39d0b999f43a35d3b6831cfd1d39608f6d (patch)
tree743954faa1f95a146183846a6428c77fd23af545 /sys-fs/squashmount
parentBump duckduckgo. openrc-wrapper: Add dependency on gentoo-functions (diff)
downloadmv-19676b39d0b999f43a35d3b6831cfd1d39608f6d.tar.gz
mv-19676b39d0b999f43a35d3b6831cfd1d39608f6d.tar.bz2
mv-19676b39d0b999f43a35d3b6831cfd1d39608f6d.zip
Use optfeature, readme.gentoo.eclass
Diffstat (limited to 'sys-fs/squashmount')
-rw-r--r--sys-fs/squashmount/ChangeLog3
-rw-r--r--sys-fs/squashmount/squashmount-4.3.ebuild27
2 files changed, 12 insertions, 18 deletions
diff --git a/sys-fs/squashmount/ChangeLog b/sys-fs/squashmount/ChangeLog
index afdc379e..bda89d8f 100644
--- a/sys-fs/squashmount/ChangeLog
+++ b/sys-fs/squashmount/ChangeLog
@@ -4,6 +4,9 @@
*squashmount-4.3 (09 Mar 2014)
+ 15 Mar 2014; Martin Väth <martin@mvath.de>:
+ Use optfeature
+
09 Mar 2014; Martin Väth <martin@mvath.de>:
Version bump, remove old ebuild.
diff --git a/sys-fs/squashmount/squashmount-4.3.ebuild b/sys-fs/squashmount/squashmount-4.3.ebuild
index de737805..b1163d23 100644
--- a/sys-fs/squashmount/squashmount-4.3.ebuild
+++ b/sys-fs/squashmount/squashmount-4.3.ebuild
@@ -53,25 +53,16 @@ src_install() {
}
pkg_postinst() {
- if ! has_version sys-fs/squashfs-tools[progress-redirect]
- then elog "For better output of ${PN}, it is recommended to install"
- elog "sys-fs/squashfs-tools from the mv overlay with USE=progress-redirect."
- fi
- has_version app-shells/runtitle || elog \
- "Install app-shells/runtitle to let ${PN} update the status bar."
- has_version dev-perl/File-Which || elog \
- "${PN} strongly recommends to install dev-perl/File-Which."
- has_version '>=dev-lang/perl-5.14' || has_version perl-core/Term-ANSIColor || {
- elog "For colored output upgrade to >=dev-lang/perl-5.14 or"
- elog "alternatively install virtual/perl-Term-ANSIColor"
- }
- has_version '>=dev-lang/perl-5.12' || has_version virtual/perl-IO-Compress || {
- elog "For using ? or ?? attributes upgrade to >=dev-lang/perl-5.12 or"
- elog "alternatively install virtual/perl-IO-Compress"
- }
+ optfeature "improved output" 'sys-fs/squashfs-tools[progress-redirect]'
+ optfeature "status bar support" 'app-shells/runtitle'
+ optfeature "improved compatibility and security" 'dev-perl/File-Which'
+ optfeature "colored output" '>=dev-lang/perl-5.14' 'perl-core/Term-ANSIColor'
+ optfeature "using ? or ?? attributes" '>=dev-lang/perl-5.12' 'virtual/perl-IO-Compress'
case " ${REPLACING_VERSIONS}" in
- ' '[0-9][0-9]*|' '[3-9]*|' '2.[0-9][0-9]*|' '2.[7-9]*) :;;
- *) FORCE_PRINT_ELOG="true";;
+ ' '[0-9][0-9]*|' '[3-9]*|' '2.[0-9][0-9]*|' '2.[7-9]*)
+ :;;
+ *)
+ FORCE_PRINT_ELOG="true";;
esac
readme.gentoo_pkg_postinst
}