source: trunk/dports/python/py-imdb/Portfile

Last change on this file was 126552, checked in by larryv@…, 3 years ago

py{24,25,26}-imdb: Replace with py27-imdb

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 126552 2014-10-12 01:46:10Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-imdb
7version             4.8.2
8revision            1
9license             GPL-2+
10python.versions     27
11maintainers         nomaintainer
12description         python module providing access to the IMDb movie database
13long_description \
14   py-imdb is a Python package useful to retrieve and manage the data of the \
15   IMDb movie database.
16
17platforms           darwin
18
19homepage            http://imdbpy.sourceforge.net/
20master_sites        sourceforge:imdbpy
21distname            IMDbPY-${version}
22
23checksums           rmd160  7641b6743fdc82dc01d673a6fe8be737000b4b16 \
24                    sha256  38973f80f794238fded6ca1794d4832c9c039d33664f0da27fc5adf595c2588f
25
26if {${name} ne ${subport}} {
27    depends_build   port:py${python.version}-setuptools
28    depends_lib     port:py${python.version}-lxml \
29                    port:py${python.version}-sqlalchemy
30    build.cmd-append      --without-sqlobject
31    destroot.cmd-append   --without-sqlobject
32    post-destroot {
33       move ${destroot}${python.prefix}/etc/imdbpy.cfg \
34          ${destroot}${python.prefix}/etc/imdbpy.cfg.sample-${python.branch}
35       eval move [glob ${destroot}${python.prefix}/doc/*] \
36          ${destroot}${prefix}/share/doc/${subport}
37    }
38    post-activate {
39        if {![file exists ${python.prefix}/etc/imdbpy.cfg]} {
40            copy ${python.prefix}/etc/imdbpy.cfg.sample-${python.branch} ${python.prefix}/etc/imdbpy.cfg
41        }
42    }
43}
Note: See TracBrowser for help on using the repository browser.