[137855] trunk/dports/_resources/port1.0/group/zope-1.0.tcl
larryv at macports.org
larryv at macports.org
Sun Jun 21 19:17:58 PDT 2015
Revision: 137855
https://trac.macports.org/changeset/137855
Author: larryv at macports.org
Date: 2015-06-21 19:17:58 -0700 (Sun, 21 Jun 2015)
Log Message:
-----------
zope-1.0: Delete
This portgroup is no longer used.
Removed Paths:
-------------
trunk/dports/_resources/port1.0/group/zope-1.0.tcl
Deleted: trunk/dports/_resources/port1.0/group/zope-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/zope-1.0.tcl 2015-06-22 00:57:17 UTC (rev 137854)
+++ trunk/dports/_resources/port1.0/group/zope-1.0.tcl 2015-06-22 02:17:58 UTC (rev 137855)
@@ -1,191 +0,0 @@
-# et:ts=4
-# zope-1.0.tcl
-#
-# $Id$
-#
-# Group file for 'zope' group.
-#
-# Copyright (c) 2004 Robert Shaw <rshaw at opendarwin.org>
-# Copyright (c) 2002 Apple Computer, Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-#
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. Neither the name of Apple Computer, Inc. nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-# Set some variables.
-set python.bin ${prefix}/bin/python2.6
-set python.lib ${prefix}/lib/python2.6
-
-set zope.home ${prefix}/libexec/Zope
-set zope.softhome ${zope.home}/lib/python
-set zope.prodhome ${zope.softhome}/Products
-set zope.insthome ${prefix}/www/Zope
-set zope.exthome ${zope.insthome}/Extensions
-
-set zope.user zope
-set zope.group www
-
-# Zope group options
-options zope.need_subdir
-default zope.need_subdir yes
-option_proc zope.need_subdir zope.fix_extract_dir
-
-# Zope group default for extract.dir
-default extract.dir {${worksrcpath}}
-
-# define this empty initially, it is set by zope.setup arguments
-set zope.product ""
-set zope.products {}
-set zope.extensions {}
-
-# Zope group setup procedure
-proc zope.setup {product vers {products {}} {extensions {}}} {
- global workpath worksrcpath
- global python.bin python.lib
- global zope.home zope.softhome zope.prodhome zope.insthome zope.exthome
- global zope.user zope.group
- global zope.product zope.products zope.extensions zope.need_subdir
-
- # define zope.product & zope.products & zope.extensions
- set zope.product ${product}
- if {[llength $products] > 0} {
- set zope.products ${products}
- zope.need_subdir no
- } else {
- set zope.products "${product}"
- }
- if {[llength $extensions] > 0} {
- if {[llength $products] == 0} {
- set zope.products {}
- }
- set zope.extensions ${extensions}
- }
-
- name zope-[string tolower ${zope.product}]
- version ${vers}
- categories zope www python
-
- distname ${zope.product}-${vers}
- dist_subdir zope
-
- depends_lib path:${zope.home}/bin/compilezpy.py:zope
-
- platform freebsd {
- extract.post_args | gtar -xf -
- }
-
- pre-extract {
- if {[tbool zope.need_subdir]} {
- ui_debug "mkdir: ${worksrcpath}"
- file mkdir ${worksrcpath}
- }
- }
-
- post-patch {
- foreach item [glob ${worksrcpath}/*] {
- if {[file isdirectory $item]} {
- set product [file tail $item]
- if {[lsearch -exact ${zope.products} $product] < 0} {
- ui_debug "rmdir: $product: $item"
- file delete -force $item
- }
- }
- }
- system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
- system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
- system "find ${worksrcpath} -name '.#*' | xargs rm"
- }
-
- use_configure no
-
- pre-build {
- file copy -force ${zope.home}/bin/compilezpy.py ${workpath}
- reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
- system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
- }
- build {
- # Precompile all product files
- system "cd ${worksrcpath} && ${python.bin} ${workpath}/compilezpy.py"
- }
-
- destroot {
- # Warn user if not running as root
- if {[geteuid] != 0} {
- ui_msg "-----------------------------------------------------------"
- ui_msg "Note that you are not running as root, so files installed"
- ui_msg "by this port will not end up with proper ownership and"
- ui_msg "likely not work correctly with Zope."
- ui_msg "-----------------------------------------------------------"
- }
-
- # Install product(s)
- if {[llength ${zope.products}] > 0} {
- xinstall -d -m 0755 ${destroot}${zope.prodhome}
- foreach item ${zope.products} {
- set cmd "cp -R ${item} ${destroot}${zope.prodhome}/${item}"
- ui_info ${cmd}; system -W ${worksrcpath} ${cmd}
- }
- }
-
- # Install extension(s)
- if {[llength ${zope.extensions}] > 0} {
- xinstall -d -m 0755 ${destroot}${zope.exthome}
- foreach item ${zope.extensions} {
- set cmd "cp -R ${item} ${destroot}${zope.exthome}/${item}"
- ui_info ${cmd}; system -W ${worksrcpath} ${cmd}
- }
- }
-
- # Fix owner and group on installed data
- if {[geteuid] == 0} {
- if {[llength ${zope.products}] > 0} {
- set cmd "chown -R ${zope.user} ${destroot}${zope.home}"
- ui_info ${cmd}; system ${cmd}
- set cmd "chgrp -R ${zope.group} ${destroot}${zope.home}"
- ui_info ${cmd}; system ${cmd}
- }
- if {[llength ${zope.extensions}] > 0} {
- set cmd "chown -R ${zope.user} ${destroot}${zope.insthome}"
- ui_info ${cmd}; system ${cmd}
- set cmd "chgrp -R ${zope.group} ${destroot}${zope.insthome}"
- ui_info ${cmd}; system ${cmd}
- }
- }
- }
-}
-
-# Zope group option procedures
-proc zope.fix_extract_dir {option action args} {
- global workpath worksrcpath
- if {[string equal ${action} "set"]} {
- if {[tbool args]} {
- extract.dir ${worksrcpath}
- } else {
- extract.dir ${workpath}
- }
- }
-}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150621/1a3dc2ba/attachment.html>
More information about the macports-changes
mailing list