summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Bouyer <stubear@gentoo.org>2002-07-09 13:57:45 +0000
committerStuart Bouyer <stubear@gentoo.org>2002-07-09 13:57:45 +0000
commit7447c84861666c3e6aa48bdec2775fdceb0e6a01 (patch)
tree20e94292357a3ff048907a80bd6e4863b8344e28 /app-i18n/jless-iso254
parentInitial release of xmms-infopipe. (diff)
downloadgentoo-2-7447c84861666c3e6aa48bdec2775fdceb0e6a01.tar.gz
gentoo-2-7447c84861666c3e6aa48bdec2775fdceb0e6a01.tar.bz2
gentoo-2-7447c84861666c3e6aa48bdec2775fdceb0e6a01.zip
Initial import of jless package
Diffstat (limited to 'app-i18n/jless-iso254')
-rw-r--r--app-i18n/jless-iso254/ChangeLog9
-rw-r--r--app-i18n/jless-iso254/files/digest-jless-iso254-3582
-rw-r--r--app-i18n/jless-iso254/files/lesspipe.sh-r141
-rw-r--r--app-i18n/jless-iso254/jless-iso254-358.ebuild50
4 files changed, 102 insertions, 0 deletions
diff --git a/app-i18n/jless-iso254/ChangeLog b/app-i18n/jless-iso254/ChangeLog
new file mode 100644
index 000000000000..91a44b320603
--- /dev/null
+++ b/app-i18n/jless-iso254/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/jless-iso254/ChangeLog,v 1.1 2002/07/09 13:57:45 stubear Exp $
+
+*jless-iso254-358 (09 Jul 2002)
+
+ 09 Jul 2002; Stuart Bouyer <stubear@gentoo.org> jless-iso254-358.ebuild :
+ Initial addition of jless pacakge. Shamelessly ripped from Brandon form
+ bug #3685. Thanks lostlogic :)
diff --git a/app-i18n/jless-iso254/files/digest-jless-iso254-358 b/app-i18n/jless-iso254/files/digest-jless-iso254-358
new file mode 100644
index 000000000000..629312502afb
--- /dev/null
+++ b/app-i18n/jless-iso254/files/digest-jless-iso254-358
@@ -0,0 +1,2 @@
+MD5 692a94060a50dd35a4d65176cb899444 less-358.tar.gz 231140
+MD5 4ccb02cfcdd9aafc2b147d56c895716a less-358-iso254.patch.gz 71182
diff --git a/app-i18n/jless-iso254/files/lesspipe.sh-r1 b/app-i18n/jless-iso254/files/lesspipe.sh-r1
new file mode 100644
index 000000000000..a647ac1b51b1
--- /dev/null
+++ b/app-i18n/jless-iso254/files/lesspipe.sh-r1
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+# Preprocessor for 'less'. Used when this environment variable is set:
+# LESSOPEN="|lesspipe.sh %s"
+
+lesspipe() {
+
+ case "$1" in
+
+ *.tar.bz2) tar tjvvf $1 2>/dev/null ;;
+ *.bz2) bzip2 -dc $1 2>/dev/null ;;
+ *.tar) tar tvvf $1 2>/dev/null ;;
+ *.tbz2) tar tjvvf $1 2>/dev/null ;;
+ *.tbz) tar tjvvf $1 2>/dev/null ;;
+ *.tar.gz) tar tzvvf $1 2>/dev/null ;;
+ *.tgz) tar tzvvf $1 2>/dev/null ;;
+ *.tar.z) tar tzvvf $1 2>/dev/null ;;
+ *.tar.Z) tar tzvvf $1 2>/dev/null ;;
+ *.z) gzip -dc $1 2>/dev/null ;;
+ *.Z) gzip -dc $1 2>/dev/null ;;
+ *.zip) unzip -l $1 2>/dev/null ;;
+ *.rpm) rpm -qilp "$1" 2>/dev/null ;;
+ *.[1-9] | *.n | *.man)
+ [ "$(file -L $1 | cut -d ' ' -f 2)" = "troff" -o \
+ "$(file -L $1 | cut -d ' ' -f 2)" = "ASCII" ] &&
+ groff -S -s -p -t -e -Tascii -mandoc "$1" 2>/dev/null ;;
+ *.[1-9].gz | *.n.gz | *.man.gz)
+ [ "$(gzip -dc $1 2>/dev/null|file -|tr -s ' '|cut -d ' ' -f3)" = "troff" -o \
+ "$(gzip -dc $1 2>/dev/null|file -|tr -s ' '|cut -d ' ' -f3)" = "ASCII" ] &&
+ gzip -dc $1 2>/dev/null | groff -S -s -p -t -e -Tascii -mandoc ;;
+ *.gz) gzip -dc $1 2>/dev/null ;; # keep this after the above statement :)
+ *) FILE="$(file -L $1)"
+ FILE1="$(echo $FILE | cut -d ' ' -f 2)"
+ FILE2="$(echo $FILE | cut -d ' ' -f 3)"
+ [ "$FILE1" = "Linux/i386" -o "$FILE2" = "Linux/i386" -o \
+ "$FILE1" = "ELF" -o "$FILE2" = "ELF" ] && strings $1 ;;
+
+ esac
+}
+
+lesspipe $1
diff --git a/app-i18n/jless-iso254/jless-iso254-358.ebuild b/app-i18n/jless-iso254/jless-iso254-358.ebuild
new file mode 100644
index 000000000000..167000fa93b9
--- /dev/null
+++ b/app-i18n/jless-iso254/jless-iso254-358.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/jless-iso254/jless-iso254-358.ebuild,v 1.1 2002/07/09 13:57:45 stubear Exp $
+
+KEYWORDS="x86"
+A=less-${PV}.tar.gz
+S=${WORKDIR}/less-${PV}
+DESCRIPTION="Japanese enabled pager -- less-iso254"
+
+SRC_URI="ftp://ftp.gnu.org/pub/gnu/less/less-${PV}.tar.gz
+ http://www.io.com/~kazushi/less/less-358-iso254.patch.gz"
+HOMEPAGE="http://www.io.com/~kazushi/less/"
+DEPEND="virtual/glibc
+ >=sys-libs/ncurses-5.2"
+RDEPEND="${DEPEND}"
+LICENSE="GPL"
+SLOT="0"
+
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ zcat ${DISTDIR}/less-${PV}-iso254.patch | \
+ patch -s -p1 || die "Patch failed"
+}
+
+src_compile() {
+ cd ${S}
+
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --without-cs-regex \
+ --enable-msb \
+ --enable-jisx0213 \
+ --with-regex=auto \
+ --with-editor=/usr/bin/nano || die "Configure failed"
+
+ emake || die "Make failed"
+}
+
+src_install() {
+ make prefix=${D}/usr \
+ binprefix=j \
+ manprefix=j install || \
+ die "Install failed"
+ dodoc COPYING LICENSE NEWS README README.iso README.iso.jp
+ exeinto /usr/bin
+ newexe ${FILESDIR}/lesspipe.sh-r1 lesspipe.sh
+}