aboutsummaryrefslogtreecommitdiff
path: root/textproc/archmage/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/archmage/Makefile')
-rw-r--r--textproc/archmage/Makefile28
1 files changed, 8 insertions, 20 deletions
diff --git a/textproc/archmage/Makefile b/textproc/archmage/Makefile
index ffd19c6465f4..60740023091d 100644
--- a/textproc/archmage/Makefile
+++ b/textproc/archmage/Makefile
@@ -1,40 +1,28 @@
# New ports collection makefile for: archmage
-# Date created: 22 February 2005
-# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
+# Date created: 22 February 2005
+# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
#
# $FreeBSD$
#
PORTNAME= archmage
-PORTVERSION= 0.0.6
-PORTREVISION= 1
+PORTVERSION= 0.0.7
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= archmage
+MASTER_SITE_SUBDIR= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= infofarmer@gmail.com
COMMENT= Extensible reader/decompiler of files in CHM format
-LIB_DEPENDS= chm.0:${PORTSDIR}/misc/chmlib
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/chm/chm.py:${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
- @${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
+ @${REINPLACE_CMD} -e "s,/etc,${PREFIX}/etc," ${WRKSRC}/archmod/CHM.py
+ @${REINPLACE_CMD} -e "s,/etc,etc," ${WRKSRC}/setup.py
.include <bsd.port.mk>