# New ports collection makefile for: Ruby-cdb # Date created: 8 March 2001 # Whom: Akinori MUSHA aka knu # # $FreeBSD$ # PORTNAME= cdb PORTVERSION= 0.5a PORTREVISION= 1 CATEGORIES= databases ruby MASTER_SITES= http://www.fan.gr.jp/~kaz/ruby/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ruby-${PORTNAME}-${PORTVERSION} DIST_SUBDIR= ruby MAINTAINER= stas@FreeBSD.org COMMENT= Ruby interface to D. J. Bernstein's cdb (constant database) library BUILD_DEPENDS= ${NONEXISTENT}:${CDB_PORTDIR}:build USE_RUBY= yes USE_RUBY_EXTCONF= yes CDB_PORTDIR= ${PORTSDIR}/databases/cdb INSTALL_TARGET= site-install # XXX: exists untill it will be committed to bsd.port.mk COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \ 2>&1) && \ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \ ${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \ ${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' -- .include post-extract: ${RM} -f ${WRKSRC}/cdb ${LN} -s `cd ${CDB_PORTDIR}; ${MAKE} -V WRKSRC` ${WRKSRC}/cdb post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODEXAMPLESDIR}/ @(cd ${WRKSRC}/sample/ && ${COPYTREE_SHARE} \* ${RUBY_MODEXAMPLESDIR}/) ${MKDIR} ${RUBY_MODDOCDIR} ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/ .endif .include