Bug 95284 - [NEW PORT] textproc/pyenchant: A spellchecking library for Python based on the Enchant library
Summary: [NEW PORT] textproc/pyenchant: A spellchecking library for Python based on th...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-03 22:30 UTC by Nicola Vitale
Modified: 2006-04-06 12:40 UTC (History)
0 users

See Also:


Attachments
pyenchant-1.1.5.shar (3.18 KB, text/plain)
2006-04-03 22:30 UTC, Nicola Vitale
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicola Vitale 2006-04-03 22:30:19 UTC
PyEnchant is a set of language bindings and some wrapper classes to make
the excellent Enchant spellchecker available as a Python module.
The bindings are generated using SWIG. It includes all the functionality
of Enchant with the flexibility of Python and a nice 'Pythonic'
object-oriented interface. It also aims to provide some higher-level
functionality than is available in the C API.

Author:	Ryan Kelly <ryan@rfk.id.au>
WWW:	http://pyenchant.sourceforge.net/

Generated with FreeBSD Port Tools 0.63
Comment 1 Renato Botelho freebsd_committer freebsd_triage 2006-04-04 16:19:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->garga

I'll take it.
Comment 2 Renato Botelho freebsd_committer freebsd_triage 2006-04-05 13:10:43 UTC
Hello Nicola,

I made some changes to adjust the port, and now, he is working fine,
except for one reason.

If you have a RELENG_6 machine, and build a RELENG_5 jail, it
doesn't work, because it creates a dir using OS Release, in that
example, var OSRELEASE set on ports Makefile get the correct one,
using `uname -r` it will get 5-STABLE, but, the py-setuptools (i'm
not sure) get OS rel using another tool, because it get from main
box, 6-STABLE.

You can see an e of the problem here:

http://srvmix.galle.com.br/tb/errors/5-STABLE/pyenchant-1.1.5.log

Here is a new shar file of the new port version:

# 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:
#
#	./pyenchant
#	./pyenchant/Makefile
#	./pyenchant/distinfo
#	./pyenchant/files
#	./pyenchant/files/pkg-deinstall.in
#	./pyenchant/pkg-descr
#	./pyenchant/pkg-plist
#
echo c - ./pyenchant
mkdir -p ./pyenchant > /dev/null 2>&1
echo x - ./pyenchant/Makefile
sed 's/^X//' >./pyenchant/Makefile << 'END-of-./pyenchant/Makefile'
X# New ports collection makefile for:	pyenchant
X# Date created:		2006-04-03
X# Whom:			Nicola Vitale	<nivit@email.it>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pyenchant
XPORTVERSION=	1.1.5
XCATEGORIES=	textproc devel python
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	nivit@email.it
XCOMMENT=	A spellchecking library for Python based on the Enchant library
X
XLIB_DEPENDS=	enchant.1:${PORTSDIR}/textproc/enchant
X# need to remove the egg
XBUILD_DEPENDS=	easy_install:${PORTSDIR}/devel/py-setuptools
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
X
XSUB_FILES=	pkg-deinstall
XSUB_LIST=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
X		EGG="${PORTNAME}==${PORTVERSION}" \
X
XPLIST_SUB=	PORTNAME=${PORTNAME} \
X		PORTVERSION=${PORTVERSION} \
X		PYTHON_PKGNAMEPREFIX=${PYTHON_PKGNAMEPREFIX:C/[0-9]-$/.&/g} \
X		OPSYS=${OPSYS:L} OSRELEASE=${OSRELEASE} ARCH=${ARCH}
X
XMAKE_ENV+=	LDFLAGS="-L${LOCALBASE}/lib"
X
X.include <bsd.port.pre.mk>
X
XOSRELEASE!=	${UNAME} -r
X
X.include <bsd.port.post.mk>
END-of-./pyenchant/Makefile
echo x - ./pyenchant/distinfo
sed 's/^X//' >./pyenchant/distinfo << 'END-of-./pyenchant/distinfo'
XMD5 (pyenchant-1.1.5.tar.gz) = d9a07392f1f0910635a221273ac9654d
XSHA256 (pyenchant-1.1.5.tar.gz) = ff4b0ac64e93bd567626f99f72671cd244e9564a2f02c108e2e61ce9d0734849
XSIZE (pyenchant-1.1.5.tar.gz) = 63221
END-of-./pyenchant/distinfo
echo c - ./pyenchant/files
mkdir -p ./pyenchant/files > /dev/null 2>&1
echo x - ./pyenchant/files/pkg-deinstall.in
sed 's/^X//' >./pyenchant/files/pkg-deinstall.in << 'END-of-./pyenchant/files/pkg-deinstall.in'
X#!/bin/sh
X# $FreeBSD$
XPKGNAME=$1
X#
Xcase $2 in
X    DEINSTALL)
X	easy_install -m -x -D -S %%PYTHON_SITELIBDIR%% %%EGG%%
X	;;
X    POST-DEINSTALL)
X	exit 0
X	;;
X    *)
X	echo "Unexpected Argument $2!!!"
X	exit 1
X	;;
Xesac
Xexit 0
END-of-./pyenchant/files/pkg-deinstall.in
echo x - ./pyenchant/pkg-descr
sed 's/^X//' >./pyenchant/pkg-descr << 'END-of-./pyenchant/pkg-descr'
XPyEnchant is a set of language bindings and some wrapper classes to make
Xthe excellent Enchant spellchecker available as a Python module.
XThe bindings are generated using SWIG. It includes all the functionality
Xof Enchant with the flexibility of Python and a nice 'Pythonic'
Xobject-oriented interface. It also aims to provide some higher-level
Xfunctionality than is available in the C API.
X
XAuthor:	Ryan Kelly <ryan@rfk.id.au>
XWWW:	http://pyenchant.sourceforge.net/
END-of-./pyenchant/pkg-descr
echo x - ./pyenchant/pkg-plist
sed 's/^X//' >./pyenchant/pkg-plist << 'END-of-./pyenchant/pkg-plist'
X@comment $FreeBSD$
X%%PYTHON_SITELIBDIR%%/%%PORTNAME%%-%%PORTVERSION%%-%%PYTHON_PKGNAMEPREFIX%%%%OPSYS%%-%%OSRELEASE%%-%%ARCH%%.egg
END-of-./pyenchant/pkg-plist
exit

Could you take a look at it? Please, if you send me a patch, 
send me one that i can apply in this new shar.

Thanks for contributing!
-- 
Renato Botelho <garga @ FreeBSD.org>
               <freebsd @ galle.com.br>
GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2006-04-05 13:25:23 UTC
State Changed
From-To: open->feedback

Ask for submitter fix.
Comment 4 Renato Botelho freebsd_committer freebsd_triage 2006-04-06 12:40:04 UTC
State Changed
From-To: feedback->closed

New port added. Thanks!