summaryrefslogtreecommitdiff
path: root/databases/ruby-bdb/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2008-06-25 17:38:51 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2008-06-25 17:38:51 +0000
commitb399c9768b27fa146aa8ce9cf84afbf0ad5fbc07 (patch)
tree61a0e37e822cfa225ef3a7c677b03baaeb02845d /databases/ruby-bdb/Makefile
parent- update to 2.20.0 (diff)
Update to 0.6.4.
PR: ports/122508 Submitted by: bf <bf2006a@yahoo.com>
Diffstat (limited to 'databases/ruby-bdb/Makefile')
-rw-r--r--databases/ruby-bdb/Makefile53
1 files changed, 33 insertions, 20 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile
index 042c0849f224..5d85f1e652b8 100644
--- a/databases/ruby-bdb/Makefile
+++ b/databases/ruby-bdb/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= bdb
-PORTVERSION= 0.6.2
+PORTVERSION= 0.6.4
CATEGORIES= databases ruby
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
@@ -20,7 +20,7 @@ USE_BDB= YES
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}[2-4]*
-USE_RUBY= yes
+USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_RUBY_RDOC= yes
@@ -29,32 +29,45 @@ CONFIGURE_ARGS= --with-db-include=${BDB_INCLUDE_DIR} \
--with-db-version=${BDB_LIB_NAME:S/^db//}
INSTALL_TARGET= site-install
-DOCS= Changes \
- README.en \
- bdb.html \
- bdb.rd \
- docs/*.html \
- docs/*.rd \
- docs/doc
-
-post-build:
-.if !defined(NOPORTDOCS)
- cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc
-.endif
+DOCS= Changes \
+ README.en \
+ bdb.html \
+ bdb.rd \
+ docs/*.html \
+ docs/*.rd
.include <bsd.port.pre.mk>
+PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/bdb.so
+
+.if !defined(NOPORTDOCS)
DOCSDIR= ${RUBY_MODDOCDIR}
PORTDOCS= *
+.endif
+.if !defined(NOPORTEXAMPLES)
+EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
+PORTEXAMPLES= *
+.endif
+
+post-build:
+.if !defined(NOPORTDOCS)
+ ( cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} \
+ ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc )
+.endif
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_MODEXAMPLESDIR}/
- ${CP} -R ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
- ${MKDIR} ${RUBY_MODDOCDIR}
-.for f in ${DOCS}
- ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
-.endfor
+ ${MKDIR} ${DOCSDIR}/doc
+ (cd ${WRKSRC} && ${INSTALL_MAN} ${DOCS} ${DOCSDIR})
+ (cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}/doc)
+.endif
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}/
+ (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR} "! -empty")
.endif
+regression-test:
+ ( cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \
+ ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test )
+
.include <bsd.port.post.mk>