svn commit: r338518 - head/databases/ruby-bdb

Matthias Andree mandree at FreeBSD.org
Fri Jan 3 02:28:50 UTC 2014


Author: mandree
Date: Fri Jan  3 02:28:49 2014
New Revision: 338518
URL: http://svnweb.freebsd.org/changeset/ports/338518

Log:
  Convert to staging, and fix a few quirks along the way:
  - fix shebang lines in example scripts
  - strip the installed bdb.so file

Modified:
  head/databases/ruby-bdb/Makefile

Modified: head/databases/ruby-bdb/Makefile
==============================================================================
--- head/databases/ruby-bdb/Makefile	Fri Jan  3 01:59:31 2014	(r338517)
+++ head/databases/ruby-bdb/Makefile	Fri Jan  3 02:28:49 2014	(r338518)
@@ -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


More information about the svn-ports-all mailing list