blob: e5a30d3fddfb2dae15a4c1683014057d3810f517 (
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
37
38
39
40
41
42
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= gdbm
PORTVERSION= ${RUBY_PORTVERSION}
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= databases ruby
MASTER_SITES= # none
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTFILES= # none
MAINTAINER= ruby@FreeBSD.org
COMMENT= Ruby extension to GDBM library
LICENSE= BSD2CLAUSE RUBY
LICENSE_COMB= dual
FETCH_DEPENDS= ${NONEXISTENT}:${RUBY_PORT}:patch
LIB_DEPENDS= libgdbm.so:databases/gdbm
PLIST_FILES= %%RUBY_ARCHLIBDIR%%/gdbm.so
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ARGS= sitelibdir='$$(rubylibdir)' \
INSTALL_PROG="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}"
.include <bsd.port.pre.mk>
.if ${RUBY_VER} >= 2.4
post-patch:
@${REINPLACE_CMD} -e '/\/include\/ruby.h/d' ${WRKSRC}/depend
.endif
do-extract:
${MKDIR} ${WRKDIR}
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT}; ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
.include <bsd.port.post.mk>
|