mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
- Drop dependence on pychm due some incompatible.
Depend on chmlib directly. - As result files placement has changed. PR: ports/76152 Submitted by: maintainer
This commit is contained in:
parent
6ac5448407
commit
5db761d1d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129913
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= archmage
|
||||
PORTVERSION= 0.0.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc python
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= archmage
|
||||
@ -14,7 +15,7 @@ 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
|
||||
@ -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>
|
||||
|
@ -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"]
|
||||
+ )
|
||||
]
|
||||
)
|
||||
|
@ -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%%
|
||||
|
Loading…
Reference in New Issue
Block a user