aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/Makefile1
-rw-r--r--databases/ruby-dbd_sybase/Makefile39
-rw-r--r--databases/ruby-dbd_sybase/distinfo1
-rw-r--r--databases/ruby-dbd_sybase/files/patch-extconf.rb16
-rw-r--r--databases/ruby-dbd_sybase/pkg-comment1
-rw-r--r--databases/ruby-dbd_sybase/pkg-descr4
-rw-r--r--databases/ruby-dbd_sybase/pkg-plist4
7 files changed, 66 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 7c932cfccfa8..47141e7b80f1 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -73,6 +73,7 @@
SUBDIR += ruby-cdb
SUBDIR += ruby-dbd_mysql
SUBDIR += ruby-dbd_postgresql
+ SUBDIR += ruby-dbd_sybase
SUBDIR += ruby-dbi
SUBDIR += ruby-gdbm
SUBDIR += ruby-rdbc1
diff --git a/databases/ruby-dbd_sybase/Makefile b/databases/ruby-dbd_sybase/Makefile
new file mode 100644
index 000000000000..2e0c60605e75
--- /dev/null
+++ b/databases/ruby-dbd_sybase/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: dbd_sybase for DBD-for-Ruby
+# Date created: 3 June 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dbd_sybase
+PORTVERSION= 0.0.4
+CATEGORIES= databases ruby
+MASTER_SITES= http://www.sprytech.com/~rainer.perl/ruby/files/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-dbi-${PORTVERSION}
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+LIB_DEPENDS= tds.0:${.CURDIR}/../freetds
+RUN_DEPENDS= ${RUBY_SITELIBDIR}/dbi.rb:${.CURDIR}/../ruby-dbi
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+WRKSRC= ${WRKDIR}/ext/${PORTNAME}
+INSTALL_TARGET= site-install
+
+DOCS_EN= doc/*
+
+post-install:
+ cd ${RUBY_SITEARCHLIBDIR} && ${MV} ${PORTNAME}.so dbi/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/dbi/${PORTNAME}
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/dbi/${PORTNAME}/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/databases/ruby-dbd_sybase/distinfo b/databases/ruby-dbd_sybase/distinfo
new file mode 100644
index 000000000000..577d95dcd0c3
--- /dev/null
+++ b/databases/ruby-dbd_sybase/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/ruby-dbi-0.0.4.tgz) = 65dc83374cce86f8494fd47537902449
diff --git a/databases/ruby-dbd_sybase/files/patch-extconf.rb b/databases/ruby-dbd_sybase/files/patch-extconf.rb
new file mode 100644
index 000000000000..8bc4a421da7f
--- /dev/null
+++ b/databases/ruby-dbd_sybase/files/patch-extconf.rb
@@ -0,0 +1,16 @@
+--- extconf.rb.orig Mon Apr 23 21:31:46 2001
++++ extconf.rb Sun Jun 3 03:44:04 2001
+@@ -1,11 +1,7 @@
+ require 'mkmf'
+
+-# You may need to change these parameters
+-FREETDSDIR = "/usr/local/freetds"
+-# end of parameters
++dir_config("freetds", "/usr/local/freetds")
+
+-$CFLAGS = "-I#{FREETDSDIR}/include"
+-$LDFLAGS = "-L#{FREETDSDIR}/lib"
+ $libs = "-ltds"
+
+-create_makefile("dbd_sybase")
++create_makefile("dbd_sybase")
diff --git a/databases/ruby-dbd_sybase/pkg-comment b/databases/ruby-dbd_sybase/pkg-comment
new file mode 100644
index 000000000000..31ae78f705b6
--- /dev/null
+++ b/databases/ruby-dbd_sybase/pkg-comment
@@ -0,0 +1 @@
+Sybase driver for DBI-for-Ruby
diff --git a/databases/ruby-dbd_sybase/pkg-descr b/databases/ruby-dbd_sybase/pkg-descr
new file mode 100644
index 000000000000..9fbcaf7ccce7
--- /dev/null
+++ b/databases/ruby-dbd_sybase/pkg-descr
@@ -0,0 +1,4 @@
+This is the Sybase driver for Rainer Perl's DBI-for-Ruby.
+
+Author: Rainer Perl <rainer.perl@sprytech.com>
+WWW: http://www.sprytech.com/~rainer.perl/ruby/
diff --git a/databases/ruby-dbd_sybase/pkg-plist b/databases/ruby-dbd_sybase/pkg-plist
new file mode 100644
index 000000000000..08a1679dbc11
--- /dev/null
+++ b/databases/ruby-dbd_sybase/pkg-plist
@@ -0,0 +1,4 @@
+%%RUBY_SITEARCHLIBDIR%%/dbi/dbd_sybase.so
+%%PORTDOCS%%%%RUBY_DOCDIR%%/dbi/dbd_sybase/HISTORY
+%%PORTDOCS%%%%RUBY_DOCDIR%%/dbi/dbd_sybase/README
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/dbi/dbd_sybase