pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/benchmarks/xengine Remove the need to archivers/gsharu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/06a2552ebf6b
branches: trunk
changeset: 495503:06a2552ebf6b
user: jlam <jlam%pkgsrc.org@localhost>
date: Sun Jun 12 04:03:30 2005 +0000
description:
Remove the need to archivers/gsharutils at build-time to extract the
distfiles. This fixes PR pkg/29877.
diffstat:
benchmarks/xengine/Makefile | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (40 lines):
diff -r c2dd33d7a0b2 -r 06a2552ebf6b benchmarks/xengine/Makefile
--- a/benchmarks/xengine/Makefile Sun Jun 12 03:59:42 2005 +0000
+++ b/benchmarks/xengine/Makefile Sun Jun 12 04:03:30 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2005/03/24 21:12:51 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2005/06/12 04:03:30 jlam Exp $
DISTNAME= xengine-1.0.1
PKGREVISION= 1
@@ -6,23 +6,24 @@
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Usenet/comp.sources.x/volume09/xengine/
DISTFILES= part01.z patch1.z
-PATCH_DIST_STRIP= -p1 # no ${PATCHFILES} but used below
+PATCHFILES= # no ${PATCHFILES} but runs "do-distribution-patch"
+PATCH_DIST_STRIP= -p1
MAINTAINER= sakamoto%NetBSD.org@localhost
COMMENT= Reciprocating engine for X
-BUILD_DEPENDS= gsharutils>=4.2.1:../../archivers/gsharutils
-
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
DIST_SUBDIR= xengine
USE_IMAKE= yes
-EXTRACT_CMD= zcat ${DOWNLOADED_DISTFILE} | gunshar
+PKGSRC_USE_TOOLS+= gzcat patch sed
-pre-patch:
- @cd ${WRKSRC} ; ${PATCH} ${PATCH_DIST_ARGS} < xengine.patch1
+EXTRACT_CMD= ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SED} "1,/\#!/d" | ${SH}
+
+do-distribution-patch:
+ @cd ${WRKSRC}; ${PATCH} ${PATCH_DIST_ARGS} < xengine.patch1
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xengine
Home |
Main Index |
Thread Index |
Old Index