Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2014 13:12:49 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350465 - head/databases/ruby-odbc
Message-ID:  <201404071312.s37DCnqV048557@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@ch-werner.de>
 WWW:	http://www.ch-werner.de/rubyodbc/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404071312.s37DCnqV048557>