From nobody@FreeBSD.org  Thu May 29 03:26:31 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 18C261065683
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 May 2008 03:26:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1ECD18FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 May 2008 03:26:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4T3OoPR048306
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 May 2008 03:24:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m4T3OonJ048305;
	Thu, 29 May 2008 03:24:50 GMT
	(envelope-from nobody)
Message-Id: <200805290324.m4T3OonJ048305@www.freebsd.org>
Date: Thu, 29 May 2008 03:24:50 GMT
From: Mitchell Smith <mjs@bur.st>
To: freebsd-gnats-submit@FreeBSD.org
Subject: (New Port) databases/ruby-frontbase
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124085
>Category:       ports
>Synopsis:       (New Port) databases/ruby-frontbase
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    clsung
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 29 03:30:01 UTC 2008
>Closed-Date:    Mon Jun 16 06:50:35 UTC 2008
>Last-Modified:  Mon Jun 16 07:00:10 UTC 2008
>Originator:     Mitchell Smith
>Release:        7.0
>Organization:
>Environment:
>Description:
The ruby extension for access to FrontBase databases is not currently available in the FreeBSD ports tree.

>How-To-Repeat:

>Fix:
The attached shar archive enables you to install the Ruby extension for FrontBase from www.frontbase.com via the FreeBSD ports tree.


Patch attached with submission follows:

# 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-frontbase
#	ruby-frontbase/pkg-plist
#	ruby-frontbase/Makefile
#	ruby-frontbase/distinfo
#	ruby-frontbase/files
#	ruby-frontbase/files/patch-extconf.rb
#	ruby-frontbase/files/patch-frontbase.c
#	ruby-frontbase/pkg-descr
#
echo c - ruby-frontbase
mkdir -p ruby-frontbase > /dev/null 2>&1
echo x - ruby-frontbase/pkg-plist
sed 's/^X//' >ruby-frontbase/pkg-plist << 'END-of-ruby-frontbase/pkg-plist'
X%%RUBY_SITEARCHLIBDIR%%/frontbase.so
END-of-ruby-frontbase/pkg-plist
echo x - ruby-frontbase/Makefile
sed 's/^X//' >ruby-frontbase/Makefile << 'END-of-ruby-frontbase/Makefile'
X# New ports collection makefile for:	ruby-frontbase
X# Date created:		27 May 2008
X# Whom:			Mitchell Smith <mjs@bur.st>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	frontbase
XPORTVERSION=	0.0.1
XCATEGORIES=	databases ruby
XMASTER_SITES+=	http://www.frontbase.com/download/Ruby/
XPKGNAMEPREFIX=	ruby-
XDISTNAME=	ruby-frontbase-${PORTVERSION}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	mjs@bur.st
XCOMMENT=	Ruby interface to the FrontBase db engine
X
XBUILD_DEPENDS+=	${LOCALBASE}/lib/libFBCAccess.a:../frontbase
XRUN_DEPENDS+=	${BUILD_DEPENDS}
X
XUSE_RUBY=	yes
XUSE_RUBY_EXTCONF=	yes
X
XWRKSRC=      ${WRKDIR}/ruby-frontbase
X
XCONFIGURE_WRKSRC=	${WRKSRC}
XBUILD_WRKSRC=		${WRKSRC}
XINSTALL_WRKSRC=		${WRKSRC}
XINSTALL_TARGET=	site-install
X
X.include <bsd.port.mk>
END-of-ruby-frontbase/Makefile
echo x - ruby-frontbase/distinfo
sed 's/^X//' >ruby-frontbase/distinfo << 'END-of-ruby-frontbase/distinfo'
XMD5 (ruby-frontbase-0.0.1.tgz) = 92351e12031c602990e7f9762e309bf1
XSHA256 (ruby-frontbase-0.0.1.tgz) = 9573217c07812cdc184de225ff88804495212c0b89c59c4ca6bb8a91952cad08
XSIZE (ruby-frontbase-0.0.1.tgz) = 20807
END-of-ruby-frontbase/distinfo
echo c - ruby-frontbase/files
mkdir -p ruby-frontbase/files > /dev/null 2>&1
echo x - ruby-frontbase/files/patch-extconf.rb
sed 's/^X//' >ruby-frontbase/files/patch-extconf.rb << 'END-of-ruby-frontbase/files/patch-extconf.rb'
X--- extconf.rb.orig	2006-04-15 07:52:37.000000000 +1000
X+++ extconf.rb	2008-05-29 12:54:28.000000000 +1000
X@@ -2,8 +2,8 @@
X 
X dir_config('frontbase')
X 
X-$CPPFLAGS = "-I/Library/FrontBase/include"
X-$LDFLAGS = "-L/Library/FrontBase/lib"
X+$CPPFLAGS = "-I/usr/local/include"
X+$LDFLAGS = "-L/usr/local/lib"
X $libs = " -lFBCAccess "
X create_makefile("frontbase")
X 
END-of-ruby-frontbase/files/patch-extconf.rb
echo x - ruby-frontbase/files/patch-frontbase.c
sed 's/^X//' >ruby-frontbase/files/patch-frontbase.c << 'END-of-ruby-frontbase/files/patch-frontbase.c'
X--- frontbase.c.orig	2006-04-15 07:57:23.000000000 +1000
X+++ frontbase.c	2008-05-29 12:55:37.000000000 +1000
X@@ -9,57 +9,10 @@
X 
X #include "ruby.h"
X 
X-#if defined(__APPLE__)
X-#include "/Library/FrontBase/include/FBCAccess/FBCAccess.h"
X-#else
X-#warning I don't know where FBCAccess.h is installed on non-OSX platforms
X-#include "/Library/FrontBase/include/FBCAccess/FBCAccess.h"
X-#endif
X+#include "/usr/local/include/FBCAccess/FBCAccess.h"
X 
X #pragma mark --- structure definitions ---
X 
X-typedef struct FBCLob
X-{
X-   unsigned char  kind;               // 0 => direct, 1 => indirect
X-   char           handleAsString[28]; // @'<24 hex digits>'\0
X-} FBCLob;
X-
X-typedef union FBCColumn FBCColumn;
X-
X-union FBCColumn
X-{
X-   char               tinyInteger;
X-   short              shortInteger;
X-   int                integer;
X-   int                primaryKey;
X-   long long          longInteger;
X-   unsigned char      boolean;
X-   char               character[0x7fffffff];
X-   double             numeric;
X-   double             real;
X-   double             decimal;
X-   FBCBitValue        bit;
X-   char               date[11];   // YYYY-MM-DD
X-   int                unformattedDate;
X-   char               time[9];    // HH:MM:SS
X-   char               timeTZ[34];   // YYYY-MM-DD HH:MM:SS.sssss+HH:MM
X-   char               timestampTZ[34];
X-   char               timestamp[28];
X-   char               yearMonth[64];    
X-   char               dayTime[32];  //  days:hh:ss.ffffff
X-   FBCLob             blob;
X-   FBCLob             clob;
X-   double             rawDate;
X-   FBCUnformattedTime rawTime;
X-   FBCUnformattedTime rawTimeTZ;
X-   FBCUnformattedTime rawTimestamp;
X-   FBCUnformattedTime rawTimestampTZ;
X-   int                rawYearMonth;
X-   double             rawDayTime;
X-};
X-
X-typedef FBCColumn* FBCRow;
X-
X struct fbsqlconnect
X {
X    int port;
END-of-ruby-frontbase/files/patch-frontbase.c
echo x - ruby-frontbase/pkg-descr
sed 's/^X//' >ruby-frontbase/pkg-descr << 'END-of-ruby-frontbase/pkg-descr'
XThis is a Ruby extension for accessing FrontBase databases.
X
XWWW: http://www.frontbase.com/
END-of-ruby-frontbase/pkg-descr
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->clsung 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu May 29 03:30:11 UTC 2008 
Responsible-Changed-Why:  
clsung@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124085 
State-Changed-From-To: open->feedback 
State-Changed-By: clsung 
State-Changed-When: Fri Jun 6 08:29:40 UTC 2008 
State-Changed-Why:  
Hi, where's ../frontbase dir? 

XBUILD_DEPENDS+= ${LOCALBASE}/lib/libFBCAccess.a:../frontbase 


http://www.freebsd.org/cgi/query-pr.cgi?pr=124085 

From: "Mitchell Smith" <mjs@bur.st>
To: <bug-followup@FreeBSD.org>,
	<mjs@bur.st>
Cc:  
Subject: Re: ports/124085: (New Port) databases/ruby-frontbase
Date: Sat, 7 Jun 2008 09:50:28 +1000

 Sorry about the relative path, that was just to get the port working in my 
 local ports tree.
 
 The correct location is /usr/ports/databases/frontbase which I have 
 submitted a port for, though it doesn't look like it has been committed yet 
 (ports/123994).
 
 It is probably not a good idea to commit ruby-frontbase before the main 
 FrontBase port gets committed.
 
 Thanks
 
State-Changed-From-To: feedback->closed 
State-Changed-By: edwin 
State-Changed-When: Mon Jun 16 06:50:26 UTC 2008 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124085 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/124085: commit references a PR
Date: Mon, 16 Jun 2008 06:50:30 +0000 (UTC)

 edwin       2008-06-16 06:50:26 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases            Makefile 
   Added files:
     databases/ruby-frontbase Makefile distinfo pkg-descr pkg-plist 
     databases/ruby-frontbase/files patch-extconf.rb 
                                    patch-frontbase.c 
   Log:
   (New Port) databases/ruby-frontbase
   
           The ruby extension for access to FrontBase databases is not
           currently available in the FreeBSD ports tree.
   
   PR:             ports/124085
   Submitted by:   Mitchell Smith <mjs@bur.st>
   
   Revision  Changes    Path
   1.690     +1 -0      ports/databases/Makefile
   1.1       +32 -0     ports/databases/ruby-frontbase/Makefile (new)
   1.1       +3 -0      ports/databases/ruby-frontbase/distinfo (new)
   1.1       +13 -0     ports/databases/ruby-frontbase/files/patch-extconf.rb (new)
   1.1       +61 -0     ports/databases/ruby-frontbase/files/patch-frontbase.c (new)
   1.1       +3 -0      ports/databases/ruby-frontbase/pkg-descr (new)
   1.1       +1 -0      ports/databases/ruby-frontbase/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
