source: trunk/dports/devel/reinteract/Portfile

Last change on this file was 142815, checked in by jmr@…, 20 months ago

various ports: remove redundant clearing of python.link_binaries_suffix, the portgroup now handles this

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 142815 2015-11-24 03:22:35Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    reinteract
7version                 0.5.10
8python.default_version          27
9categories              devel
10license                 BSD
11platforms               darwin
12maintainers             nomaintainer
13description             a system for interactive experimentation with python
14long_description        Reinteract is a system for interactive experimentation \
15                        with python. You enter Python code and expressions and \
16                        immediately see the results.
17
18homepage                http://www.reinteract.org
19master_sites            http://download.reinteract.org/sources
20use_bzip2               yes
21
22checksums               rmd160  2d86afbf5b7c054181c1eead01bf8f1116cd7a84 \
23                        sha256  d405f70863062ba52b9a075c7a50f465c221e1ded184c14fbecb7c8bf038854d
24
25depends_build           port:pkgconfig
26depends_lib-append              port:py${python.version}-pygtk
27
28use_configure           yes
29configure.python        ${python.bin}
30configure.pkg_config_path ${python.prefix}/lib/pkgconfig
31configure.args-append   --exec-prefix=${python.prefix}
32
33post-patch {
34    reinplace "s|PYTHON_PREFIX='\${prefix}'|PYTHON_PREFIX=${python.prefix}|" \
35                $worksrcpath/configure
36
37}
38
39build.cmd       make
40build.target    all
41
42destroot.cmd    make
43destroot.destdir "DESTDIR=${destroot}"
44
45variant quartz conflicts x11 description {Enable Quartz rendering} {
46    build.target        build-local-app
47    configure.args-append --with-appdir=${applications_dir}
48
49    post-destroot {
50        file delete "${destroot}${prefix}/share/applications/reinteract.desktop"
51        file delete "${destroot}${prefix}/share/icons/hicolor/scalable/apps/reinteract.svg"
52    }
53}
54
55variant x11 conflicts quartz description {Enable rendering in X11} {
56    pre-configure {
57        reinplace s/platform_osx=true/platform_osx=false/ ${worksrcpath}/configure
58    }
59    post-destroot {
60        xinstall ${worksrcpath}/bin/reinteract ${destroot}${prefix}/bin/
61    }
62}
63
64# junk below copied from gtk2
65
66if {[variant_isset no_x11]} {
67    default_variants    +quartz
68}
69
70if {![variant_isset quartz]} {
71    default_variants    +x11
72}
73
74pre-fetch {
75    if {![variant_isset quartz] && ![variant_isset x11]} {
76        error "Either +x11 or +quartz is required"
77    }
78}
Note: See TracBrowser for help on using the repository browser.