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

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

diffuse: Fix port lint --nitpick warning about trailing whitespace (whitespace only, openmaintainer, following r89878)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 89879 2012-02-14 00:35:57Z cal@macports.org $
2
3PortSystem          1.0
4
5name                diffuse
6version             0.4.6
7categories          devel
8platforms           darwin
9maintainers         tommyd openmaintainer
10license             GPL-2+
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           sha256  748922902573de316a4829f1ccc2cb6fab218b4aaf69a1a4aadba7fd8f8fd916 \
22                    rmd160  4545012a068d71292c7382cda41559472968777f
23
24use_bzip2           yes
25
26set pythonexec ""
27
28variant python24 conflicts python25 python26 python27 description {Use python24} {
29    depends_lib-append    port:py-gtk2
30    set pythonexec        ${prefix}/bin/python2.4
31}
32
33variant python25 conflicts python24 python26 python27 description {Use python25} {
34    depends_lib-append    port:py25-gtk
35    set pythonexec        ${prefix}/bin/python2.5
36}
37
38variant python26 conflicts python24 python25 python27 description {Use python26} {
39    depends_lib-append    port:py26-gtk
40    set pythonexec        ${prefix}/bin/python2.6
41}
42
43variant python27 conflicts python24 python25 python26 description {Use python27} {
44    depends_lib-append    port:py27-gtk
45    set pythonexec        ${prefix}/bin/python2.7
46}
47
48if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26]} {
49    default_variants +python27
50}
51
52use_configure       no
53
54post-patch {
55    reinplace "s|/usr/bin/env python|${pythonexec}|g" \
56        ${worksrcpath}/src/usr/bin/diffuse
57}
58
59build {}
60
61destroot {
62    system "cd ${worksrcpath} && ${pythonexec} \
63       ./install.py \
64       --prefix=${prefix} \
65       --destdir=${destroot} \
66       --sysconfdir=${prefix}/etc"
67}
Note: See TracBrowser for help on using the repository browser.