ports/156066: [NEW PORT] databases/rubygem-xapian-full (self contained xapian bindings)

Eric Freeman freebsdports at chillibear.com
Wed Mar 30 18:50:11 UTC 2011


>Number:         156066
>Category:       ports
>Synopsis:       [NEW PORT] databases/rubygem-xapian-full (self contained xapian bindings)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 30 18:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Eric Freeman
>Release:        9.0
>Organization:
>Environment:
FreeBSD bsd9.local 9.0-CURRENT-201008 FreeBSD 9.0-CURRENT-201008 #0: Tue Aug  3 20:09:44 UTC 2010     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
This is a port of the xapian-full gem.  It contains a copy of Xapian 1.2.3 bundled within and is therefore independent of any system installed copy of Xapian.

I had some issues with the rubygem automatic plist where several symlinks were not cleaned up after deinstall.  A manual plist with some 'unlink' commands seems to do the job nicely, however if there is a better way please advise.  Please note that building the gem takes some time because of the full xapian build that happens behind the scenes.

Ported as a dependency of another gem I am working on.
>How-To-Repeat:
n/a
>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:
#
#	rubygem-xapian-full
#	rubygem-xapian-full/distinfo
#	rubygem-xapian-full/Makefile
#	rubygem-xapian-full/pkg-descr
#	rubygem-xapian-full/pkg-plist
#
echo c - rubygem-xapian-full
mkdir -p rubygem-xapian-full > /dev/null 2>&1
echo x - rubygem-xapian-full/distinfo
sed 's/^X//' >rubygem-xapian-full/distinfo << '90bdeb2a61a3e61aaf27f3b906f1621c'
XSHA256 (rubygem/xapian-full-1.2.3.gem) = bb673fed9de40c215138503ce39a361acd7ccb7e33636d5ab95aa291a3e6e00b
XSIZE (rubygem/xapian-full-1.2.3.gem) = 5030400
90bdeb2a61a3e61aaf27f3b906f1621c
echo x - rubygem-xapian-full/Makefile
sed 's/^X//' >rubygem-xapian-full/Makefile << '81bdccdb13bcd2064f428d5348e325da'
X# Ports collection makefile for:	rubygem-xapian-full
X# Date created:				19 Mar 2011
X# Whom:					Eric Freeman <freebsdports at chillibear.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xapian-full
XPORTVERSION=	1.2.3
XCATEGORIES=	databases rubygems
XMASTER_SITES=	RG
X
XMAINTAINER=	freebsdports at chillibear.com
XCOMMENT=	System independent Xapian bindings for Ruby
X
XBUNDLED_XAPIAN_VERSION=	1.2.3
XPLIST_SUB=	BUNDLED_XAPIAN_VERSION=${BUNDLED_XAPIAN_VERSION}
X
XUSE_RUBY=		yes
XUSE_RUBYGEMS=		yes
XRUBYGEM_AUTOPLIST=	yes
X
X.include <bsd.port.mk>
81bdccdb13bcd2064f428d5348e325da
echo x - rubygem-xapian-full/pkg-descr
sed 's/^X//' >rubygem-xapian-full/pkg-descr << '6602d0e4a34bbcc22163e8f6366ab504'
XXapian bindings for Ruby without a dependency on system Xapian library
XThe current bundled version of Xapian is 1.2.3
6602d0e4a34bbcc22163e8f6366ab504
echo x - rubygem-xapian-full/pkg-plist
sed 's/^X//' >rubygem-xapian-full/pkg-plist << '37440181a7023d9c3ba81e507635d563'
X at comment  These are all symlinks which are not cleaned up automatically.
X at unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-bindings-%%BUNDLED_XAPIAN_VERSION%%/ruby/.libs/_xapian.la
X at unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libbrasscheck.la
X at unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libchertcheck.la
X at unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libflintcheck.la
X at unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libgetopt.la
X at unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libxapian.la
X at unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libxapian.so
37440181a7023d9c3ba81e507635d563
exit

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



More information about the freebsd-ports-bugs mailing list