source: trunk/dports/devel/slib-guile/Portfile

Last change on this file was 83244, checked in by dports@…, 6 years ago

slib-guile: license (since it doesn't actually build anything)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 913 bytes
Line 
1# -*- 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
2# $Id: Portfile 83244 2011-08-29 07:32:55Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            slib-guile
7version         1.0
8revision        4
9categories      devel
10maintainers     nomaintainer
11platforms       darwin
12license     public-domain
13supported_archs noarch
14description     Wrapper port to properly set up slib and guile together
15long_description        Create a symbolic link and a catalog file \
16                        so that guile can find the slib library files.
17depends_lib     port:slib port:guile
18distfiles
19
20use_configure   no
21
22build {}
23
24destroot {
25    set guileversion [exec ${prefix}/bin/guile-config info guileversion | cut -d . -f 1-2]
26        file mkdir "${destroot}${prefix}/share/guile/${guileversion}"
27        ln -s "${prefix}/lib/slib" "${destroot}${prefix}/share/guile/${guileversion}/slib"
28}
29
30post-activate {
31        system "${prefix}/bin/guile -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\""
32}
Note: See TracBrowser for help on using the repository browser.