ports/146132: [PATCH] converters/ruby-iconv: add a do-clean target
Sunpoet Po-Chuan Hsieh
sunpoet at sunpoet.net
Thu Apr 29 01:20:02 UTC 2010
>Number: 146132
>Category: ports
>Synopsis: [PATCH] converters/ruby-iconv: add a do-clean target
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 29 01:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Sunpoet Po-Chuan Hsieh
>Release: FreeBSD 8.0-STABLE amd64
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD bonjour.sunpoet.net 8.0-STABLE FreeBSD 8.0-STABLE #0: Fri Mar 19 09:16:38 CST 2010
>Description:
This port requires the contents of lang/ruby18.
However, 'make clean' does not clean them up.
This PR adds a do-clean target to remove those files.
Port maintainer (stas at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- ruby18-iconv-1.8.7.248,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/converters/ruby-iconv/Makefile /usr/ports/sunpoet/ruby-iconv/Makefile
--- /usr/ports/converters/ruby-iconv/Makefile 2008-04-06 16:58:03.000000000 +0800
+++ /usr/ports/sunpoet/ruby-iconv/Makefile 2010-04-29 09:07:38.000000000 +0800
@@ -39,4 +39,13 @@
${MKDIR} ${WRKDIR}
${LN} -sf ${RUBY_WRKDIR}/${PORTNAME} ${WRKDIR}/
+do-clean:
+ @if [ -d ${RUBY_WRKDIR} ]; then \
+ if [ -w ${RUBY_WRKDIR} ]; then \
+ ${RM} -rf ${RUBY_WRKDIR}; \
+ else \
+ ${ECHO_MSG} "===> ${RUBY_WRKDIR} not writable, skipping"; \
+ fi; \
+ fi
+
.include <bsd.port.post.mk>
--- ruby18-iconv-1.8.7.248,1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list