summaryrefslogtreecommitdiff
path: root/databases/ruby-dbd_sybase/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/ruby-dbd_sybase/Makefile')
-rw-r--r--databases/ruby-dbd_sybase/Makefile39
1 files changed, 39 insertions, 0 deletions
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>