# $Id: Portfile 54310 2009-07-24 18:54:23Z toby@macports.org $

PortSystem 1.0

name		        gauche
version		        0.8.13
categories	        lang scheme
maintainers	        akitada openmaintainer
description	        A script interpreter based on Scheme
long_description    Gauche is a script interpreter based on Scheme.  \
                    Gauche conforms the language standard 'Revised^5 \
                    Report on the Algorithmic Language Scheme' and \
                    supports various common libraries defined in SRFIs. \
                    The goal of Gauche is to provide a handy tool for \
                    programmers and system administrators to handle \
                    daily works conveniently and efficiently in the \
                    production environment.\
                    There are lots of Scheme implementations available, \
                    and each of them has its design emphasis and \
                    weeknesses.  Gauche is designed with emphasis on \
                    Quick startup, Multibyte strings, Modular \
                    development, Integrated object system, System \
                    interface and Enhanced I/O.
platforms	    darwin
homepage	        http://www.shiro.dreamhost.com/scheme/gauche/
master_sites	    sourceforge
distname	        Gauche-${version}
distfiles	        ${distname}.tgz
checksums	        md5 65669fd7a8916cc9496965ed2ae43c98 \
			sha1 fbbd3496a1088c5b36d446c4479f9db1dac2d1e0 \
			rmd160 0430e6b99b85b5d1b5cc636d2ebbceac9ad1c80e

patchfiles	    patch-gc_Makefile.in
depends_lib	    port:gdbm \
		    port:libiconv \
		    port:slib

configure.args	    --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
                    --with-local=${prefix} --enable-multibyte=utf-8 \
                    --with-iconv=${prefix} --with-slib=${prefix}/lib/slib \
                    --enable-threads=pthreads --enable-ipv6

test.run	    yes

destroot.target     slibcat-in-place install-pkg install-doc

variant euc_jp conflicts sjis no_multibyte { configure.args-delete --enable-multibyte=utf-8
                    configure.args-append --enable-multibyte=euc-jp }
variant sjis conflicts euc_jp no_multibyte { configure.args-delete --enable-multibyte=utf-8
                    configure.args-append --enable-multibyte=sjis }
variant no_multibyte conflicts euc_jp sjis { configure.args-delete --enable-multibyte=utf-8
                        configure.args-append --enable-multibyte=no }
variant no_iconv  { depends_lib-delete port:libiconv
                    configure.args-delete --with-iconv=${prefix} }
variant no_gdbm   { depends_lib-delete port:gdbm }
variant no_slib   { depends_lib-delete port:slib
                    configure.args-delete --with-slib=${prefix}/lib/slib }
variant no_threads   {  configure.args-delete --enable-threads=pthreads }
variant no_ipv6 {   configure.args-delete --enable-ipv6 }

