aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-06-11 17:32:02 +0800
committerknu <knu@FreeBSD.org>2001-06-11 17:32:02 +0800
commit19786a8ee466d159b1e034312b1a4cc1c50c72e3 (patch)
treedda27f6161997407aa267a068a16a498c3796a17
parentd33abeeee325d8ea6f106aa6fcab731453d0f9ee (diff)
downloadfreebsd-ports-gnome-19786a8ee466d159b1e034312b1a4cc1c50c72e3.tar.gz
freebsd-ports-gnome-19786a8ee466d159b1e034312b1a4cc1c50c72e3.tar.zst
freebsd-ports-gnome-19786a8ee466d159b1e034312b1a4cc1c50c72e3.zip
Fix plist problems.
Reported by: bento
-rw-r--r--lang/ruby-devel/Makefile8
-rw-r--r--lang/ruby-devel/pkg-plist2
-rw-r--r--lang/ruby/Makefile8
-rw-r--r--lang/ruby/pkg-plist2
-rw-r--r--lang/ruby16/Makefile8
-rw-r--r--lang/ruby16/pkg-plist2
-rw-r--r--lang/ruby18/Makefile8
-rw-r--r--lang/ruby18/pkg-plist2
8 files changed, 28 insertions, 12 deletions
diff --git a/lang/ruby-devel/Makefile b/lang/ruby-devel/Makefile
index 33ddd6bcbeb5..b25a2b6ce04f 100644
--- a/lang/ruby-devel/Makefile
+++ b/lang/ruby-devel/Makefile
@@ -86,9 +86,13 @@ post-install:
${LN} -fs ${RUBY_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX}${RUBY_R} ${RUBY_WITHOUT_SUFFIX}${RUBY_R}; \
${LN} -fs ruby${RUBY_DEFAULT_SUFFIX}${RUBY_R}.1 ${PREFIX}/man/man1/ruby${RUBY_R}.1; \
fi
- ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}
+ if [ -x ${RUBY_WITHOUT_SUFFIX} ]; then \
+ ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}; \
+ fi
.if !empty(RUBY_R)
- ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}
+ if [ -x ${RUBY_WITHOUT_SUFFIX}${RUBY_R} ]; then \
+ ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}; \
+ fi
.endif
${LDCONFIG} -m ${LOCALBASE}/lib
${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \
diff --git a/lang/ruby-devel/pkg-plist b/lang/ruby-devel/pkg-plist
index 3a594498b746..ebe88734bd63 100644
--- a/lang/ruby-devel/pkg-plist
+++ b/lang/ruby-devel/pkg-plist
@@ -223,4 +223,4 @@ lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%
%%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
+@dirrm %%RUBY_ELISPDIR%%
diff --git a/lang/ruby/Makefile b/lang/ruby/Makefile
index 60850d52b146..2cf767ba6893 100644
--- a/lang/ruby/Makefile
+++ b/lang/ruby/Makefile
@@ -84,9 +84,13 @@ post-install:
${LN} -fs ${RUBY_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX}${RUBY_R} ${RUBY_WITHOUT_SUFFIX}${RUBY_R}; \
${LN} -fs ruby${RUBY_DEFAULT_SUFFIX}${RUBY_R}.1 ${PREFIX}/man/man1/ruby${RUBY_R}.1; \
fi
- ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}
+ if [ -x ${RUBY_WITHOUT_SUFFIX} ]; then \
+ ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}; \
+ fi
.if !empty(RUBY_R)
- ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}
+ if [ -x ${RUBY_WITHOUT_SUFFIX}${RUBY_R} ]; then \
+ ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}; \
+ fi
.endif
${LDCONFIG} -m ${LOCALBASE}/lib
${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \
diff --git a/lang/ruby/pkg-plist b/lang/ruby/pkg-plist
index 8bb5632bc4f8..761743ce249f 100644
--- a/lang/ruby/pkg-plist
+++ b/lang/ruby/pkg-plist
@@ -218,4 +218,4 @@ lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%
%%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
+@dirrm %%RUBY_ELISPDIR%%
diff --git a/lang/ruby16/Makefile b/lang/ruby16/Makefile
index 60850d52b146..2cf767ba6893 100644
--- a/lang/ruby16/Makefile
+++ b/lang/ruby16/Makefile
@@ -84,9 +84,13 @@ post-install:
${LN} -fs ${RUBY_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX}${RUBY_R} ${RUBY_WITHOUT_SUFFIX}${RUBY_R}; \
${LN} -fs ruby${RUBY_DEFAULT_SUFFIX}${RUBY_R}.1 ${PREFIX}/man/man1/ruby${RUBY_R}.1; \
fi
- ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}
+ if [ -x ${RUBY_WITHOUT_SUFFIX} ]; then \
+ ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}; \
+ fi
.if !empty(RUBY_R)
- ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}
+ if [ -x ${RUBY_WITHOUT_SUFFIX}${RUBY_R} ]; then \
+ ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}; \
+ fi
.endif
${LDCONFIG} -m ${LOCALBASE}/lib
${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \
diff --git a/lang/ruby16/pkg-plist b/lang/ruby16/pkg-plist
index 8bb5632bc4f8..761743ce249f 100644
--- a/lang/ruby16/pkg-plist
+++ b/lang/ruby16/pkg-plist
@@ -218,4 +218,4 @@ lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%
%%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
+@dirrm %%RUBY_ELISPDIR%%
diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile
index 33ddd6bcbeb5..b25a2b6ce04f 100644
--- a/lang/ruby18/Makefile
+++ b/lang/ruby18/Makefile
@@ -86,9 +86,13 @@ post-install:
${LN} -fs ${RUBY_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX}${RUBY_R} ${RUBY_WITHOUT_SUFFIX}${RUBY_R}; \
${LN} -fs ruby${RUBY_DEFAULT_SUFFIX}${RUBY_R}.1 ${PREFIX}/man/man1/ruby${RUBY_R}.1; \
fi
- ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}
+ if [ -x ${RUBY_WITHOUT_SUFFIX} ]; then \
+ ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}; \
+ fi
.if !empty(RUBY_R)
- ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}
+ if [ -x ${RUBY_WITHOUT_SUFFIX}${RUBY_R} ]; then \
+ ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}; \
+ fi
.endif
${LDCONFIG} -m ${LOCALBASE}/lib
${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \
diff --git a/lang/ruby18/pkg-plist b/lang/ruby18/pkg-plist
index 3a594498b746..ebe88734bd63 100644
--- a/lang/ruby18/pkg-plist
+++ b/lang/ruby18/pkg-plist
@@ -223,4 +223,4 @@ lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%%
%%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
+@dirrm %%RUBY_ELISPDIR%%