Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2005 20:13:28 +0300
From:      Vsevolod Stakhov <vsevolod@highsecure.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/77930: New port: textproc/archmage
Message-ID:  <E1D3dbE-000818-0c@spray.anyhost.ru>
Resent-Message-ID: <200502221720.j1MHKIXb016045@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77930
>Category:       ports
>Synopsis:       New port: textproc/archmage
>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:   Tue Feb 22 17:20:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vsevolod Stakhov
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD nemezida.highsecure.ru 5.3-STABLE FreeBSD 5.3-STABLE #2: Fri Jan 28 02:15:40 MSK 2005 root@nemezida.highsecure.ru:/mnt/data/usr/obj/mnt/data/usr/src/sys/NK i386

>Description:
ArCHMage is extensible reader/decompiler of files in CHM format.
>How-To-Repeat:
>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:
#
#	archmage
#	archmage/Makefile
#	archmage/distinfo
#	archmage/files
#	archmage/files/patch-aa
#	archmage/pkg-descr
#	archmage/pkg-plist
#
echo c - archmage
mkdir -p archmage > /dev/null 2>&1
echo x - archmage/Makefile
sed 's/^X//' >archmage/Makefile << 'END-of-archmage/Makefile'
X# New ports collection makefile for:	archmage
X# Date created:                		22 February 2005
X# Whom:                    		Vsevolod Stakhov <vsevolod@highsecure.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	archmage
XPORTVERSION=	0.0.6
XCATEGORIES=	textproc python
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	archmage
X
XMAINTAINER=	vsevolod@highsecure.ru
XCOMMENT=	Extensible reader/decompiler of files in CHM format
X
XRUN_DEPENDS=	${PYTHONPREFIX_SITELIBDIR}/chm/_chmlib.so:${PORTSDIR}/textproc/pychm
X
XNO_BUILD=	yes
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
XPYDISTUTILS_INSTALLARGS=	build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib \
X			 	install -c -O1 --prefix=${PREFIX}
XUSE_REINPLACE=	yes
X
Xpost-patch:
X	@${REINPLACE_CMD} -e "s,/usr/share,${PREFIX}/share," ${WRKSRC}/arch.conf
X	@${REINPLACE_CMD} -e "s,/etc/arch\.conf,${PREFIX}/etc/arch\.conf," ${WRKSRC}/CHM.py
X
X.include <bsd.port.mk>
END-of-archmage/Makefile
echo x - archmage/distinfo
sed 's/^X//' >archmage/distinfo << 'END-of-archmage/distinfo'
XMD5 (archmage-0.0.6.tar.gz) = 0ab0e7c51fbf10be0a2719f5b5f329f8
XSIZE (archmage-0.0.6.tar.gz) = 140839
END-of-archmage/distinfo
echo c - archmage/files
mkdir -p archmage/files > /dev/null 2>&1
echo x - archmage/files/patch-aa
sed 's/^X//' >archmage/files/patch-aa << 'END-of-archmage/files/patch-aa'
X--- setup.py.orig	Tue Feb 22 19:18:40 2005
X+++ setup.py	Tue Feb 22 19:19:26 2005
X@@ -14,7 +14,7 @@
X 
X        py_modules = ['chmlib', 'CHM', 'mod_chm'],
X        scripts = ['archmage'],
X-       data_files = [ ('/etc/', [ 'arch.conf' ] ),
X+       data_files = [ ('etc/', [ 'arch.conf' ] ),
X                       ( 'share/archmage/templates/',
X                         ['templates/arch_contents.html',
X                          'templates/arch_frameset.html',
X@@ -65,13 +65,4 @@
X                          'templates/icons/7.gif',
X                          'templates/icons/8.gif',
X                          'templates/icons/9.gif']) ],
X-       ext_modules = [ Extension(name = '_chmlib',
X-                                 sources =
X-                                 [ 'chmlib/chm_lib.c',
X-                                   'chmlib/wrapper.c',
X-                                   'chmlib/lzx.c',
X-                                   'chmlib/az_chmlib_add.c'
X-                                 ],
X-                                 include_dirs=["chmlib"])
X-                     ]
X        )
END-of-archmage/files/patch-aa
echo x - archmage/pkg-descr
sed 's/^X//' >archmage/pkg-descr << 'END-of-archmage/pkg-descr'
XArCHMage is the extensible reader/decompiler of files in CHM format(Microsoft
XHTML help, also known as Compiled HTML). ArCHMage is based on chmlib by Jed
XWing and is written on python.
X
XWWW: http://archmage.sourceforge.net/
END-of-archmage/pkg-descr
echo x - archmage/pkg-plist
sed 's/^X//' >archmage/pkg-plist << 'END-of-archmage/pkg-plist'
Xbin/archmage
Xetc/arch.conf
X%%DATADIR%%/templates/arch_contents.html
X%%DATADIR%%/templates/arch_frameset.html
X%%DATADIR%%/templates/arch_header.html
X%%DATADIR%%/templates/index.html
X%%DATADIR%%/templates/arch_css.css
X%%DATADIR%%/templates/icons/next.gif
X%%DATADIR%%/templates/icons/0.gif
X%%DATADIR%%/templates/icons/1.gif
X%%DATADIR%%/templates/icons/11.gif
X%%DATADIR%%/templates/icons/12.gif
X%%DATADIR%%/templates/icons/17.gif
X%%DATADIR%%/templates/icons/2.gif
X%%DATADIR%%/templates/icons/22.gif
X%%DATADIR%%/templates/icons/90.gif
X%%DATADIR%%/templates/icons/91.gif
X%%DATADIR%%/templates/icons/92.gif
X%%DATADIR%%/templates/icons/93.gif
X%%DATADIR%%/templates/icons/94.gif
X%%DATADIR%%/templates/icons/95.gif
X%%DATADIR%%/templates/icons/96.gif
X%%DATADIR%%/templates/icons/97.gif
X%%DATADIR%%/templates/icons/98.gif
X%%DATADIR%%/templates/icons/99.gif
X%%DATADIR%%/templates/icons/10.gif
X%%DATADIR%%/templates/icons/prev.gif
X%%DATADIR%%/templates/icons/13.gif
X%%DATADIR%%/templates/icons/14.gif
X%%DATADIR%%/templates/icons/15.gif
X%%DATADIR%%/templates/icons/16.gif
X%%DATADIR%%/templates/icons/18.gif
X%%DATADIR%%/templates/icons/19.gif
X%%DATADIR%%/templates/icons/20.gif
X%%DATADIR%%/templates/icons/21.gif
X%%DATADIR%%/templates/icons/23.gif
X%%DATADIR%%/templates/icons/24.gif
X%%DATADIR%%/templates/icons/25.gif
X%%DATADIR%%/templates/icons/26.gif
X%%DATADIR%%/templates/icons/27.gif
X%%DATADIR%%/templates/icons/35.gif
X%%DATADIR%%/templates/icons/37.gif
X%%DATADIR%%/templates/icons/39.gif
X%%DATADIR%%/templates/icons/3.gif
X%%DATADIR%%/templates/icons/4.gif
X%%DATADIR%%/templates/icons/5.gif
X%%DATADIR%%/templates/icons/6.gif
X%%DATADIR%%/templates/icons/7.gif
X%%DATADIR%%/templates/icons/8.gif
X%%DATADIR%%/templates/icons/9.gif
X%%PYTHON_SITELIBDIR%%/CHM.py
X%%PYTHON_SITELIBDIR%%/CHM.pyo
X%%PYTHON_SITELIBDIR%%/CHM.pyc
X%%PYTHON_SITELIBDIR%%/chmlib.py
X%%PYTHON_SITELIBDIR%%/chmlib.pyo
X%%PYTHON_SITELIBDIR%%/mod_chm.py
X%%PYTHON_SITELIBDIR%%/mod_chm.pyo
X%%PYTHON_SITELIBDIR%%/mod_chm.pyc
X@dirrm %%DATADIR%%/templates/icons
X@dirrm %%DATADIR%%/templates
END-of-archmage/pkg-plist
exit

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1D3dbE-000818-0c>