Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2006 22:49:43 +0400 (MSD)
From:      Stanislav Sedov <ssedov@mbsd.msk.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/100626: [PATCH] lang/ruby-programmingruby: set correct permissions, cleanup, take maintainership
Message-ID:  <20060720184943.95DEE128CA@fonon.realnet>
Resent-Message-ID: <200607201900.k6KJ0Vvu029595@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         100626
>Category:       ports
>Synopsis:       [PATCH] lang/ruby-programmingruby: set correct permissions, cleanup, take maintainership
>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 Jul 20 19:00:30 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Sun Jun 18 20:51:36 MSD 2006
>Description:
- Use PORTDOCS feature
- Speedup install (no need to double-copy)
- Set correct permissions on installed files
- Fix install without ruby
- Take maintainership

>How-To-Repeat:
>Fix:

--- ruby18-programmingruby-0.4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/lang/ruby-programmingruby/Makefile /var/tmp/ruby-programmingruby/Makefile
--- /usr/ports/lang/ruby-programmingruby/Makefile	Fri Nov 11 04:17:42 2005
+++ /var/tmp/ruby-programmingruby/Makefile	Thu Jul 20 22:43:19 2006
@@ -14,7 +14,7 @@
 EXTRACT_SUFX=	.tgz
 DIST_SUBDIR=	ruby
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	ssedov@mbsd.msk.ru
 COMMENT=	The source of the Programming Ruby ("pick-axe") book in XML and HTML
 
 USE_RUBY=	yes
@@ -22,9 +22,15 @@
 RUBY_NO_RUN_DEPENDS=	yes
 
 NO_BUILD=	yes
+NO_WRKSUBDIR=	yes
+DOCSDIR=	${RUBY_MODDOCDIR}
+PORTDOCS=	*
 
 do-install:
+	${MKDIR} ${RUBY_DOCDIR}
 	${MKDIR} ${RUBY_MODDOCDIR}
-	${CP} -R ${WRKSRC}/* ${RUBY_MODDOCDIR}/
+	@${TAR} -xf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} -C ${RUBY_MODDOCDIR}
+	@${FIND} ${RUBY_MODDOCDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
+	@${FIND} ${RUBY_MODDOCDIR}/ -type f -exec ${CHOWN} ${SHAREOWN} {} \;
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/lang/ruby-programmingruby/pkg-plist /var/tmp/ruby-programmingruby/pkg-plist
--- /usr/ports/lang/ruby-programmingruby/pkg-plist	Sun Jan 22 05:18:39 2006
+++ /var/tmp/ruby-programmingruby/pkg-plist	Thu Jul 20 22:39:43 2006
@@ -1,161 +1 @@
-%%RUBY_MODDOCDIR%%/COPYING
-%%RUBY_MODDOCDIR%%/README
-%%RUBY_MODDOCDIR%%/html/builtins.html
-%%RUBY_MODDOCDIR%%/html/classes.html
-%%RUBY_MODDOCDIR%%/html/dot.gif
-%%RUBY_MODDOCDIR%%/html/ext_ruby.html
-%%RUBY_MODDOCDIR%%/html/ext_tk.html
-%%RUBY_MODDOCDIR%%/html/fadedcover.gif
-%%RUBY_MODDOCDIR%%/html/foreword.html
-%%RUBY_MODDOCDIR%%/html/index.html
-%%RUBY_MODDOCDIR%%/html/intro.html
-%%RUBY_MODDOCDIR%%/html/irb.html
-%%RUBY_MODDOCDIR%%/html/language.html
-%%RUBY_MODDOCDIR%%/html/lib_network.html
-%%RUBY_MODDOCDIR%%/html/lib_patterns.html
-%%RUBY_MODDOCDIR%%/html/lib_standard.html
-%%RUBY_MODDOCDIR%%/html/lib_windows.html
-%%RUBY_MODDOCDIR%%/html/ospace.html
-%%RUBY_MODDOCDIR%%/html/pr_style.css
-%%RUBY_MODDOCDIR%%/html/preface.html
-%%RUBY_MODDOCDIR%%/html/rdtool.html
-%%RUBY_MODDOCDIR%%/html/ref_c_array.html
-%%RUBY_MODDOCDIR%%/html/ref_c_bignum.html
-%%RUBY_MODDOCDIR%%/html/ref_c_binding.html
-%%RUBY_MODDOCDIR%%/html/ref_c_class.html
-%%RUBY_MODDOCDIR%%/html/ref_c_continuation.html
-%%RUBY_MODDOCDIR%%/html/ref_c_dir.html
-%%RUBY_MODDOCDIR%%/html/ref_c_exception.html
-%%RUBY_MODDOCDIR%%/html/ref_c_falseclass.html
-%%RUBY_MODDOCDIR%%/html/ref_c_file.html
-%%RUBY_MODDOCDIR%%/html/ref_c_file__stat.html
-%%RUBY_MODDOCDIR%%/html/ref_c_fixnum.html
-%%RUBY_MODDOCDIR%%/html/ref_c_float.html
-%%RUBY_MODDOCDIR%%/html/ref_c_hash.html
-%%RUBY_MODDOCDIR%%/html/ref_c_integer.html
-%%RUBY_MODDOCDIR%%/html/ref_c_io.html
-%%RUBY_MODDOCDIR%%/html/ref_c_matchdata.html
-%%RUBY_MODDOCDIR%%/html/ref_c_method.html
-%%RUBY_MODDOCDIR%%/html/ref_c_module.html
-%%RUBY_MODDOCDIR%%/html/ref_c_nilclass.html
-%%RUBY_MODDOCDIR%%/html/ref_c_numeric.html
-%%RUBY_MODDOCDIR%%/html/ref_c_object.html
-%%RUBY_MODDOCDIR%%/html/ref_c_proc.html
-%%RUBY_MODDOCDIR%%/html/ref_c_range.html
-%%RUBY_MODDOCDIR%%/html/ref_c_regexp.html
-%%RUBY_MODDOCDIR%%/html/ref_c_string.html
-%%RUBY_MODDOCDIR%%/html/ref_c_struct.html
-%%RUBY_MODDOCDIR%%/html/ref_c_struct__tms.html
-%%RUBY_MODDOCDIR%%/html/ref_c_symbol.html
-%%RUBY_MODDOCDIR%%/html/ref_c_thread.html
-%%RUBY_MODDOCDIR%%/html/ref_c_threadgroup.html
-%%RUBY_MODDOCDIR%%/html/ref_c_time.html
-%%RUBY_MODDOCDIR%%/html/ref_c_trueclass.html
-%%RUBY_MODDOCDIR%%/html/ref_m_comparable.html
-%%RUBY_MODDOCDIR%%/html/ref_m_enumerable.html
-%%RUBY_MODDOCDIR%%/html/ref_m_errno.html
-%%RUBY_MODDOCDIR%%/html/ref_m_filetest.html
-%%RUBY_MODDOCDIR%%/html/ref_m_gc.html
-%%RUBY_MODDOCDIR%%/html/ref_m_kernel.html
-%%RUBY_MODDOCDIR%%/html/ref_m_marshal.html
-%%RUBY_MODDOCDIR%%/html/ref_m_math.html
-%%RUBY_MODDOCDIR%%/html/ref_m_objectspace.html
-%%RUBY_MODDOCDIR%%/html/ref_m_process.html
-%%RUBY_MODDOCDIR%%/html/roadmap.html
-%%RUBY_MODDOCDIR%%/html/rubyworld.html
-%%RUBY_MODDOCDIR%%/html/support.html
-%%RUBY_MODDOCDIR%%/html/taint.html
-%%RUBY_MODDOCDIR%%/html/trouble.html
-%%RUBY_MODDOCDIR%%/html/tut_classes.html
-%%RUBY_MODDOCDIR%%/html/tut_containers.html
-%%RUBY_MODDOCDIR%%/html/tut_exceptions.html
-%%RUBY_MODDOCDIR%%/html/tut_expressions.html
-%%RUBY_MODDOCDIR%%/html/tut_io.html
-%%RUBY_MODDOCDIR%%/html/tut_methods.html
-%%RUBY_MODDOCDIR%%/html/tut_modules.html
-%%RUBY_MODDOCDIR%%/html/tut_stdtypes.html
-%%RUBY_MODDOCDIR%%/html/tut_threads.html
-%%RUBY_MODDOCDIR%%/html/visible_space.gif
-%%RUBY_MODDOCDIR%%/html/web.html
-%%RUBY_MODDOCDIR%%/html/win32.html
-%%RUBY_MODDOCDIR%%/index.html
-%%RUBY_MODDOCDIR%%/pr_idx.html
-%%RUBY_MODDOCDIR%%/pr_toc.html
-%%RUBY_MODDOCDIR%%/xml/builtins.xml
-%%RUBY_MODDOCDIR%%/xml/classes.xml
-%%RUBY_MODDOCDIR%%/xml/ext_ruby.xml
-%%RUBY_MODDOCDIR%%/xml/ext_tk.xml
-%%RUBY_MODDOCDIR%%/xml/foreword.xml
-%%RUBY_MODDOCDIR%%/xml/index.xml
-%%RUBY_MODDOCDIR%%/xml/intro.xml
-%%RUBY_MODDOCDIR%%/xml/irb.xml
-%%RUBY_MODDOCDIR%%/xml/language.xml
-%%RUBY_MODDOCDIR%%/xml/lib_network.xml
-%%RUBY_MODDOCDIR%%/xml/lib_patterns.xml
-%%RUBY_MODDOCDIR%%/xml/lib_standard.xml
-%%RUBY_MODDOCDIR%%/xml/lib_windows.xml
-%%RUBY_MODDOCDIR%%/xml/ospace.xml
-%%RUBY_MODDOCDIR%%/xml/preface.xml
-%%RUBY_MODDOCDIR%%/xml/rdtool.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_array.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_bignum.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_binding.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_class.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_continuation.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_dir.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_exception.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_falseclass.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_file.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_file__stat.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_fixnum.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_float.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_hash.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_integer.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_io.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_matchdata.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_method.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_module.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_nilclass.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_numeric.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_object.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_proc.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_range.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_regexp.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_string.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_struct.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_struct__tms.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_symbol.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_thread.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_threadgroup.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_time.xml
-%%RUBY_MODDOCDIR%%/xml/ref_c_trueclass.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_comparable.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_enumerable.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_errno.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_filetest.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_gc.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_kernel.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_marshal.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_math.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_objectspace.xml
-%%RUBY_MODDOCDIR%%/xml/ref_m_process.xml
-%%RUBY_MODDOCDIR%%/xml/roadmap.xml
-%%RUBY_MODDOCDIR%%/xml/rubyworld.xml
-%%RUBY_MODDOCDIR%%/xml/support.xml
-%%RUBY_MODDOCDIR%%/xml/taint.xml
-%%RUBY_MODDOCDIR%%/xml/trouble.xml
-%%RUBY_MODDOCDIR%%/xml/tut_classes.xml
-%%RUBY_MODDOCDIR%%/xml/tut_containers.xml
-%%RUBY_MODDOCDIR%%/xml/tut_exceptions.xml
-%%RUBY_MODDOCDIR%%/xml/tut_expressions.xml
-%%RUBY_MODDOCDIR%%/xml/tut_io.xml
-%%RUBY_MODDOCDIR%%/xml/tut_methods.xml
-%%RUBY_MODDOCDIR%%/xml/tut_modules.xml
-%%RUBY_MODDOCDIR%%/xml/tut_stdtypes.xml
-%%RUBY_MODDOCDIR%%/xml/tut_threads.xml
-%%RUBY_MODDOCDIR%%/xml/web.xml
-%%RUBY_MODDOCDIR%%/xml/win32.xml
-@dirrm %%RUBY_MODDOCDIR%%/html
-@dirrm %%RUBY_MODDOCDIR%%/xml
-@dirrm %%RUBY_MODDOCDIR%%
 @dirrmtry %%RUBY_DOCDIR%%
--- ruby18-programmingruby-0.4.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060720184943.95DEE128CA>