# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
version ${ver_main}-media-${ver_media}
categories textproc japanese
description Dictionary search interface for Emacs, including the media patch
long_description ${description}
homepage http://green.ribbon.to/~ikazuhiro/lookup/lookup.html
master_sites http://green.ribbon.to/~ikazuhiro/lookup/files/:lookup \
http://svn.sourceforge.jp/svnroot/macports-jp/distfiles/lookup/:texinfo-jp \
ftp://fsci.fuk.kindai.ac.jp/pub/ptex/utils/:texinfo-jp
distfiles ${name}-${ver_main}+media-${ver_media}${extract.suffix}:lookup
checksums ${name}-${ver_main}+media-${ver_media}${extract.suffix} \
rmd160 1f975a956c769a9eec8e5c513f1b037960dbb389 \
sha256 417fb5d854816d0264be55377b960382a833a467364deeffce18d7a44138fe72 \
rmd160 c5db8b73738942572423eb39dbe21ea91cdd84d2 \
sha256 a25a0391f1ad2c9b9d76056676fda0166a334976a12719a857d9ebe66df0c63d
depends_lib path:bin/emacs:emacs \
depends_build port:texinfo
extract.only ${name}-${ver_main}+media-${ver_media}${extract.suffix}
worksrcdir ${name}-${ver_main}+media-${ver_media}
set dir_info ${prefix}/share/info
configure.args --infodir=${dir_info}
# The following line is a workaround to avoid "Searching for program: unknown error: 0" problem.
build.env SHELL=/bin/bash
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
set docs {AUTHORS COPYING ChangeLog NEWS README README.org VERSION}
xinstall -m 644 ${worksrcpath}/${f} ${destroot}${prefix}/share/doc/${name}
delete ${destroot}${dir_info}/dir
# MacPorts does not have post-deactivate phase yet.
#set infos {lookup-guide lookup}
# system "install-info --info-dir=${dir_info} ${prefix}/share/info/${f}.info"