aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2008-09-30 03:09:33 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2008-09-30 03:09:33 +0000
commit4e967735b2f411174fbcaf250dc5f8718d55fb92 (patch)
treea5c2214f09711d80d258257e86897e97e4ba4ace
parent640241574cf9c4fb875cd9f2e2de0b82580b2e04 (diff)
downloadports-4e967735b2f411174fbcaf250dc5f8718d55fb92.tar.gz
ports-4e967735b2f411174fbcaf250dc5f8718d55fb92.zip
Notes
-rw-r--r--databases/Makefile1
-rw-r--r--databases/ruby-sybct/Makefile40
-rw-r--r--databases/ruby-sybct/distinfo3
-rw-r--r--databases/ruby-sybct/files/patch-extconf.rb17
-rw-r--r--databases/ruby-sybct/pkg-descr3
-rw-r--r--databases/ruby-sybct/pkg-plist34
6 files changed, 98 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 89a500344d1c..8c4312018fdb 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -560,6 +560,7 @@
SUBDIR += ruby-rdbc1
SUBDIR += ruby-search-namazu
SUBDIR += ruby-sqlite
+ SUBDIR += ruby-sybct
SUBDIR += rubygem-activerecord
SUBDIR += rubygem-activerecord-jdbc-adapter
SUBDIR += rubygem-activerecord-jdbcmysql-adapter
diff --git a/databases/ruby-sybct/Makefile b/databases/ruby-sybct/Makefile
new file mode 100644
index 000000000000..fdf06d0df577
--- /dev/null
+++ b/databases/ruby-sybct/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: ruby-sybct
+# Date created: 10 September 2008
+# Whom: Alexander Logvinov <ports@logvinov.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sybct
+PORTVERSION= 0.2.11
+CATEGORIES= databases ruby
+MASTER_SITES= http://enjoy1.bb-east.ne.jp/~tetsu/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= ports@logvinov.com
+COMMENT= Ruby module for accessing Sybase databases
+
+LIB_DEPENDS= tds.5:${PORTSDIR}/databases/freetds
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+USE_ICONV= yes
+
+post-install:
+ @${MKDIR} ${RUBY_SITELIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/sy*.rb ${RUBY_SITELIBDIR}/
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${RUBY_MODEXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_MODEXAMPLESDIR}/
+.endif
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_MODDOCDIR}/ja
+ ${INSTALL_DATA} ${WRKSRC}/README.txt ${RUBY_MODDOCDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/README-ja.txt ${RUBY_MODDOCDIR}/ja/
+ ${INSTALL_DATA} ${WRKSRC}/doc/en/*.html ${RUBY_MODDOCDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/doc/ja/*.html ${RUBY_MODDOCDIR}/ja/
+.endif
+
+.include <bsd.port.mk>
diff --git a/databases/ruby-sybct/distinfo b/databases/ruby-sybct/distinfo
new file mode 100644
index 000000000000..eaeab1acac96
--- /dev/null
+++ b/databases/ruby-sybct/distinfo
@@ -0,0 +1,3 @@
+MD5 (ruby/sybct-ruby-0.2.11.tar.gz) = 6dca982c6c8c400ea232d33ad0bbd250
+SHA256 (ruby/sybct-ruby-0.2.11.tar.gz) = 84f6ebe8f1ebfecb3a77f0a7f14f1a0ab3d38daa12fa1e0fe61f35812462910e
+SIZE (ruby/sybct-ruby-0.2.11.tar.gz) = 75141
diff --git a/databases/ruby-sybct/files/patch-extconf.rb b/databases/ruby-sybct/files/patch-extconf.rb
new file mode 100644
index 000000000000..75fef81660c6
--- /dev/null
+++ b/databases/ruby-sybct/files/patch-extconf.rb
@@ -0,0 +1,17 @@
+--- extconf.rb.orig 2008-09-10 14:37:10.000000000 +1000
++++ extconf.rb 2008-09-10 14:38:20.000000000 +1000
+@@ -59,10 +59,10 @@
+ ###########################################################
+
+ ### Linux + Free TDS (freetds-0.64 or above) ################
+-# sybase = "/usr/local/freetds"
+-# $CFLAGS = "-g -Wall -DFREETDS -I#{sybase}/include"
+-# $LDFLAGS = " -L#{sybase}/lib "
+-# $LOCAL_LIBS = "-lct -lsybdb -ltds -rdynamic -ldl -lnsl -lm"
++ sybase = "/usr/local"
++ $CFLAGS = "-g -Wall -DFREETDS -I#{sybase}/include"
++ $LDFLAGS = " -L#{sybase}/lib "
++ $LOCAL_LIBS = "-lct -lsybdb -ltds -rdynamic -lm -liconv"
+
+ ### mac-osx-tiger + Free TDS (freetds-0.64 ) ################
+ # sybase = "/usr/local/freetds"
diff --git a/databases/ruby-sybct/pkg-descr b/databases/ruby-sybct/pkg-descr
new file mode 100644
index 000000000000..c8f8052d3789
--- /dev/null
+++ b/databases/ruby-sybct/pkg-descr
@@ -0,0 +1,3 @@
+This module is the Sybase extensions to Ruby.
+
+WWW: http://raa.ruby-lang.org/project/sybase-ctlib/
diff --git a/databases/ruby-sybct/pkg-plist b/databases/ruby-sybct/pkg-plist
new file mode 100644
index 000000000000..d62a510f9d5d
--- /dev/null
+++ b/databases/ruby-sybct/pkg-plist
@@ -0,0 +1,34 @@
+%%RUBY_SITEARCHLIBDIR%%/sybct.so
+%%RUBY_SITELIBDIR%%/sybct.rb
+%%RUBY_SITELIBDIR%%/sybsql.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/cursor_disp.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/cursor_update.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/getimage.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/helptext.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/isql.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/rpcsample.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/sendimage.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/sqlsample.rb
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.txt
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/SybCommand.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/SybConnection.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/SybConstant.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/SybContext.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/SybIODesc.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/SybResult.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/SybSQL.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/SybSQLContext.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/index.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README-ja.txt
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/SybCommand.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/SybConnection.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/SybConstant.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/SybContext.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/SybIODesc.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/SybResult.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/SybSQL.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/SybSQLContext.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/index.html
+%%PORTEXAMPLES%%@dirrm %%RUBY_MODEXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%