# -*- 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 # $Id: Portfile 83244 2011-08-29 07:32:55Z dports@macports.org $ PortSystem 1.0 name slib-guile version 1.0 revision 4 categories devel maintainers nomaintainer platforms darwin license public-domain supported_archs noarch description Wrapper port to properly set up slib and guile together long_description Create a symbolic link and a catalog file \ so that guile can find the slib library files. depends_lib port:slib port:guile distfiles use_configure no build {} destroot { set guileversion [exec ${prefix}/bin/guile-config info guileversion | cut -d . -f 1-2] file mkdir "${destroot}${prefix}/share/guile/${guileversion}" ln -s "${prefix}/lib/slib" "${destroot}${prefix}/share/guile/${guileversion}/slib" } post-activate { system "${prefix}/bin/guile -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\"" }