# $Id: Portfile 31690 2007-12-03 09:15:58Z ryandesign@macports.org $ PortSystem 1.0 name slib-guile16 version 1.0 revision 1 categories devel maintainers nomaintainer platforms darwin description Wrapper port to properly set up slib and guile16 together long_description Create two symbolic links and a catalog file \ so that guile16 can find the slib library files. depends_lib port:slib port:guile16 distfiles use_configure no build {} set guile ${prefix}/bin/guile16 set guile-config ${prefix}/bin/guile16-config destroot { set guile-branch [join [lrange [split [exec ${guile-config} info guileversion] .] 0 1] .] system "mkdir -p ${workpath}/destroot/${prefix}/share/guile" system "mkdir -p ${workpath}/destroot/${prefix}/share/guile/${guile-branch}" system "ln -s ${prefix}/lib/slib ${workpath}/destroot/${prefix}/share/guile/${guile-branch}/slib" file link -s ${workpath}/destroot/${prefix}/share/guile/slib ${prefix}/lib/slib } post-activate { system "${guile} -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\"" }