pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/chef Made the Makefile a little simpler.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/02bc4d4d4693
branches:  trunk
changeset: 524086:02bc4d4d4693
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Jan 18 11:51:33 2007 +0000

description:
Made the Makefile a little simpler.

diffstat:

 converters/chef/Makefile |  15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diffs (39 lines):

diff -r a4ed828db1ff -r 02bc4d4d4693 converters/chef/Makefile
--- a/converters/chef/Makefile  Thu Jan 18 11:28:00 2007 +0000
+++ b/converters/chef/Makefile  Thu Jan 18 11:51:33 2007 +0000
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.13 2006/06/09 15:26:46 minskim Exp $
+# $NetBSD: Makefile,v 1.14 2007/01/18 11:51:33 rillig Exp $
 #
 
-DISTNAME=      chef.l
-PKGNAME=       chef-19920415
+DISTNAME=      chef-19920415
 CATEGORIES=    converters
 MASTER_SITES=  http://www.evolutionzone.com/kulturezone/c-g.writing/
-EXTRACT_SUFX=  .txt
+DISTFILES=     chef.l.txt
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 #HOMEPAGE=     none
@@ -18,18 +17,14 @@
 WRKSRC=                ${WRKDIR}
 DIST_SUBDIR=   ${PKGNAME_NOREV}
 
-MAKE_ENV+=     BINDIR=${PREFIX}/bin BINOWN=${BINOWN:Q} BINGRP=${BINGRP:Q}
-
 INSTALLATION_DIRS=     bin
 
 do-extract:
        # deal with the dos encoding of the file
-       ${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} ${WRKDIR}/chef.l.tmp
-       cd ${WRKSRC} && ${TR} '\015' '\n' < chef.l.tmp > chef.l
-       cd ${WRKSRC} && ${RM} chef.l.tmp
+       cd ${WRKSRC} && tr '\r' '\n' < ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} > chef.l
 
 do-build:
-       cd ${WRKSRC} && ${LEX} chef.l
+       cd ${WRKSRC} && lex chef.l
        ${LINK.c} -o ${WRKSRC}/chef ${WRKSRC}/lex.yy.c -ll
 
 do-install:



Home | Main Index | Thread Index | Old Index