source: trunk/dports/python/py-sqlobject/Portfile @ 5325

Last change on this file since 5325 was 5325, checked in by mww, 17 years ago

prefer xinstall over file copy/mkdir

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# $Id: Portfile,v 1.2 2004/02/08 13:24:56 mww Exp $
2
3PortSystem 1.0
4
5name            py-sqlobject
6version         0.5.1
7categories      python databases
8platforms       darwin
9maintainers     mww@opendarwin.org
10description     object-relational mapper for python
11long_description        SQLObject is an object-relational mapper. It allows \
12                        you to translate RDBMS table rows into Python objects, \
13                        and manipulate those objects to transparently \
14                        manipulate the database. In using SQLObject, you will \
15                        create a class definition that will describe how the \
16                        object connects to the database (in addition to any \
17                        other methods you may wish to add to the class). \
18                        SQLObject will produce the code to access the \
19                        database, and update the database with your changes. \
20                        The interface to the database is meant to be \
21                        indistinguishable from other interfaces you may add to \
22                        the object. SQLObject also includes a novel feature to \
23                        generate WHERE clauses using Python syntax and objects \
24                        (instead of generating SQL using string substitution, \
25                        as is traditional).
26
27homepage        http://www.sqlobject.org/
28master_sites    sourceforge:sqlobject
29distname        SQLObject-${version}
30checksums       md5 00c25102035ae0efe04e0b97be1ff785
31
32depends_lib     bin:python:python
33
34use_configure   no
35
36build.cmd       python setup.py
37build.target    build
38
39destroot.cmd    python setup.py
40destroot.destdir        --prefix=${destroot}${prefix}
41
42post-destroot   {
43        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
44        xinstall -m 644 -W ${worksrcpath}/docs Authors.html Authors.txt \
45                FAQ.html FAQ.txt News.html News.txt SQLBuilder.html \
46                SQLBuilder.txt SQLObject.html SQLObject.txt default.css \
47                ${destroot}${prefix}/share/doc/${name}
48        xinstall -m 644 ${worksrcpath}/README.txt \
49                ${destroot}${prefix}/share/doc/${name}
50        xinstall -m 644 -W ${worksrcpath}/examples class_dbi.py codebits.py \
51                config.py examplestripper.py leftjoin.py people.py \
52                personaddress.py prueba.py setup.py simpleperson.py styles.py \
53                userrole.py ${destroot}${prefix}/share/doc/${name}/examples
54}
Note: See TracBrowser for help on using the repository browser.