Ticket #51512: patch-Portfile.diff
File patch-Portfile.diff, 2.3 KB (added by josephsacco, 8 years ago) |
---|
-
(a) Portfile- vs. (b) Portfile
a b 2 2 # $Id: Portfile 142698 2015-11-20 16:55:09Z landonf@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup python 1.0 5 6 6 7 name meld 7 version 1.8.68 version 3.16.0 8 9 categories textproc devel 9 10 license GPL-2+ 10 11 platforms darwin … … 23 24 master_sites gnome:sources/${name}/[join [lrange [split $version .] 0 1] .] 24 25 use_xz yes 25 26 26 checksums rmd160 7c981c08a015a1a0706cbe98416a25e0963af0cb\27 sha256 af96682b8f4bf3ad4221c853b1516218d62a17ff43c38f4a83e7e8ac6736e8a527 checksums rmd160 7fc0dbded07dd5efe067c7fb650fc8415ad62825 \ 28 sha256 341bfd53ac7c0167d6d43694c0e7dbedf76463bdf79b425c439376ba15b56c0a 28 29 29 depends_build port:intltool 30 python.versions 27 30 31 31 depends_lib port:desktop-file-utils \ 32 port:shared-mime-info \ 33 port:rarian \ 34 port:gtk2 \ 35 port:py27-pygtk \ 36 port:py27-gobject \ 37 port:py27-pygtksourceview 32 patchfiles patch-bin-meld.diff 33 34 depends_build port:intltool \ 35 port:itstool 36 37 depends_lib port:gtk3 \ 38 port:glib2 \ 39 port:py27-gobject3 \ 40 port:gtksourceview3 38 41 39 42 # yelp is required to display help files 40 43 41 44 depends_run port:yelp 42 43 post-patch {44 reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/INSTALL45 reinplace "s|#! /usr/bin/env python|#! ${prefix}/bin/python2.7|" ${worksrcpath}/bin/meld46 }47 48 use_configure no49 50 build.args PYTHON=${prefix}/bin/python2.751 52 post-activate {53 system "${prefix}/bin/scrollkeeper-update"54 system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"55 system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"56 system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/HighContrast"57 system "${prefix}/bin/update-mime-database ${prefix}/share/mime"58 }