diff options
author | jylefort <jylefort@FreeBSD.org> | 2006-05-10 10:55:56 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2006-05-10 10:55:56 +0800 |
commit | a83773a71a3ef3cbbac5533826cd88f4ebbd7382 (patch) | |
tree | 2fb1a99fba2d80ca106c3aa6e300030cfd6f03f1 /devel | |
parent | 86bcb78ebd6f24bb194644e80dcfbeb863cf463f (diff) | |
download | freebsd-ports-gnome-a83773a71a3ef3cbbac5533826cd88f4ebbd7382.tar.gz freebsd-ports-gnome-a83773a71a3ef3cbbac5533826cd88f4ebbd7382.tar.zst freebsd-ports-gnome-a83773a71a3ef3cbbac5533826cd88f4ebbd7382.zip |
Handle ports which have no WWW line in their pkg-descr.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/glib20-reference/bsd.gnome-reference.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/glib20-reference/bsd.gnome-reference.mk b/devel/glib20-reference/bsd.gnome-reference.mk index 928855b63b07..256a15d0c093 100644 --- a/devel/glib20-reference/bsd.gnome-reference.mk +++ b/devel/glib20-reference/bsd.gnome-reference.mk @@ -35,8 +35,11 @@ pre-install: gnome-reference-pre-install gnome-reference-pre-install: @${ECHO_CMD} "This port contains the programming reference for ${REFERENCE_PORT}." > ${DESCR} - @${ECHO_CMD} "" >> ${DESCR} - @${GREP} "^WWW:" ${PARENTDIR}/pkg-descr >> ${DESCR} + @www=`${GREP} "^WWW:" ${PARENTDIR}/pkg-descr` || ${TRUE}; \ + if [ -n "$$www" ]; then \ + ${ECHO_CMD} "" >> ${DESCR}; \ + ${ECHO_CMD} "$$www" >> ${DESCR}; \ + fi .if !target(do-install) do-install: |