diff options
author | mandree <mandree@FreeBSD.org> | 2014-01-03 10:28:49 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2014-01-03 10:28:49 +0800 |
commit | ee97d96db00e5d5303f8185effa273990012eb79 (patch) | |
tree | dabbd68a15d23ede858a9a56df50a35ba2f7c5e8 /databases | |
parent | e7b77a141a0926c20fe2efe8d3f9e56e77db1348 (diff) | |
download | freebsd-ports-gnome-ee97d96db00e5d5303f8185effa273990012eb79.tar.gz freebsd-ports-gnome-ee97d96db00e5d5303f8185effa273990012eb79.tar.zst freebsd-ports-gnome-ee97d96db00e5d5303f8185effa273990012eb79.zip |
Convert to staging, and fix a few quirks along the way:
- fix shebang lines in example scripts
- strip the installed bdb.so file
Diffstat (limited to 'databases')
-rw-r--r-- | databases/ruby-bdb/Makefile | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile index 89209a4c531c..0fcfd82cd88a 100644 --- a/databases/ruby-bdb/Makefile +++ b/databases/ruby-bdb/Makefile @@ -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 |