2a836a88ab
The yEnc module provide a simple API for doing raw encoding/decoding of yencoded binaries, mainly for retrieving or posting to the usenet. This implementation is really simple and intended mainly as an exercise to the author but is also significantly faster than any possible pure Python implementation and it's being actually used by some Python nntp clients out there. From Mikko Tolmunen (MAINTAINER) with tweaks by Will Maier ok simon@
38 lines
889 B
Makefile
38 lines
889 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2007/12/17 00:57:35 merdely Exp $
|
|
|
|
COMMENT= yEnc encoding/decoding extension for Python
|
|
|
|
DISTNAME= yenc-0.3
|
|
PKGNAME= py-${DISTNAME}
|
|
CATEGORIES= news
|
|
|
|
HOMEPAGE= http://www.hellanzb.com/
|
|
MASTER_SITES= ${HOMEPAGE}hellanzb-content/
|
|
|
|
MAINTAINER= Mikko Tolmunen <oskari@sefirosu.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MODULES= lang/python
|
|
|
|
REGRESS_DEPENDS= ::news/py-yenc
|
|
|
|
CFLAGS+= -g -O2
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-yenc
|
|
${INSTALL_DATA} ${WRKSRC}/{README,doc/yenc-draft.1.3.txt} \
|
|
${PREFIX}/share/doc/py-yenc
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-yenc
|
|
cd ${WRKSRC}/examples; tar -cf - * | \
|
|
(cd ${PREFIX}/share/examples/py-yenc; tar -xf -)
|
|
|
|
do-regress:
|
|
cd ${WRKSRC}/test && ${MODPY_BIN} test.py
|
|
|
|
.include <bsd.port.mk>
|