1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Convert to staging, and fix a few quirks along the way:

- fix shebang lines in example scripts
- strip the installed bdb.so file
This commit is contained in:
Matthias Andree 2014-01-03 02:28:49 +00:00
parent 5072887128
commit 4c00187cd4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338518

View File

@ -35,8 +35,29 @@ EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/bdb.so
PORTDOCS= *
PORTEXAMPLES= *
USES= shebangfix
SHEBANG_FILES= examples/record.rb \
examples/recno.rb \
examples/zeroc.rb \
examples/txn.rb \
examples/queue.rb \
examples/cats.rb \
examples/log.rb \
examples/cursor.rb \
examples/func.rb \
examples/replication/mgr/b.rb \
examples/replication/base/op.rb \
examples/replication/base/cl.rb \
examples/replication/base/b.rb \
examples/replication/base/ma.rb \
examples/replication/base/mc.rb \
examples/join.rb \
examples/basic.rb \
examples/lock.rb
NEED_ROOT= yes
NO_STAGE= yes
.include <bsd.port.pre.mk>
post-patch:
@ -51,14 +72,15 @@ post-build:
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/bdb.so
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/doc
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR})
(cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} . ${DOCSDIR}/doc)
${MKDIR} ${STAGEDIR}${DOCSDIR}/doc
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/doc)
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR}/
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR} "! -empty")
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -empty")
.endif
regression-test: build