View | Details | Raw Unified | Return to bug 78152 | Differences between
and this patch

Collapse All | Expand All

(-)textproc/archmage/Makefile (-2 / +11 lines)
Lines 2-8 Link Here
2
# Date created:                		22 February 2005
2
# Date created:                		22 February 2005
3
# Whom:                    		Vsevolod Stakhov <vsevolod@highsecure.ru>
3
# Whom:                    		Vsevolod Stakhov <vsevolod@highsecure.ru>
4
#
4
#
5
# $FreeBSD$
5
# $FreeBSD: ports/textproc/archmage/Makefile,v 1.1 2005/02/22 20:06:53 sem Exp $
6
#
6
#
7
7
8
PORTNAME=	archmage
8
PORTNAME=	archmage
Lines 14-20 Link Here
14
MAINTAINER=	vsevolod@highsecure.ru
14
MAINTAINER=	vsevolod@highsecure.ru
15
COMMENT=	Extensible reader/decompiler of files in CHM format
15
COMMENT=	Extensible reader/decompiler of files in CHM format
16
16
17
RUN_DEPENDS=	${PYTHONPREFIX_SITELIBDIR}/chm/_chmlib.so:${PORTSDIR}/textproc/pychm
17
LIB_DEPENDS=	chm.0:${PORTSDIR}/misc/chmlib
18
18
19
NO_BUILD=	yes
19
NO_BUILD=	yes
20
USE_PYTHON=	yes
20
USE_PYTHON=	yes
Lines 26-30 Link Here
26
post-patch:
26
post-patch:
27
	@${REINPLACE_CMD} -e "s,/usr/share,${PREFIX}/share," ${WRKSRC}/arch.conf
27
	@${REINPLACE_CMD} -e "s,/usr/share,${PREFIX}/share," ${WRKSRC}/arch.conf
28
	@${REINPLACE_CMD} -e "s,/etc/arch\.conf,${PREFIX}/etc/arch\.conf," ${WRKSRC}/CHM.py
28
	@${REINPLACE_CMD} -e "s,/etc/arch\.conf,${PREFIX}/etc/arch\.conf," ${WRKSRC}/CHM.py
29
	@${MV} ${WRKSRC}/archmage ${WRKSRC}/archmage.orig
30
	@${MKDIR} ${WRKSRC}/archmage
31
	@${MV} ${WRKSRC}/archmage.orig ${WRKSRC}/archmage/archmage
32
	@${LN} -s ${WRKSRC}/chmlib/chmlib.py ${WRKSRC}/archmage/
33
	@${MV} ${WRKSRC}/CHM.py ${WRKSRC}/archmage/
34
	@${MV} ${WRKSRC}/mod_chm.py ${WRKSRC}/archmage/
35
36
post-install:
37
	@${ECHO} "archmage" > ${PYTHON_SITELIBDIR}/archmage.pth
29
38
30
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)textproc/archmage/files/patch-aa (-9 / +17 lines)
Lines 1-25 Link Here
1
--- setup.py.orig	Tue Feb 22 19:18:40 2005
1
--- setup.py.orig	Fri Aug 15 08:11:14 2003
2
+++ setup.py	Tue Feb 22 19:19:26 2005
2
+++ setup.py	Sat Feb 26 12:29:32 2005
3
@@ -14,7 +14,7 @@
3
@@ -12,9 +12,9 @@
4
        url = "archmage.sf.net",
5
        version = "0.0.6",
4
 
6
 
5
        py_modules = ['chmlib', 'CHM', 'mod_chm'],
7
-       py_modules = ['chmlib', 'CHM', 'mod_chm'],
6
        scripts = ['archmage'],
8
-       scripts = ['archmage'],
7
-       data_files = [ ('/etc/', [ 'arch.conf' ] ),
9
-       data_files = [ ('/etc/', [ 'arch.conf' ] ),
10
+       py_modules = ['archmage.chmlib', 'archmage.CHM', 'archmage.mod_chm'],
11
+       scripts = ['archmage/archmage'],
8
+       data_files = [ ('etc/', [ 'arch.conf' ] ),
12
+       data_files = [ ('etc/', [ 'arch.conf' ] ),
9
                       ( 'share/archmage/templates/',
13
                       ( 'share/archmage/templates/',
10
                         ['templates/arch_contents.html',
14
                         ['templates/arch_contents.html',
11
                          'templates/arch_frameset.html',
15
                          'templates/arch_frameset.html',
12
@@ -65,13 +65,4 @@
16
@@ -65,13 +65,11 @@
13
                          'templates/icons/7.gif',
17
                          'templates/icons/7.gif',
14
                          'templates/icons/8.gif',
18
                          'templates/icons/8.gif',
15
                          'templates/icons/9.gif']) ],
19
                          'templates/icons/9.gif']) ],
16
-       ext_modules = [ Extension(name = '_chmlib',
20
-       ext_modules = [ Extension(name = '_chmlib',
17
-                                 sources =
21
+       ext_modules = [ Extension(name = 'archmage._chmlib',
22
                                  sources =
18
-                                 [ 'chmlib/chm_lib.c',
23
-                                 [ 'chmlib/chm_lib.c',
19
-                                   'chmlib/wrapper.c',
24
-                                   'chmlib/wrapper.c',
20
-                                   'chmlib/lzx.c',
25
-                                   'chmlib/lzx.c',
21
-                                   'chmlib/az_chmlib_add.c'
26
-                                   'chmlib/az_chmlib_add.c'
22
-                                 ],
27
+                                 [ 'chmlib/wrapper.c',
28
                                  ],
23
-                                 include_dirs=["chmlib"])
29
-                                 include_dirs=["chmlib"])
24
-                     ]
30
+				 libraries=["chm"]
31
+				)
32
                      ]
25
        )
33
        )
(-)textproc/archmage/pkg-plist (-8 / +13 lines)
Lines 48-60 Link Here
48
%%DATADIR%%/templates/icons/7.gif
48
%%DATADIR%%/templates/icons/7.gif
49
%%DATADIR%%/templates/icons/8.gif
49
%%DATADIR%%/templates/icons/8.gif
50
%%DATADIR%%/templates/icons/9.gif
50
%%DATADIR%%/templates/icons/9.gif
51
%%PYTHON_SITELIBDIR%%/CHM.py
51
%%PYTHON_SITELIBDIR%%/archmage.pth
52
%%PYTHON_SITELIBDIR%%/CHM.pyo
52
%%PYTHON_SITELIBDIR%%/archmage/CHM.py
53
%%PYTHON_SITELIBDIR%%/CHM.pyc
53
%%PYTHON_SITELIBDIR%%/archmage/CHM.pyo
54
%%PYTHON_SITELIBDIR%%/chmlib.py
54
%%PYTHON_SITELIBDIR%%/archmage/CHM.pyc
55
%%PYTHON_SITELIBDIR%%/chmlib.pyo
55
%%PYTHON_SITELIBDIR%%/archmage/chmlib.py
56
%%PYTHON_SITELIBDIR%%/mod_chm.py
56
%%PYTHON_SITELIBDIR%%/archmage/chmlib.pyc
57
%%PYTHON_SITELIBDIR%%/mod_chm.pyo
57
%%PYTHON_SITELIBDIR%%/archmage/chmlib.pyo
58
%%PYTHON_SITELIBDIR%%/mod_chm.pyc
58
%%PYTHON_SITELIBDIR%%/archmage/_chmlib.so
59
%%PYTHON_SITELIBDIR%%/archmage/mod_chm.py
60
%%PYTHON_SITELIBDIR%%/archmage/mod_chm.pyo
61
%%PYTHON_SITELIBDIR%%/archmage/mod_chm.pyc
62
@dirrm %%PYTHON_SITELIBDIR%%/archmage
59
@dirrm %%DATADIR%%/templates/icons
63
@dirrm %%DATADIR%%/templates/icons
60
@dirrm %%DATADIR%%/templates
64
@dirrm %%DATADIR%%/templates
65
@dirrm %%DATADIR%%

Return to bug 78152