1 | # $Id: Portfile,v 1.1 2003/08/12 04:52:36 rshaw Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | name zope-btreefolder2 |
---|
4 | version 0.5.0 |
---|
5 | categories www python zope |
---|
6 | maintainers robert@or.homeip.net |
---|
7 | description Zope folder that can contain many more objects efficiently |
---|
8 | long_description When you fill a Zope folder with too many \ |
---|
9 | objects, both Zope and your browser get \ |
---|
10 | overwhelmed. Zope has to load and store a large \ |
---|
11 | folder object, and the browser has to render \ |
---|
12 | large HTML tables repeatedly. Zope can store a \ |
---|
13 | lot of objects, but it has trouble storing a lot \ |
---|
14 | of objects in a single standard Zope folder. \ |
---|
15 | BTreeFolder2 solves this problem by storing the \ |
---|
16 | objects in Zope BTrees, special structures \ |
---|
17 | designed for the Zope object database. BTrees \ |
---|
18 | can hold numerous items without loading them all \ |
---|
19 | into memory at once. |
---|
20 | platforms darwin |
---|
21 | homepage http://hathaway.freezope.org/Software/BTreeFolder2/ |
---|
22 | distname BTreeFolder2-${version} |
---|
23 | master_sites http://hathaway.freezope.org/Software/BTreeFolder2 |
---|
24 | checksums md5 f301851803326d774d438b35aeb2322d |
---|
25 | depends_lib bin:python2.1:python21 |
---|
26 | depends_lib path:${prefix}/www/Zope:zope |
---|
27 | configure {} |
---|
28 | |
---|
29 | set python /usr/bin/env\ python2.1 |
---|
30 | set zopehome ${prefix}/www/Zope |
---|
31 | |
---|
32 | pre-build { |
---|
33 | system "cp ${zopehome}/inst/compilezpy.py ${workpath}" |
---|
34 | } |
---|
35 | |
---|
36 | build { |
---|
37 | system "cd ${workpath} && \ |
---|
38 | ${python} ${workpath}/compilezpy.py" |
---|
39 | system "cd ${workpath} && \ |
---|
40 | ${python} -O ${workpath}/compilezpy.py" |
---|
41 | } |
---|
42 | |
---|
43 | destroot { |
---|
44 | set zopebase ${destroot}${zopehome} |
---|
45 | set productsdir ${zopebase}/lib/python/Products |
---|
46 | set zopeuser zope |
---|
47 | |
---|
48 | # Copy Plone products into the Products directory |
---|
49 | system "install -d ${productsdir}" |
---|
50 | system "cp -R ${workpath}/BTreeFolder2 ${productsdir}" |
---|
51 | system "cd ${zopebase} && chown -R zope lib" |
---|
52 | system "cd ${zopebase} && chgrp -R www lib" |
---|
53 | } |
---|
54 | # vim: ts=8 sw=8 |
---|