summaryrefslogtreecommitdiffstats
path: root/www/typo/Makefile
blob: f11ce31fea6654fd6cd2dce7765115068a00a14c (plain)
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
# New ports collection makefile for:	www/typo
# Date created:				May 29th 2005
# Whom:					Jonathan Weiss <jw@innerewut.de>
#
# $FreeBSD$
#

PORTNAME=	typo
PORTVERSION=	4.0.3
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
EXTRACT_SUFX=	.tgz

MAINTAINER=	jw@innerewut.de
COMMENT=	An absolutely minimal weblogging engine powered by rails

RUN_DEPENDS=	rails:${PORTSDIR}/www/rubygem-rails \
		${LOCALBASE}/lib/ruby/gems/1.8/specifications/RedCloth-3.0.3.gemspec:${PORTSDIR}/www/rubygem-redcloth

NO_BUILD=	yes

TYPODIR=	www/${DISTNAME}

do-install:
	${CP} -R ${WRKSRC} ${PREFIX}/${TYPODIR}
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TYPODIR}/log
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TYPODIR}/public

post-install:
	@${FIND} ${PREFIX}/${TYPODIR} -not -type d \
		| ${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
	@${FIND} -d ${PREFIX}/${TYPODIR} -type d \
		| ${SED} -ne 's,^${PREFIX}/${TYPODIR},@dirrm ${TYPODIR},p' >> ${TMPPLIST}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud