Portfile

# $Id: Portfile 20477 2006-11-03 15:31:37Z blair@macports.org $

PortSystem 1.0
name ispell
version 3.3.02
categories textproc spelling
platforms darwin freebsd
maintainers yeled@macports.org
description An interactive spelling checker for multiple languages
master_sites http://fmg-www.cs.ucla.edu/geoff/tars/
checksums md5 12087d7555fc2b746425cd167af480fe
build.env TMPDIR=${workpath}

configure {
cd ${workpath}/${worksrcdir}
xinstall -c -m 0744 local.h.macos local.h
reinplace s|/usr/local|${prefix}|g local.h
reinplace s|/man/|/share/man/|g local.h
}
pre-destroot {
xinstall -d ${destroot}${prefix}/bin
xinstall -d ${destroot}${prefix}/lib
xinstall -d ${destroot}${prefix}/share/man
cd ${workpath}/${worksrcdir}
reinplace "s|${prefix}|${destroot}${prefix}|g" config.sh}
destroot.destdir {}