blob: 0348bf6099e7f5165941cad5a11e226f3e892b23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# New ports collection makefile for: archmage
# Date created: 22 February 2005
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
#
# $FreeBSD$
#
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
LIB_DEPENDS= chm.0:${PORTSDIR}/misc/chmlib
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
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "Does not compile on !i386"
.endif
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.post.mk>
|