-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bf39db
commit 53d5a30
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
# -*- 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 | ||
|
||
PortSystem 1.0 | ||
|
||
name slib-guile | ||
version 1.0 | ||
revision 5 | ||
categories devel | ||
maintainers nomaintainer | ||
platforms any | ||
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. | ||
homepage https://www.macports.org | ||
PortSystem 1.0 | ||
|
||
name slib-guile | ||
version 1.0 | ||
revision 5 | ||
categories devel | ||
maintainers nomaintainer | ||
platforms any | ||
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. | ||
homepage https://www.macports.org | ||
distfiles | ||
|
||
use_configure no | ||
use_configure no | ||
|
||
set guile-version 2.2 | ||
depends_lib port:slib port:guile-${guile-version} | ||
set guile-version 2.2 | ||
depends_lib port:slib port:guile-${guile-version} | ||
|
||
build {} | ||
|
||
destroot { | ||
set site-dir [exec ${prefix}/bin/guile-config-${guile-version} info sitedir] | ||
|
||
file mkdir "${destroot}${site-dir}" | ||
ln -s "${prefix}/lib/slib" "${destroot}${site-dir}/slib" | ||
file mkdir "${destroot}${site-dir}" | ||
ln -s "${prefix}/lib/slib" "${destroot}${site-dir}/slib" | ||
} | ||
|
||
post-activate { | ||
system "${prefix}/bin/guile-${guile-version} -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\"" | ||
system "${prefix}/bin/guile-${guile-version} -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\"" | ||
} |