# $Id: Portfile,v 1.2 2005/01/03 22:15:42 mww Exp $

PortSystem 1.0

name              inform
version           6.30.2
categories        devel
maintainers       vim@tritarget.com
description       A Z-Code (Infocom Text Adventures) compiler
long_description  Inform is a programming language and design \
                  system for interactive fiction, created in 1993 \
                  by Graham Nelson.
checksums         md5 2b5c06ecdcd97975ea4fe45b1583841c
homepage          http://www.inform-fiction.org/
set subdir        if-archive/infocom/compilers/inform6/source/
master_sites      http://mirror.ifarchive.org/${subdir} \
                  http://www.ifarchive.org/${subdir} \
                  ftp://ftp.ifarchive.org/${subdir}
patchfiles        patch-include-Makefile.in patch-lib-Makefile.in

# The install of inform will build the executable to name-version and make a
# sym link to name. This causes two problems. The sym link is not relative to
# the bin directory making it link to the files in the dports directory which
# do not exists after install. Also the name-version the package uses is
# different then the name-version this Portfile uses so I had to make a special
# variable for this. Then fix the sym link to be relative.
set exec-name     inform-6.30

destroot.args     htmldir=${prefix}/share/doc/${name}

post-destroot {
    system "ln -sf ${exec-name} ${destroot}${prefix}/bin/${name}"
}
