source: trunk/dports/devel/diffuse/Portfile @ 79270

Last change on this file since 79270 was 79270, checked in by ryandesign@…, 8 years ago

diffuse: add python27 variant and use it by default; indicate this is noarch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 79270 2011-06-07 22:58:08Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                diffuse
6version             0.4.4
7revision            1
8categories          devel
9platforms           darwin
10maintainers         tommyd openmaintainer
11supported_archs     noarch
12
13description         diffuse is a graphical diffing and merging tool
14long_description    Ddiffuse is a small and simple text merge tool \
15                    written in Python. With Diffuse, you can easily \
16                    merge, edit, and review changes to your code.
17
18homepage            http://diffuse.sourceforge.net
19master_sites        sourceforge
20
21checksums           md5     f9309f912cfbc09a5e824c09b07a9ff7 \
22                    sha1    4689c13a11a182f9230bd394f4050b656d3d1476 \
23                    rmd160  e507ca2c9002cd7e66d42de0d592c4c283fb0aa9
24
25use_bzip2           yes
26
27set pythonexec ""
28
29variant python24 conflicts python25 python26 python27 description {Use python24} {
30    depends_lib-append    port:py-gtk2
31    set pythonexec        ${prefix}/bin/python2.4
32}
33
34variant python25 conflicts python24 python26 python27 description {Use python25} {
35    depends_lib-append    port:py25-gtk
36    set pythonexec        ${prefix}/bin/python2.5
37}
38
39variant python26 conflicts python24 python25 python27 description {Use python26} {
40    depends_lib-append    port:py26-gtk
41    set pythonexec        ${prefix}/bin/python2.6
42}
43
44variant python27 conflicts python24 python25 python26 description {Use python27} {
45    depends_lib-append    port:py27-gtk
46    set pythonexec        ${prefix}/bin/python2.7
47}
48
49if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26]} {
50    default_variants +python27
51}
52
53use_configure       no
54
55post-patch {
56    reinplace "s|/usr/bin/env python|${pythonexec}|g" \
57        ${worksrcpath}/src/usr/bin/diffuse
58}
59
60build {}
61
62destroot {
63    system "cd ${worksrcpath} && ${pythonexec} \
64       ./install.py \
65       --prefix=${prefix} \
66       --destdir=${destroot} \
67       --sysconfdir=${prefix}/etc"             
68}
Note: See TracBrowser for help on using the repository browser.