summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2003-11-05 20:13:16 +0000
committerMamoru Komachi <usata@gentoo.org>2003-11-05 20:13:16 +0000
commit54c13e730f98083cd6e9988ae51c752297f0ea90 (patch)
tree379d32fcbc1989a303f481d9ce6383bad98820eb /media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild
parenthotplug (diff)
downloadhistorical-54c13e730f98083cd6e9988ae51c752297f0ea90.tar.gz
historical-54c13e730f98083cd6e9988ae51c752297f0ea90.tar.bz2
historical-54c13e730f98083cd6e9988ae51c752297f0ea90.zip
Added metadata.xml. Cleaned install path. Marked 0.9.1 stable.
Diffstat (limited to 'media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild')
-rw-r--r--media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild31
1 files changed, 22 insertions, 9 deletions
diff --git a/media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild b/media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild
index 5c09323807f1..03838c4c7792 100644
--- a/media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild
+++ b/media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild,v 1.1 2003/08/13 17:13:00 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild,v 1.2 2003/11/05 20:13:11 usata Exp $
IUSE=""
@@ -10,7 +10,7 @@ HOMEPAGE="http://homepage3.nifty.com/slokar/fb/w3mimg.html"
SLOT="0"
LICENSE="w3m BSD"
-KEYWORDS="~x86"
+KEYWORDS="x86"
DEPEND=">=media-libs/stimg-0.1.0
virtual/textbrowser"
@@ -20,19 +20,32 @@ src_compile() {
}
src_install() {
- if has_version 'net-www/w3m' && has_version 'net-www/w3m-m17n' ; then
+
+ local realbin
+
+ if has_version '<net-www/w3m-0.4.2' ; then
exeinto /usr/lib/w3m
doexe w3mimgdisplayfb
- dodir /usr/lib/w3m-m17n
- dohard /usr/lib/w3m/w3mimgdisplayfb \
- /usr/lib/w3m-m17n/w3mimgdisplayfb
- elif has_version 'net-www/w3m' ; then
- exeinto /usr/lib/w3m
+ elif has_version '>=net-www/w3m-0.4.2-r1' ; then
+ exeinto /usr/libexec/w3m
doexe w3mimgdisplayfb
- elif has_version 'net-www/w3m-m17n' ; then
+ fi
+ if has_version '<net-www/w3m-m17n-0.4.2' ; then
exeinto /usr/lib/w3m-m17n
doexe w3mimgdisplayfb
+ elif has_version '>=net-www/w3m-m17n-0.4.2' ; then
+ exeinto /usr/libexec/w3m-m17n
+ doexe w3mimgdisplayfb
fi
+ for exe in /usr/lib{,exec}/w3m{,-m17n}/w3mimgdisplayfb ; do
+ if [ -n "$realexe" ] ; then
+ rm ${D}$exe
+ dohard $realexe $exe
+ elif [ -x ${D}$exe ] ; then
+ realexe=$exe
+ fi
+ done
+
dodoc COPYING readme.txt
}