pkgsrc/textproc/texi2html/Makefile
agc 171e025b4a Rewrite the extraction commands to be more intuitive.
In the vast majority of cases, nothing has changed (i.e. .tgz, .tar.gz,
and .tar.bz2).

EXTRACT_USING_PAX can be set as before.

For custom extractions, instead of using EXTRACT_BEFORE_ARGS,
EXTRACT_AFTER_ARGS and EXTRACT_CMD, simply set EXTRACT_CMD to be the
command needed to decompress and extract the lements from the archive.
${DOWNLOADED_DISTFILE} can be used to reference the distfile(s).
e.g. for compressed shars, where previously there was:

EXTRACT_CMD=           ${GZCAT}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS=    |sh

now use:

EXTRACT_CMD=           ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH}
1999-04-01 14:07:52 +00:00

31 lines
832 B
Makefile

# $NetBSD: Makefile,v 1.6 1999/04/01 14:07:56 agc Exp $
#
DISTNAME= texi2html
PKGNAME= texi2html-1.52
CATEGORIES= textproc
MASTER_SITES= http://wwwcn1.cern.ch/dci/texi2html/
EXTRACT_SUFX= .shar.Z
MAINTAINER= tv@netbsd.org
HOMEPAGE= http://wwwcn1.cern.ch/dci/texi2html/
USE_PERL5= YES
EXTRACT_CMD= ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH}
NO_WRKSUBDIR= yes
NO_CONFIGURE= yes
do-build:
cd ${WRKSRC}; \
${SED} -e s@/usr/local/bin/perl@${PREFIX}/bin/perl@ texi2html >texi2html.new; \
${SED} -e 1,/__END__/d texi2html >texi2html.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/texi2html.new ${PREFIX}/bin/texi2html
${INSTALL_DATA} ${WRKSRC}/texi2html.1 ${PREFIX}/man/man1/
${INSTALL_DATA_DIR} ${PREFIX}/share/texi2html
${INSTALL_DATA} ${WRKSRC}/invisible.xbm ${PREFIX}/share/texi2html
.include "../../mk/bsd.pkg.mk"