summaryrefslogtreecommitdiff
path: root/devel/invitation_to_ruby/Makefile
blob: 58ffc3ec85d86ace6df650f2ab611e5ecff07111 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ex:ts=8
#
# New ports collection makefile for:	invitation_to_ruby
# Date created:			2002/08/28
# Whom:				Alan Eldridge <alane@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	invitation_to_ruby
PORTVERSION=	1.0.0
#PORTEPOCH=
CATEGORIES=	devel
MASTER_SITES=	ftp://ftp.one.net/pub/users/jweirich/talks/
#MASTER_SITE_SUBDIR=
#PKGNAMEPREFIX=
#PKGNAMESUFFIX=
DISTNAME=	invitationtoruby
EXTRACT_SUFX=	.tgz
#DISTFILES=
#DIST_SUBDIR=	${PKGNAMEPREFIX}${PORTNAME}
#EXTRACT_ONLY=

MAINTAINER=	ports@FreeBSD.org

NO_BUILD=	yes

PLIST=		${WRKDIR}/plist

CPIO?=		/usr/bin/cpio
SORT?=		/usr/bin/sort

.include <bsd.port.pre.mk>

pre-install:
	${RM} -f ${PLIST}
	${ECHO_CMD} "@comment files" >> ${PLIST}
	cd ${WRKSRC}; ${FIND} . -type f | cut -c2- \
		| ${SED} 's|^|${DOCSDIR:S,${PREFIX}/,,}|' \
		| ${SORT} >> ${PLIST}
	${ECHO_CMD} "@comment directories" >> ${PLIST}
	cd ${WRKSRC}; ${FIND} . -type d | cut -c2- \
		| ${SED} 's|^|@dirrm ${DOCSDIR:S,${PREFIX}/,,}|' \
		| ${SORT} -r >> ${PLIST}

do-install:
	${RM} -fr ${DOCSDIR}
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC}; find . | ${CPIO} -pdmv -R ${DOCOWN}:${DOCGRP} ${DOCSDIR}
	${CHMOD} -R ugo-w,ugo+rX ${DOCSDIR}

.include <bsd.port.post.mk>
#EOF