Do a ldconfig before invoking the just installed binary in

post-install.

Dig XEmacs' site-lisp directory and RUBY_ELISPDIR.
This commit is contained in:
Akinori MUSHA 2001-06-09 02:33:13 +00:00
parent 448a3a4856
commit a297e0702e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43681
8 changed files with 24 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= ruby${RUBY_R}
PORTVERSION= ${RUBY_PORTVERSION}
PORTREVISION= 1
CATEGORIES= lang ruby ipv6
MASTER_SITES= http://www.ruby-lang.org/~knu/ # ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= ${RUBY_VER}
@ -89,6 +90,7 @@ post-install:
.if !empty(RUBY_R)
${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}
.endif
${LDCONFIG} -m ${LOCALBASE}/lib
${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \
-e 'if $$. == 1; ' \
-e ' if /^#!/; ' \
@ -98,6 +100,8 @@ post-install:
-e ' end;' \
-e 'end' \
${IRB_WITH_SUFFIX}
${MKDIR} ${LOCALBASE}/lib/xemacs/site-lisp
${MKDIR} ${RUBY_ELISPDIR}
${MKDIR} ${RUBY_EXAMPLESDIR}
${MKDIR} ${RUBY_DOCDIR}
.if !defined(NOPORTDOCS)

View File

@ -222,3 +222,5 @@ lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/curses
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/pty
@dirrm %%RUBY_EXAMPLESDIR%%
@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true
@unexec rmdir -p %D/%%RUBY_ELISPDIR%% 2>/dev/null || true

View File

@ -7,6 +7,7 @@
PORTNAME= ruby${RUBY_R}
PORTVERSION= ${RUBY_PORTVERSION}
PORTREVISION= 1
CATEGORIES= lang ruby ipv6
MASTER_SITES= ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= ${RUBY_VER}
@ -87,6 +88,7 @@ post-install:
.if !empty(RUBY_R)
${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}
.endif
${LDCONFIG} -m ${LOCALBASE}/lib
${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \
-e 'if $$. == 1; ' \
-e ' if /^#!/; ' \
@ -96,6 +98,8 @@ post-install:
-e ' end;' \
-e 'end' \
${IRB_WITH_SUFFIX}
${MKDIR} ${LOCALBASE}/lib/xemacs/site-lisp
${MKDIR} ${RUBY_ELISPDIR}
${MKDIR} ${RUBY_EXAMPLESDIR}
${MKDIR} ${RUBY_DOCDIR}
.if !defined(NOPORTDOCS)

View File

@ -217,3 +217,5 @@ lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/curses
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/pty
@dirrm %%RUBY_EXAMPLESDIR%%
@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true
@unexec rmdir -p %D/%%RUBY_ELISPDIR%% 2>/dev/null || true

View File

@ -7,6 +7,7 @@
PORTNAME= ruby${RUBY_R}
PORTVERSION= ${RUBY_PORTVERSION}
PORTREVISION= 1
CATEGORIES= lang ruby ipv6
MASTER_SITES= ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= ${RUBY_VER}
@ -87,6 +88,7 @@ post-install:
.if !empty(RUBY_R)
${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}
.endif
${LDCONFIG} -m ${LOCALBASE}/lib
${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \
-e 'if $$. == 1; ' \
-e ' if /^#!/; ' \
@ -96,6 +98,8 @@ post-install:
-e ' end;' \
-e 'end' \
${IRB_WITH_SUFFIX}
${MKDIR} ${LOCALBASE}/lib/xemacs/site-lisp
${MKDIR} ${RUBY_ELISPDIR}
${MKDIR} ${RUBY_EXAMPLESDIR}
${MKDIR} ${RUBY_DOCDIR}
.if !defined(NOPORTDOCS)

View File

@ -217,3 +217,5 @@ lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/curses
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/pty
@dirrm %%RUBY_EXAMPLESDIR%%
@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true
@unexec rmdir -p %D/%%RUBY_ELISPDIR%% 2>/dev/null || true

View File

@ -7,6 +7,7 @@
PORTNAME= ruby${RUBY_R}
PORTVERSION= ${RUBY_PORTVERSION}
PORTREVISION= 1
CATEGORIES= lang ruby ipv6
MASTER_SITES= http://www.ruby-lang.org/~knu/ # ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= ${RUBY_VER}
@ -89,6 +90,7 @@ post-install:
.if !empty(RUBY_R)
${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}
.endif
${LDCONFIG} -m ${LOCALBASE}/lib
${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \
-e 'if $$. == 1; ' \
-e ' if /^#!/; ' \
@ -98,6 +100,8 @@ post-install:
-e ' end;' \
-e 'end' \
${IRB_WITH_SUFFIX}
${MKDIR} ${LOCALBASE}/lib/xemacs/site-lisp
${MKDIR} ${RUBY_ELISPDIR}
${MKDIR} ${RUBY_EXAMPLESDIR}
${MKDIR} ${RUBY_DOCDIR}
.if !defined(NOPORTDOCS)

View File

@ -222,3 +222,5 @@ lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/curses
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/pty
@dirrm %%RUBY_EXAMPLESDIR%%
@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true
@unexec rmdir -p %D/%%RUBY_ELISPDIR%% 2>/dev/null || true