From 5a80bd9e8a0c24db35045578ba028a561afcee22 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 7 Apr 2014 13:12:49 +0000 Subject: [PATCH] Support stage --- databases/ruby-odbc/Makefile | 22 ++++++++++------------ databases/ruby-odbc/pkg-descr | 1 - 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/databases/ruby-odbc/Makefile b/databases/ruby-odbc/Makefile index f5e7ab088ed7..048ab8dffede 100644 --- a/databases/ruby-odbc/Makefile +++ b/databases/ruby-odbc/Makefile @@ -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 - -.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 +.include diff --git a/databases/ruby-odbc/pkg-descr b/databases/ruby-odbc/pkg-descr index fe881c028960..a586fc5de979 100644 --- a/databases/ruby-odbc/pkg-descr +++ b/databases/ruby-odbc/pkg-descr @@ -1,4 +1,3 @@ This is an extension library to use ODBC data sources from Ruby. -Author: Christian Werner WWW: http://www.ch-werner.de/rubyodbc/