aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/ruby-odbc/Makefile12
-rw-r--r--databases/ruby-odbc/distinfo2
2 files changed, 6 insertions, 8 deletions
diff --git a/databases/ruby-odbc/Makefile b/databases/ruby-odbc/Makefile
index 046b02107c05..0e69d32d76c3 100644
--- a/databases/ruby-odbc/Makefile
+++ b/databases/ruby-odbc/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= odbc
-PORTVERSION= 0.5
+PORTVERSION= 0.6
CATEGORIES= databases ruby
MASTER_SITES= http://www.ch-werner.de/rubyodbc/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
@@ -20,16 +20,14 @@ LIB_DEPENDS= odbc.1:${PORTSDIR}/databases/unixODBC
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-CONFIGURE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
-CONFIGURE_ARGS= --with-cflags="${PTHREAD_CFLAGS}"
+RUBY_WITH_PTHREAD= yes
+
+CONFIGURE_ARGS= --with-pthread-cflags="${PTHREAD_CFLAGS}" \
+ --with-pthread-libs="${PTHREAD_LIBS}"
INSTALL_TARGET= site-install
DOCS_EN= ChangeLog README doc/odbc.html
-post-patch:
- ${RUBY} -i -pe '/require \x27mkmf\x27/ and $$_ += "$$libs.sub!(/-lc\\b/, ENV[\x27PTHREAD_LIBS\x27])\n"' \
- ${WRKSRC}/${RUBY_EXTCONF}
-
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
diff --git a/databases/ruby-odbc/distinfo b/databases/ruby-odbc/distinfo
index 0917ac1a2a78..1fd4b69cce7e 100644
--- a/databases/ruby-odbc/distinfo
+++ b/databases/ruby-odbc/distinfo
@@ -1 +1 @@
-MD5 (ruby/ruby-odbc-0.5.tar.gz) = 1933698ddb46897cf09ed0f570f0b907
+MD5 (ruby/ruby-odbc-0.6.tar.gz) = 50d8287f8656f7e976e10f8fdfc9bd31