aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-02-23 04:06:53 +0800
committersem <sem@FreeBSD.org>2005-02-23 04:06:53 +0800
commit7247dfa17b6d11612a0210e443a93f27b49f1c7c (patch)
treeaf56e32ddb0a3812c3afc7c43b41d641d838fd95 /textproc
parentd15aada75591d7e988c848a1b61e277e42029c9b (diff)
downloadfreebsd-ports-graphics-7247dfa17b6d11612a0210e443a93f27b49f1c7c.tar.gz
freebsd-ports-graphics-7247dfa17b6d11612a0210e443a93f27b49f1c7c.tar.zst
freebsd-ports-graphics-7247dfa17b6d11612a0210e443a93f27b49f1c7c.zip
New port: ArCHMage is extensible reader/decompiler of files in CHM format.
PR: ports/77930 Submitted by: Vsevolod Stakhov <vsevolod(at)highsecure.ru>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/archmage/Makefile30
-rw-r--r--textproc/archmage/distinfo2
-rw-r--r--textproc/archmage/files/patch-aa25
-rw-r--r--textproc/archmage/pkg-descr5
-rw-r--r--textproc/archmage/pkg-plist62
6 files changed, 125 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 7267d8cac04..f31b07d188e 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -15,6 +15,7 @@
SUBDIR += am-aspell
SUBDIR += ant-xinclude-task
SUBDIR += antiword
+ SUBDIR += archmage
SUBDIR += ascii2pdf
SUBDIR += asm2html
SUBDIR += aspell
diff --git a/textproc/archmage/Makefile b/textproc/archmage/Makefile
new file mode 100644
index 00000000000..cfbb3832176
--- /dev/null
+++ b/textproc/archmage/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: archmage
+# Date created: 22 February 2005
+# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= archmage
+PORTVERSION= 0.0.6
+CATEGORIES= textproc python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= archmage
+
+MAINTAINER= vsevolod@highsecure.ru
+COMMENT= Extensible reader/decompiler of files in CHM format
+
+RUN_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/chm/_chmlib.so:${PORTSDIR}/textproc/pychm
+
+NO_BUILD= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PYDISTUTILS_INSTALLARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib \
+ install -c -O1 --prefix=${PREFIX}
+USE_REINPLACE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e "s,/usr/share,${PREFIX}/share," ${WRKSRC}/arch.conf
+ @${REINPLACE_CMD} -e "s,/etc/arch\.conf,${PREFIX}/etc/arch\.conf," ${WRKSRC}/CHM.py
+
+.include <bsd.port.mk>
diff --git a/textproc/archmage/distinfo b/textproc/archmage/distinfo
new file mode 100644
index 00000000000..65684761b24
--- /dev/null
+++ b/textproc/archmage/distinfo
@@ -0,0 +1,2 @@
+MD5 (archmage-0.0.6.tar.gz) = 0ab0e7c51fbf10be0a2719f5b5f329f8
+SIZE (archmage-0.0.6.tar.gz) = 140839
diff --git a/textproc/archmage/files/patch-aa b/textproc/archmage/files/patch-aa
new file mode 100644
index 00000000000..451a84a14af
--- /dev/null
+++ b/textproc/archmage/files/patch-aa
@@ -0,0 +1,25 @@
+--- setup.py.orig Tue Feb 22 19:18:40 2005
++++ setup.py Tue Feb 22 19:19:26 2005
+@@ -14,7 +14,7 @@
+
+ py_modules = ['chmlib', 'CHM', 'mod_chm'],
+ scripts = ['archmage'],
+- data_files = [ ('/etc/', [ 'arch.conf' ] ),
++ data_files = [ ('etc/', [ 'arch.conf' ] ),
+ ( 'share/archmage/templates/',
+ ['templates/arch_contents.html',
+ 'templates/arch_frameset.html',
+@@ -65,13 +65,4 @@
+ 'templates/icons/7.gif',
+ 'templates/icons/8.gif',
+ 'templates/icons/9.gif']) ],
+- ext_modules = [ Extension(name = '_chmlib',
+- sources =
+- [ 'chmlib/chm_lib.c',
+- 'chmlib/wrapper.c',
+- 'chmlib/lzx.c',
+- 'chmlib/az_chmlib_add.c'
+- ],
+- include_dirs=["chmlib"])
+- ]
+ )
diff --git a/textproc/archmage/pkg-descr b/textproc/archmage/pkg-descr
new file mode 100644
index 00000000000..f4ea51088de
--- /dev/null
+++ b/textproc/archmage/pkg-descr
@@ -0,0 +1,5 @@
+ArCHMage is the extensible reader/decompiler of files in CHM format(Microsoft
+HTML help, also known as Compiled HTML). ArCHMage is based on chmlib by Jed
+Wing and is written on python.
+
+WWW: http://archmage.sourceforge.net/
diff --git a/textproc/archmage/pkg-plist b/textproc/archmage/pkg-plist
new file mode 100644
index 00000000000..9bf30ddcf75
--- /dev/null
+++ b/textproc/archmage/pkg-plist
@@ -0,0 +1,62 @@
+bin/archmage
+etc/arch.conf
+%%DATADIR%%/templates/arch_contents.html
+%%DATADIR%%/templates/arch_frameset.html
+%%DATADIR%%/templates/arch_header.html
+%%DATADIR%%/templates/index.html
+%%DATADIR%%/templates/arch_css.css
+%%DATADIR%%/templates/icons/next.gif
+%%DATADIR%%/templates/icons/0.gif
+%%DATADIR%%/templates/icons/1.gif
+%%DATADIR%%/templates/icons/11.gif
+%%DATADIR%%/templates/icons/12.gif
+%%DATADIR%%/templates/icons/17.gif
+%%DATADIR%%/templates/icons/2.gif
+%%DATADIR%%/templates/icons/22.gif
+%%DATADIR%%/templates/icons/90.gif
+%%DATADIR%%/templates/icons/91.gif
+%%DATADIR%%/templates/icons/92.gif
+%%DATADIR%%/templates/icons/93.gif
+%%DATADIR%%/templates/icons/94.gif
+%%DATADIR%%/templates/icons/95.gif
+%%DATADIR%%/templates/icons/96.gif
+%%DATADIR%%/templates/icons/97.gif
+%%DATADIR%%/templates/icons/98.gif
+%%DATADIR%%/templates/icons/99.gif
+%%DATADIR%%/templates/icons/10.gif
+%%DATADIR%%/templates/icons/prev.gif
+%%DATADIR%%/templates/icons/13.gif
+%%DATADIR%%/templates/icons/14.gif
+%%DATADIR%%/templates/icons/15.gif
+%%DATADIR%%/templates/icons/16.gif
+%%DATADIR%%/templates/icons/18.gif
+%%DATADIR%%/templates/icons/19.gif
+%%DATADIR%%/templates/icons/20.gif
+%%DATADIR%%/templates/icons/21.gif
+%%DATADIR%%/templates/icons/23.gif
+%%DATADIR%%/templates/icons/24.gif
+%%DATADIR%%/templates/icons/25.gif
+%%DATADIR%%/templates/icons/26.gif
+%%DATADIR%%/templates/icons/27.gif
+%%DATADIR%%/templates/icons/35.gif
+%%DATADIR%%/templates/icons/37.gif
+%%DATADIR%%/templates/icons/39.gif
+%%DATADIR%%/templates/icons/3.gif
+%%DATADIR%%/templates/icons/4.gif
+%%DATADIR%%/templates/icons/5.gif
+%%DATADIR%%/templates/icons/6.gif
+%%DATADIR%%/templates/icons/7.gif
+%%DATADIR%%/templates/icons/8.gif
+%%DATADIR%%/templates/icons/9.gif
+%%PYTHON_SITELIBDIR%%/CHM.py
+%%PYTHON_SITELIBDIR%%/CHM.pyo
+%%PYTHON_SITELIBDIR%%/CHM.pyc
+%%PYTHON_SITELIBDIR%%/chmlib.py
+%%PYTHON_SITELIBDIR%%/chmlib.pyc
+%%PYTHON_SITELIBDIR%%/chmlib.pyo
+%%PYTHON_SITELIBDIR%%/mod_chm.py
+%%PYTHON_SITELIBDIR%%/mod_chm.pyo
+%%PYTHON_SITELIBDIR%%/mod_chm.pyc
+@dirrm %%DATADIR%%/templates/icons
+@dirrm %%DATADIR%%/templates
+@dirrm %%DATADIR%%