Properly register module with guile on install.

This commit is contained in:
Maxim Sobolev 2001-07-31 09:34:28 +00:00
parent ec6f873322
commit e24321dd1c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45653
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= slib
PORTVERSION= 2d1
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://swissnet.ai.mit.edu/ftpdir/scm/
DISTNAME= slib2d1
@ -21,5 +22,8 @@ NO_BUILD= yes
do-install:
${MKDIR} ${PREFIX}/share/slib
${INSTALL_DATA} ${WRKSRC}/*.scm ${PREFIX}/share/slib
${LN} -shf ${PREFIX}/share/slib ${LOCALBASE}/share/guile/slib
${LOCALBASE}/bin/guile -c \
"(use-modules (ice-9 slib)) (require 'new-catalog)"
.include <bsd.port.mk>

View File

@ -120,4 +120,8 @@ share/slib/withfile.scm
share/slib/wttest.scm
share/slib/wttree.scm
share/slib/yasyn.scm
@exec ln -shf %D/share/slib %%LOCALBASE%%/share/guile/slib
@exec %%LOCALBASE%%/bin/guile -c "(use-modules (slib)) (require 'new-catalog)"
@unexec rm -f %%LOCALBASE%%/share/guile/slib
@unexec rm -f %%LOCALBASE%%/share/guile/slibcat
@dirrm share/slib