View | Details | Raw Unified | Return to bug 177342
Collapse All | Expand All

(-)Makefile (-32 / +25 lines)
Lines 1-24 Link Here
1
# New ports collection makefile for:	Ruby-BDB
1
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
2
# Date created:		8 March 2001
3
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
4
#
5
# $FreeBSD$
2
# $FreeBSD$
6
#
7
3
8
PORTNAME=	bdb
4
PORTNAME=	bdb
9
PORTVERSION=	0.6.6
5
PORTVERSION=	0.6.6
10
CATEGORIES=	databases ruby
6
CATEGORIES=	databases ruby
11
MASTER_SITES=	ftp://ftp.idaemons.org/pub/distfiles/ruby/ \
7
MASTER_SITES=	ftp://ftp.idaemons.org/pub/distfiles/ruby/ \
12
		http://idaemons.org/distfiles/ruby/ \
8
		http://idaemons.org/distfiles/ruby/ \
13
		${MASTER_SITE_LOCAL}
9
		LOCAL/knu
14
MASTER_SITE_SUBDIR=	knu
15
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
10
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
16
PKGNAMESUFFIX=	${WITH_BDB_VER}
11
PKGNAMESUFFIX=	${WITH_BDB_VER}
17
DIST_SUBDIR=	ruby
12
DIST_SUBDIR=	ruby
18
13
19
MAINTAINER=	knu@FreeBSD.org
14
MAINTAINER=	knu@FreeBSD.org
20
COMMENT=	Ruby interface to Sleepycat's Berkeley DB revision 2 or later
15
COMMENT=	Ruby interface to Oracle Berkeley DB revision 2 or later
21
16
17
OPTIONS_DEFINE=	DOCS EXAMPLES
18
22
USE_BDB=	yes
19
USE_BDB=	yes
23
USE_BZIP2=	yes
20
USE_BZIP2=	yes
24
21
Lines 32-75 Link Here
32
		--with-db-lib=${BDB_LIB_DIR}
29
		--with-db-lib=${BDB_LIB_DIR}
33
INSTALL_TARGET=	site-install
30
INSTALL_TARGET=	site-install
34
31
35
DOCS=	Changes \
32
DOCS=		Changes README.en bdb.rd docs/*.rd
36
	README.en \
33
DOCSDIR=	${RUBY_MODDOCDIR}
37
	bdb.rd \
34
EXAMPLESDIR=	${RUBY_MODEXAMPLESDIR}
38
	docs/*.rd
35
PLIST_FILES=	%%RUBY_SITEARCHLIBDIR%%/bdb.so
36
PORTDOCS=	*
37
PORTEXAMPLES=	*
39
38
40
.include <bsd.port.pre.mk>
39
.include <bsd.port.pre.mk>
41
40
42
PLIST_FILES=	%%RUBY_SITEARCHLIBDIR%%/bdb.so
41
post-patch:
43
42
.if ${RUBY_VER} == 2.0
44
.if !defined(NOPORTDOCS)
43
	@${REINPLACE_CMD} -e '/remove_const/d' ${WRKSRC}/src/features.rb
45
DOCSDIR=	${RUBY_MODDOCDIR}
46
PORTDOCS=	*
47
.endif
44
.endif
48
.if !defined(NOPORTEXAMPLES)
49
EXAMPLESDIR=	${RUBY_MODEXAMPLESDIR}
50
PORTEXAMPLES=	*
51
.endif
52
45
53
post-build:
46
post-build:
54
.if !defined(NOPORTDOCS)
47
.if ${PORT_OPTIONS:MDOCS}
55
	( cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} \
48
	(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \
56
	${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc )
49
	${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc)
57
.endif
50
.endif
58
51
59
post-install:
52
post-install:
60
.if !defined(NOPORTDOCS)
53
.if ${PORT_OPTIONS:MDOCS}
61
	${MKDIR} ${DOCSDIR}/doc
54
	${MKDIR} ${DOCSDIR}/doc
62
	(cd ${WRKSRC} && ${INSTALL_MAN} ${DOCS} ${DOCSDIR})
55
	(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR})
63
	(cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}/doc)
56
	(cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} . ${DOCSDIR}/doc)
64
.endif
57
.endif
65
.if !defined(NOPORTEXAMPLES)
58
.if ${PORT_OPTIONS:MEXAMPLES}
66
	${MKDIR} ${EXAMPLESDIR}/
59
	${MKDIR} ${EXAMPLESDIR}/
67
	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR} "! -empty")
60
	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR} "! -empty")
68
.endif
61
.endif
69
62
70
regression-test:
63
regression-test: build
71
	@${MKDIR} ${BUILD_WRKSRC}/tmp
64
	@${MKDIR} ${BUILD_WRKSRC}/tmp
72
	( cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \
65
	(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \
73
	${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test )
66
	${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
74
67
75
.include <bsd.port.post.mk>
68
.include <bsd.port.post.mk>
(-)pkg-descr (-2 / +1 lines)
Lines 2-6 Link Here
2
later.  DB >= 2 is required. (some functionalities like join are not
2
later.  DB >= 2 is required. (some functionalities like join are not
3
available with DB < 2.6)
3
available with DB < 2.6)
4
4
5
Author:	Guy Decoux <ts@moulon.inra.fr>
5
WWW: http://moulon.inra.fr/ruby/bdb.html
6
WWW:	http://moulon.inra.fr/ruby/bdb.html

Return to bug 177342