head	1.4;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2;
locks; strict;
comment	@# @;


1.4
date	2012.11.17.06.03.11;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.06.30.14.31.06;	author az;	state Exp;
branches;
next	1.2;

1.2
date	2007.06.25.06.43.39;	author hrs;	state Exp;
branches;
next	1.1;

1.1
date	2007.06.24.17.26.42;	author hrs;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Switch exporter over
@
text
@# New ports collection makefile for:	wikicalc
# Date created:		June 24, 2007
# Whom:			hrs@@FreeBSD.org
#
# $FreeBSD: head/www/wikicalc/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	wikicalc
PORTVERSION=	1.0
CATEGORIES=	www math
MASTER_SITES=	http://www.peapodcast.com/sgi/downloads/
DISTNAME=	${PORTNAME}-${PORTVERSION:S,.,-,}

MAINTAINER=	hrs@@FreeBSD.org
COMMENT=	An Open Source Wiki-Spreadsheet

RUN_DEPENDS=	p5-libwww>=0:${PORTSDIR}/www/p5-libwww

USE_PERL5=	yes
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}
SUB_FILES=	setup.sh

post-extract:
	@@${RM} -f ${WRKSRC}/gpl.txt

post-patch:
	${REINPLACE_CMD} 's,/usr/bin/perl,${PERL5} -I${DATADIR},' ${WRKSRC}/*.pl

do-install:
	${MKDIR} ${DATADIR}
	cd ${WRKSRC} && \
	${FIND} . -type f -a ! -name \*.pl -a ! -name \*.bak | \
		${XARGS} -J % ${INSTALL_DATA} % ${DATADIR}/$${i}; \
	${FIND} . -type f -a -name \*.pl | \
		${XARGS} -J % ${INSTALL_SCRIPT} % ${DATADIR}/$${i}; \
	${INSTALL_SCRIPT} ${WRKDIR}/setup.sh ${DATADIR}

.include <bsd.port.mk>
@


1.3
log
@- Remove SITE_PERL from *_DEPENDS

Approved by: portmgr@@ (bapt@@)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.2
log
@- Remove redundant SUB_LIST.
- Use "find | xargs install" instead of "for i in `find`; do install $i; done".

Suggested by:   sat
@
text
@d17 1
a17 1
RUN_DEPENDS=	${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww
@


1.1
log
@Add www/wikicalc, an open source wiki-spreadsheet.
@
text
@a22 1
SUB_LIST=	DATADIR=${DATADIR}
d33 4
a36 6
	for i in `${FIND} . -type f -a ! -name \*.pl -a ! -name \*.bak`; do \
		${INSTALL_DATA} $${i} ${DATADIR}/$${i}; \
	done; \
	for i in `${FIND} . -type f -a -name \*.pl`; do \
		${INSTALL_SCRIPT} $${i} ${DATADIR}/$${i}; \
	done
@

