source: trunk/dports/devel/slib-guile16/Portfile @ 31690

Last change on this file since 31690 was 31690, checked in by ryandesign@…, 10 years ago

slib-guile16: fix using the port (info, portindex, etc.) when guile16 is not already installed. I broke this in r31678. See #13319.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 984 bytes
Line 
1# $Id: Portfile 31690 2007-12-03 09:15:58Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            slib-guile16
5version         1.0
6revision        1
7categories      devel
8maintainers     nomaintainer
9platforms       darwin
10description     Wrapper port to properly set up slib and guile16 together
11long_description        Create two symbolic links and a catalog file \
12                        so that guile16 can find the slib library files.
13depends_lib     port:slib port:guile16
14distfiles
15
16use_configure   no
17
18build {}
19
20set guile               ${prefix}/bin/guile16
21set guile-config        ${prefix}/bin/guile16-config
22
23destroot {
24        set guile-branch [join [lrange [split [exec ${guile-config} info guileversion] .] 0 1] .]
25        system "mkdir -p ${workpath}/destroot/${prefix}/share/guile"
26        system "mkdir -p ${workpath}/destroot/${prefix}/share/guile/${guile-branch}"
27        system "ln -s ${prefix}/lib/slib ${workpath}/destroot/${prefix}/share/guile/${guile-branch}/slib"
28        file link -s ${workpath}/destroot/${prefix}/share/guile/slib ${prefix}/lib/slib
29}
30
31post-activate {
32        system "${guile} -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\""
33}
Note: See TracBrowser for help on using the repository browser.