source: trunk/dports/devel/diffuse/Portfile

Last change on this file was 149824, checked in by mf2k@…, 10 months ago

diffuse: Update to version 0.4.8. (#51742)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 149824 2016-07-01 13:15:03Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                diffuse
6version             0.4.8
7categories          devel
8platforms           darwin
9maintainers         nomaintainer
10license             GPL-2+
11supported_archs     noarch
12
13description         diffuse is a graphical diffing and merging tool
14long_description    Diffuse 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           sha1    473f7e82f57cc3a5ce0378eea8aede19a3f2a9df \
22                    sha256  c1d3b79bba9352fcb9aa4003537d3fece248fb824781c5e21f3fcccafd42df2b \
23                    rmd160  c424ba8e48a86d0eeab2b51b15bb6f81dd23e95d
24
25use_bzip2           yes
26
27set pythonexec ""
28
29variant python26 conflicts python27 description {Use python26} {
30    depends_lib-append    port:py26-pygtk
31    set pythonexec        ${prefix}/bin/python2.6
32}
33
34variant python27 conflicts python26 description {Use python27} {
35    depends_lib-append    port:py27-pygtk
36    set pythonexec        ${prefix}/bin/python2.7
37}
38
39if {![variant_isset python26]} {
40    default_variants +python27
41}
42
43use_configure       no
44
45post-patch {
46    reinplace "s|/usr/bin/env python|${pythonexec}|g" \
47        ${worksrcpath}/src/usr/bin/diffuse
48}
49
50build {}
51
52destroot {
53    system "cd ${worksrcpath} && ${pythonexec} \
54       ./install.py \
55       --prefix=${prefix} \
56       --destdir=${destroot} \
57       --sysconfdir=${prefix}/etc"
58}
Note: See TracBrowser for help on using the repository browser.