blob: f514418ca7557c50e856648f836d362202b63d87 (
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
|
# Ports collection makefile for: thin
# Date created: 24 Jan 2008
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= thin
PORTVERSION= 1.0.0
CATEGORIES= www rubygems
MASTER_SITES= RF
MAINTAINER= clsung@FreeBSD.org
COMMENT= A fast and very simple Ruby web server
BUILD_DEPENDS= rubygem-rack>=0.3.0:${PORTSDIR}/www/rubygem-rack \
rubygem-eventmachine>=0.8.1:${PORTSDIR}/devel/rubygem-eventmachine \
rubygem-daemons>=1.0.9:${PORTSDIR}/devel/rubygem-daemons
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_RUBY= yes
USE_RUBYGEMS= yes
post-install:
@${ECHO} bin/thin > ${TMPPLIST}
@${ECHO} ${GEM_CACHE} >> ${TMPPLIST}
@${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST}
@${FIND} ${PREFIX}/${GEM_LIB_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},${GEM_LIB_DIR},' >> ${TMPPLIST}
@${ECHO} ${GEM_SPEC} >> ${TMPPLIST}
@${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},@dirrm ${GEM_LIB_DIR},' >> ${TMPPLIST}
@${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST}
.include <bsd.port.mk>
|