blob: 23228d2bfcf4fd41f7d586c11c0c5966f681fe8c (
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
|
# Created by: Sergey Osokin <osa@FreeBSD.org>
# $FreeBSD$
PORTREVISION= 3
PKGNAMESUFFIX= -${UNIT_MODNAME}
UNIT_MODNAME= ruby${RUBY_VER}
COMMENT= Ruby module for NGINX Unit
RUN_DEPENDS= rackup:www/rubygem-rack \
unitd:www/unit
PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so
USE_RUBY= yes
USE_RC_SUBR?= # reset to empty
MASTERDIR= ${.CURDIR}/../unit
post-configure:
cd ${CONFIGURE_WRKSRC} && \
./configure ruby --module=${UNIT_MODNAME}
do-build:
cd ${CONFIGURE_WRKSRC} && ${MAKE} ${UNIT_MODNAME}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/
${INSTALL_LIB} ${WRKSRC}/build/${UNIT_MODNAME}.unit.so \
${STAGEDIR}${PREFIX}/libexec/unit/modules/
.include "${MASTERDIR}/Makefile"
|