Skip to content

Commit

Permalink
- Drop dependence on pychm due some incompatible.
Browse files Browse the repository at this point in the history
  Depend on chmlib directly.
- As result files placement has changed.

PR:		ports/76152
Submitted by:	maintainer
  • Loading branch information
Sergey Matveychuk authored and Sergey Matveychuk committed Feb 27, 2005
1 parent 6ac5448 commit 5db761d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 19 deletions.
12 changes: 11 additions & 1 deletion textproc/archmage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@

PORTNAME= archmage
PORTVERSION= 0.0.6
PORTREVISION= 1
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
LIB_DEPENDS= chm.0:${PORTSDIR}/misc/chmlib

NO_BUILD= yes
USE_PYTHON= yes
Expand All @@ -26,5 +27,14 @@ 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
@${MV} ${WRKSRC}/archmage ${WRKSRC}/archmage.orig
@${MKDIR} ${WRKSRC}/archmage
@${MV} ${WRKSRC}/archmage.orig ${WRKSRC}/archmage/archmage
@${LN} -s ${WRKSRC}/chmlib/chmlib.py ${WRKSRC}/archmage/
@${MV} ${WRKSRC}/CHM.py ${WRKSRC}/archmage/
@${MV} ${WRKSRC}/mod_chm.py ${WRKSRC}/archmage/

post-install:
@${ECHO} "archmage" > ${PYTHON_SITELIBDIR}/archmage.pth

.include <bsd.port.mk>
26 changes: 17 additions & 9 deletions textproc/archmage/files/patch-aa
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
--- setup.py.orig Tue Feb 22 19:18:40 2005
+++ setup.py Tue Feb 22 19:19:26 2005
@@ -14,7 +14,7 @@
--- setup.py.orig Fri Aug 15 08:11:14 2003
+++ setup.py Sat Feb 26 12:29:32 2005
@@ -12,9 +12,9 @@
url = "archmage.sf.net",
version = "0.0.6",

py_modules = ['chmlib', 'CHM', 'mod_chm'],
scripts = ['archmage'],
- py_modules = ['chmlib', 'CHM', 'mod_chm'],
- scripts = ['archmage'],
- data_files = [ ('/etc/', [ 'arch.conf' ] ),
+ py_modules = ['archmage.chmlib', 'archmage.CHM', 'archmage.mod_chm'],
+ scripts = ['archmage/archmage'],
+ data_files = [ ('etc/', [ 'arch.conf' ] ),
( 'share/archmage/templates/',
['templates/arch_contents.html',
'templates/arch_frameset.html',
@@ -65,13 +65,4 @@
@@ -65,13 +65,11 @@
'templates/icons/7.gif',
'templates/icons/8.gif',
'templates/icons/9.gif']) ],
- ext_modules = [ Extension(name = '_chmlib',
- sources =
+ ext_modules = [ Extension(name = 'archmage._chmlib',
sources =
- [ 'chmlib/chm_lib.c',
- 'chmlib/wrapper.c',
- 'chmlib/lzx.c',
- 'chmlib/az_chmlib_add.c'
- ],
+ [ 'chmlib/wrapper.c',
],
- include_dirs=["chmlib"])
- ]
+ libraries=["chm"]
+ )
]
)
21 changes: 12 additions & 9 deletions textproc/archmage/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,18 @@ etc/arch.conf
%%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
%%PYTHON_SITELIBDIR%%/archmage.pth
%%PYTHON_SITELIBDIR%%/archmage/CHM.py
%%PYTHON_SITELIBDIR%%/archmage/CHM.pyc
%%PYTHON_SITELIBDIR%%/archmage/CHM.pyo
%%PYTHON_SITELIBDIR%%/archmage/_chmlib.so
%%PYTHON_SITELIBDIR%%/archmage/chmlib.py
%%PYTHON_SITELIBDIR%%/archmage/chmlib.pyc
%%PYTHON_SITELIBDIR%%/archmage/chmlib.pyo
%%PYTHON_SITELIBDIR%%/archmage/mod_chm.py
%%PYTHON_SITELIBDIR%%/archmage/mod_chm.pyc
%%PYTHON_SITELIBDIR%%/archmage/mod_chm.pyo
@dirrm %%PYTHON_SITELIBDIR%%/archmage
@dirrm %%DATADIR%%/templates/icons
@dirrm %%DATADIR%%/templates
@dirrm %%DATADIR%%

0 comments on commit 5db761d

Please sign in to comment.