Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Nov 2001 10:18:25 +0300
From:      skv@protey.ru
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31869: New port: ruby-interbase
Message-ID:  <E1625vl-0000D6-00@3wgraphics.com>

next in thread | raw e-mail | index | archive | help

>Number:         31869
>Category:       ports
>Synopsis:       New port: ruby-interbase
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 08 23:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Skvortsov
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
<Organization of PR author (multiple lines)>
>Environment:

	<Relevant environment information (multiple lines)>

>Description:

New port: ruby-interbase - Ruby interface to Interbase library

>How-To-Repeat:

	<Code/input/activities to reproduce the problem (multiple lines)>

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ruby-interbase
#	ruby-interbase/pkg-comment
#	ruby-interbase/Makefile
#	ruby-interbase/distinfo
#	ruby-interbase/files
#	ruby-interbase/files/patch-extconf.rb
#	ruby-interbase/pkg-descr
#	ruby-interbase/pkg-plist
#
echo c - ruby-interbase
mkdir -p ruby-interbase > /dev/null 2>&1
echo x - ruby-interbase/pkg-comment
sed 's/^X//' >ruby-interbase/pkg-comment << 'END-of-ruby-interbase/pkg-comment'
XRuby interface to Interbase library
END-of-ruby-interbase/pkg-comment
echo x - ruby-interbase/Makefile
sed 's/^X//' >ruby-interbase/Makefile << 'END-of-ruby-interbase/Makefile'
X# New ports collection makefile for:	ruby-interbase
X# Date created:		8 Nov 2001
X# Whom:			Sergey Skvortsov <skv@protey.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	interbase
XPORTVERSION=	0.03
XCATEGORIES=	databases ruby
XMASTER_SITES=	ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/
XPKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
X
XMAINTAINER=	skv@protey.ru
X
XLIB_DEPENDS=	gds:${PORTSDIR}/databases/firebird
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XUSE_RUBY=	yes
XUSE_RUBY_EXTCONF=	yes
X
XCONFIGURE_ARGS=	--with-interbase-include-dir="${LOCALBASE}/firebird/include" \
X		--with-interbase-lib-dir="${LOCALBASE}/firebird/lib"
XINSTALL_TARGET=	site-install
X
XDOCS_EN=	README
XDOCS_JA=	README.ja
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
X.for f in ${DOCS_EN}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
X.endfor
X.for f in ${DOCS_JA}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-ruby-interbase/Makefile
echo x - ruby-interbase/distinfo
sed 's/^X//' >ruby-interbase/distinfo << 'END-of-ruby-interbase/distinfo'
XMD5 (interbase-0.03.tar.gz) = 864bd594cb78aa8c1dcd61e309b1cddd
END-of-ruby-interbase/distinfo
echo c - ruby-interbase/files
mkdir -p ruby-interbase/files > /dev/null 2>&1
echo x - ruby-interbase/files/patch-extconf.rb
sed 's/^X//' >ruby-interbase/files/patch-extconf.rb << 'END-of-ruby-interbase/files/patch-extconf.rb'
X--- extconf.rb.orig	Wed May 12 19:19:36 1999
X+++ extconf.rb	Fri Nov  9 10:14:03 2001
X@@ -1,5 +1,19 @@
X require 'mkmf'
X+INTERBASEDIR = "/usr/interbase"
X 
X-have_library("gdslib", "isc_attach_database") or
X-  have_library("gds", "isc_attach_database")
X+incdir = with_config("interbase-include-dir")
X+if incdir then
X+  $CFLAGS += "-I#{incdir}"
X+else
X+  $CFLAGS = "-I#{INTERBASEDIR}/include"
X+end
X+
X+libdir = with_config("interbase-lib-dir")
X+if libdir then
X+  $LDFLAGS += "-L#{libdir}"
X+else
X+  $LDFLAGS = "-L#{INTERBASEDIR}/lib"
X+end
X+
X+$libs = "-lgds"
X create_makefile("interbase")
END-of-ruby-interbase/files/patch-extconf.rb
echo x - ruby-interbase/pkg-descr
sed 's/^X//' >ruby-interbase/pkg-descr << 'END-of-ruby-interbase/pkg-descr'
XThis is an extention module to access Interbase database from Ruby.
X
XWWW:	http://www.ruby-lang.org/en/raa-list.rhtml?name=interbase
END-of-ruby-interbase/pkg-descr
echo x - ruby-interbase/pkg-plist
sed 's/^X//' >ruby-interbase/pkg-plist << 'END-of-ruby-interbase/pkg-plist'
X%%RUBY_SITEARCHLIBDIR%%/interbase.so
X%%PORTDOCS%%%%RUBY_DOCDIR%%/interbase/README
X%%PORTDOCS%%%%RUBY_DOCDIR%%/interbase/ja/README.ja
X%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/interbase/ja
X%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/interbase
END-of-ruby-interbase/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1625vl-0000D6-00>