Hello!

Attached is a shar for a new port -- of the bencode-module <http://pypi.python.org/pypi/bencode/>. Everything is fairly straightforward about it, except:

1. Just like devel/py-setuptools is creates/updates the
   site-packages/easy-install.pth. However, using the same method of cleaning
   up the file as the setuptools will not work, when more than one port updates
   the file. The .dist extension for the backed-up version should, probably, be
   replaced by a port-specific one -- so that each port creates its own backup.
   Or am I misreading it?
2. The new port also drops an egg -- without even the egg-info file -- maybe,
   all such ports should be forced (by bsd.python.mk) to properly unzip and
   install the contents? Instead of unzipping at run-time every time? It works
   either way, I'm sure, but it seems to me, the .egg concept was created for
   the benefit of people, who do not use anything like the Ports system.

Thanks for the feedback. Yours,

   -mi

# 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:
#
#       py-bencode
#       py-bencode/Makefile
#       py-bencode/distinfo
#       py-bencode/pkg-descr
#
echo c - py-bencode
mkdir -p py-bencode > /dev/null 2>&1
echo x - py-bencode/Makefile
sed 's/^X//' >py-bencode/Makefile << '8e9e08c27483a0042d47ca86ecca9e56'
X# Created by: Mikhail Teterin <m...@aldan.algebra.com>
X# $FreeBSD$
X
XPORTNAME=      bencode
XPORTVERSION=   1.0
XCATEGORIES=    devel python
XMASTER_SITES=  ${MASTER_SITE_CHEESESHOP}
XMASTER_SITE_SUBDIR=source/${PORTNAME:C/(.).*/\1/}/${PORTNAME}
XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=    m...@aldan.algebra.com
XCOMMENT=       Standalone implementation of BitTorrent's encoding/decoding
X
XUSE_PYTHON=            2.5+
XUSE_PYDISTUTILS=       yes
XPYDISTUTILS_NOEGGINFO= yes
XPLIST_FILES=   
%%PYTHON_SITELIBDIR%%/${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
X
X.include <bsd.port.mk>
8e9e08c27483a0042d47ca86ecca9e56
echo x - py-bencode/distinfo
sed 's/^X//' >py-bencode/distinfo << 'bf094c3eb541cf2d243da8ee22ffe064'
XSHA256 (bencode-1.0.tar.gz) = 
0301c2202233a3f274c940702bac7bd02d5d053b8bf9502b085156270e30be9b
XSIZE (bencode-1.0.tar.gz) = 2385
bf094c3eb541cf2d243da8ee22ffe064
echo x - py-bencode/pkg-descr
sed 's/^X//' >py-bencode/pkg-descr << '10e1a7f0605ca4b1e8dc0bdcb59c21bb'
XThe BitTorrent bencode module as light-weight, standalone package.
X
XThis package simply re-packages the existing bencoding and bdecoding
Ximplemention from the 'official' BitTorrent client as a separate,
Xleight-weight package for re-using them without having the entire
XBitTorrent software as a dependency.
X
XWWW: http://pypi.python.org/pypi/bencode/
10e1a7f0605ca4b1e8dc0bdcb59c21bb
exit
_______________________________________________
freebsd-python@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"

Reply via email to