blob: bce0b1ddfeb1c1a25f3d5eb802581d83ba90338c (
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
54
55
56
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: kyotocabinet-ruby
# Date created: 28 April 2010
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= kyotocabinet
PORTVERSION= 1.24
PORTREVISION= 1
CATEGORIES= databases ruby
MASTER_SITES= http://fallabs.com/kyotocabinet/rubypkg/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= Ruby (1.9.1+) binding to Kyoto Cabinet
LIB_DEPENDS= kyotocabinet:${PORTSDIR}/databases/kyotocabinet
LICENSE= GPLv3
#BROKEN= does not compile
RUBY_VER= 1.9
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
NO_PACKAGE= GPL3 incompatibility with Ruby
CONFIGURE_ARGS= --with-kyotocabinet-dir="${LOCALBASE}" \
--with-bindir="${LOCALBASE}/bin"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700042
BROKEN= requires gcc 4.2+ and ruby built with the same compiler
.endif
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/kyotocabinet.so
.if !defined(NOPORTDOCS)
DOCSDIR= ${RUBY_MODDOCDIR}
PORTDOCS= *
.endif
.if !defined(NOPORTEXAMPLES)
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
PORTEXAMPLES= *
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}/
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
check:
cd ${BUILD_WRKSRC} && ${SETENV} RUBYLIB=. ${RUBY} test.rb
.include <bsd.port.post.mk>
|