diff options
author | olgeni <olgeni@FreeBSD.org> | 2008-11-02 21:50:08 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2008-11-02 21:50:08 +0800 |
commit | 1ed5f298173462cbb3b6c6e8229380896e93d573 (patch) | |
tree | d97e9c22a781a23e8b6ec0599fa5d4bf837f5efd /lang | |
parent | 80249e03bbabe5d6f96042651efd929274f3d6a5 (diff) | |
download | freebsd-ports-gnome-1ed5f298173462cbb3b6c6e8229380896e93d573.tar.gz freebsd-ports-gnome-1ed5f298173462cbb3b6c6e8229380896e93d573.tar.zst freebsd-ports-gnome-1ed5f298173462cbb3b6c6e8229380896e93d573.zip |
Create missing empty directory from pkg-plist to avoid a pkg_delete warning.
Make sure that Install exits with 0 (restore previous patch).
No PORTREVISION change needed.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/erlang/Makefile | 8 | ||||
-rw-r--r-- | lang/erlang/files/patch-erts_etc_common_Install | 11 | ||||
-rw-r--r-- | lang/erlang14/Makefile | 8 | ||||
-rw-r--r-- | lang/erlang14/files/patch-erts_etc_common_Install | 11 |
4 files changed, 36 insertions, 2 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile index 0530f36a3a82..80b315a4b123 100644 --- a/lang/erlang/Makefile +++ b/lang/erlang/Makefile @@ -141,11 +141,17 @@ post-install: # All non-library files. + @cd ${PREFIX} ; ${FIND} lib/erlang/* -type d -empty \ + | ${GREP} -v "^lib/erlang/lib" \ + | ${SORT} \ + | ${SED} -e 's#^#@exec ${MKDIR} %D/#g' \ + > ${ERLANG_PLIST} + @cd ${PREFIX} ; ${FIND} lib/erlang/* -type f -o -type l \ | ${GREP} -v "^lib/erlang/man" \ | ${GREP} -v "^lib/erlang/lib" \ | ${SORT} \ - > ${ERLANG_PLIST} + >> ${ERLANG_PLIST} # Stock OTP libraries. diff --git a/lang/erlang/files/patch-erts_etc_common_Install b/lang/erlang/files/patch-erts_etc_common_Install new file mode 100644 index 000000000000..837769cfa6b7 --- /dev/null +++ b/lang/erlang/files/patch-erts_etc_common_Install @@ -0,0 +1,11 @@ + +$FreeBSD$ + +--- erts/etc/common/Install.orig ++++ erts/etc/common/Install +@@ -148,4 +148,4 @@ + ./misc/format_man_pages $ERL_ROOT + fi + +- ++exit 0 diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile index 0530f36a3a82..80b315a4b123 100644 --- a/lang/erlang14/Makefile +++ b/lang/erlang14/Makefile @@ -141,11 +141,17 @@ post-install: # All non-library files. + @cd ${PREFIX} ; ${FIND} lib/erlang/* -type d -empty \ + | ${GREP} -v "^lib/erlang/lib" \ + | ${SORT} \ + | ${SED} -e 's#^#@exec ${MKDIR} %D/#g' \ + > ${ERLANG_PLIST} + @cd ${PREFIX} ; ${FIND} lib/erlang/* -type f -o -type l \ | ${GREP} -v "^lib/erlang/man" \ | ${GREP} -v "^lib/erlang/lib" \ | ${SORT} \ - > ${ERLANG_PLIST} + >> ${ERLANG_PLIST} # Stock OTP libraries. diff --git a/lang/erlang14/files/patch-erts_etc_common_Install b/lang/erlang14/files/patch-erts_etc_common_Install new file mode 100644 index 000000000000..837769cfa6b7 --- /dev/null +++ b/lang/erlang14/files/patch-erts_etc_common_Install @@ -0,0 +1,11 @@ + +$FreeBSD$ + +--- erts/etc/common/Install.orig ++++ erts/etc/common/Install +@@ -148,4 +148,4 @@ + ./misc/format_man_pages $ERL_ROOT + fi + +- ++exit 0 |