# Copyright 2002 moto kawasaki # Distributed under the terms of the GNU General Public License, v2 or later # Author moto kawasaki # P: package name and version, automatically be set. # A: name w/o path of the main archive file A="less-358.tar.gz" MY_PATCH="less-358-iso254.patch.gz" MY_A="${A} ${MY_PATCH}" # S: source directory S=${WORKDIR}/less-358 # DESCRIPTION: short, one line description DESCRIPTION="Japanese enabled pager -- less-358-iso254" # SRC_URI: URI of source code archive MY_SRC_URI="http://www.io.com/~kazushi/less/" SRC_URI=`for i in ${MY_SRC_URI} do for j in ${MY_A} do echo -n ${i}/${j} " " done done` # HOMEPAGE: URI of the original HOMEPAGE="http://www.io.com/~kazushi/less/" # DEPEND: build dependency DEPEND="" # RDEPEND: runtime dependency RDEPEND="" src_unpack() { unpack ${A}; cd ${S} zcat ${DISTDIR}/${MY_PATCH} | patch -s -p1; } src_compile() { cd ${S}; ./configure \ --prefix=/usr/local \ --without-cs-regex \ --enable-msb \ --enable-jisx0213 \ --with-regex=auto \ --with-editor=/usr/bin/nano emake || die } src_install() { make prefix=${D}/usr/local binprefix=j manprefix=j install }