2000-10-15 02:20:24 +02:00
|
|
|
# New ports collection makefile for: pyDict
|
|
|
|
# Date created: 25 Oct 1999
|
2000-11-06 19:15:21 +01:00
|
|
|
# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
|
2000-10-15 02:20:24 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pyDict
|
2003-05-10 11:47:23 +02:00
|
|
|
PORTVERSION= 0.2.6.3
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 6
|
2000-10-15 02:20:24 +02:00
|
|
|
CATEGORIES= chinese
|
2007-12-16 21:41:25 +01:00
|
|
|
MASTER_SITES= LOCAL/chinsan/pyDict/ \
|
|
|
|
http://www.525183.com/freebsd/pyDict/ \
|
|
|
|
http://www.chinatinco.com/freebsd/pyDict/ \
|
|
|
|
http://525183.serverbox.org/freebsd/pyDict/
|
2000-10-15 02:20:24 +02:00
|
|
|
|
2007-12-16 21:41:25 +01:00
|
|
|
MAINTAINER= sunrychen@gmail.com
|
2003-02-26 15:23:43 +01:00
|
|
|
COMMENT= A Chinese <-> English dictionary, under both console and X11
|
2000-10-15 02:20:24 +02:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/include/pygtk/pygtk.h:${PORTSDIR}/x11-toolkits/py-gtk \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${LOCALBASE}/lib/X11/fonts/TrueType/bsmi00lp.ttf:${PORTSDIR}/chinese/arphicttf
|
2000-10-15 02:20:24 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/dict
|
|
|
|
NO_BUILD= yes
|
|
|
|
SHAREMODE= 644
|
|
|
|
DICTDIR= ${PREFIX}/lib/X11/pyDict
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/pyDict
|
2006-04-01 14:44:58 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2006-04-02 08:09:29 +02:00
|
|
|
SUB_FILES= pkg-message
|
2000-10-15 02:20:24 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-12-16 21:41:25 +01:00
|
|
|
pre-patch:
|
2003-05-10 11:47:23 +02:00
|
|
|
${REINPLACE_CMD} -e 's,/bin/grep,${GREP},g' \
|
|
|
|
-e 's,--after-context=20,-A 20,g' \
|
|
|
|
-e 's,/usr/X11R6,${PREFIX},g' ${WRKSRC}/dict.py
|
|
|
|
|
2000-10-15 02:20:24 +02:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${DICTDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/[a-z].lib ${WRKSRC}/dict.xpm ${WRKSRC}/yaba.xpm ${WRKSRC}/HELP ${DICTDIR}
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/gtkrc.zh_TW.big5.sample ${DICTDIR}
|
2007-12-16 21:41:25 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-10-15 02:20:24 +02:00
|
|
|
@${MKDIR} ${DOCDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/COPYING ${WRKSRC}/README ${DOCDIR}
|
2007-12-16 21:41:25 +01:00
|
|
|
.endif
|
2000-10-15 02:20:24 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/dict.py ${PREFIX}/bin/pydict
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|