svn commit: r350465 - head/databases/ruby-odbc
Baptiste Daroussin
bapt at FreeBSD.org
Mon Apr 7 13:12:50 UTC 2014
Author: bapt
Date: Mon Apr 7 13:12:49 2014
New Revision: 350465
URL: http://svnweb.freebsd.org/changeset/ports/350465
QAT: https://qat.redports.org/buildarchive/r350465/
Log:
Support stage
Modified:
head/databases/ruby-odbc/Makefile
head/databases/ruby-odbc/pkg-descr
Modified: head/databases/ruby-odbc/Makefile
==============================================================================
--- head/databases/ruby-odbc/Makefile Mon Apr 7 13:08:42 2014 (r350464)
+++ head/databases/ruby-odbc/Makefile Mon Apr 7 13:12:49 2014 (r350465)
@@ -13,6 +13,8 @@ DIST_SUBDIR= ruby
MAINTAINER= knu at FreeBSD.org
COMMENT= Ruby extension library to use ODBC data sources
+OPTIONS_DEFINe= DOCS EXAMPLES
+
LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
USE_RUBY= yes
@@ -23,33 +25,29 @@ INSTALL_WRKSRC= ${WRKSRC}/ext
INSTALL_TARGET= site-install
+MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \
+ INSTALL_DATA="${INSTALL_DATA}"
+
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/odbc.so \
%%RUBY_SITELIBDIR%%/cqgen.rb
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
-.if !defined(NOPORTDOCS)
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
PORTEXAMPLES= test
DOCSDIR= ${RUBY_MODDOCDIR}
PORTDOCS= COPYING ChangeLog README doc
-.endif
post-extract:
cd ${WRKSRC} && ${MV} lib ext/
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
- cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${EXAMPLESDIR}/
+ cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${EXAMPLESDIR}/
.endfor
- ${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
- cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${DOCSDIR}/
+ cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DOCSDIR}/
.endfor
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/databases/ruby-odbc/pkg-descr
==============================================================================
--- head/databases/ruby-odbc/pkg-descr Mon Apr 7 13:08:42 2014 (r350464)
+++ head/databases/ruby-odbc/pkg-descr Mon Apr 7 13:12:49 2014 (r350465)
@@ -1,4 +1,3 @@
This is an extension library to use ODBC data sources from Ruby.
-Author: Christian Werner <chw at ch-werner.de>
WWW: http://www.ch-werner.de/rubyodbc/
More information about the svn-ports-all
mailing list