diff options
author | jlam <jlam@pkgsrc.org> | 2005-05-17 22:00:13 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-05-17 22:00:13 +0000 |
commit | 4d2fb797dba9c9dd13af2cd19bccb1f3e76935f5 (patch) | |
tree | d0b2f8d38833526831bd2c92e4d8ba7169374746 /print/teTeX3-texmf | |
parent | 019698e51a63384fdffb680066acf1bef26bd93b (diff) | |
download | pkgsrc-4d2fb797dba9c9dd13af2cd19bccb1f3e76935f5.tar.gz |
Use EXTRACT_CMD_OPTS.tar.gz and EXTRACT_CMD.tar.gz instead of figuring
out the whole command line necessary to extract a .tar.gz file.
Diffstat (limited to 'print/teTeX3-texmf')
-rw-r--r-- | print/teTeX3-texmf/Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/print/teTeX3-texmf/Makefile b/print/teTeX3-texmf/Makefile index bed8b506a35..2b37581ee5a 100644 --- a/print/teTeX3-texmf/Makefile +++ b/print/teTeX3-texmf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2005/05/16 16:33:24 kristerw Exp $ +# $NetBSD: Makefile,v 1.6 2005/05/17 22:00:13 jlam Exp $ # DISTNAME= tetex-texmf-3.0 @@ -6,6 +6,7 @@ PKGREVISION= 1 PKGNAME= ${DISTNAME:C/tetex/teTeX/} CATEGORIES= print MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/3.0/distrib/} +EXTRACT_SUFX= .tar.gz MAINTAINER= kei@NetBSD.org,hubertf@NetBSD.org HOMEPAGE= http://www.tug.org/tetex/ @@ -22,13 +23,16 @@ USE_GNU_TOOLS+= patch .include "../../mk/bsd.prefs.mk" +.if !empty(EXTRACT_USING:M*tar) +EXTRACT_CMD_OPTS${EXTRACT_SUFX}= -X ${FILEDIR}/exclude -p +.elif !empty(EXTRACT_USING:Mpax) +EXTRACT_CMD_OPTS${EXTRACT_SUFX}= -c `${CAT} ${FILESDIR}/exclude` +.endif + do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/texmf -.if !empty(EXTRACT_USING:Mgtar) - cd ${PREFIX}/share/texmf; ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | ${GTAR} -X ${FILESDIR}/exclude -xpf - -.else - cd ${PREFIX}/share/texmf; ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | ${PAX} -O -cr `${CAT} ${FILESDIR}/exclude` -.endif + extract_file=${_DISTDIR:Q}/${DISTFILES:Q}; \ + cd ${PREFIX}/share/texmf; ${EXTRACT_CMD${EXTRACT_SUFX}} cd ${PREFIX}/share/texmf/dvipdfm/config && \ ${PATCH} ${_PATCH_BACKUP_ARG} .orig < ${FILESDIR}/dvipdfm-config.diff && \ ${RM} config.orig |