[116468] trunk/dports/editors/bluefish/Portfile

devans at macports.org devans at macports.org
Sun Jan 26 03:05:42 PST 2014


Revision: 116468
          https://trac.macports.org/changeset/116468
Author:   devans at macports.org
Date:     2014-01-26 03:05:41 -0800 (Sun, 26 Jan 2014)
Log Message:
-----------
bluefish: update dependencies, configuration, add mode line, license, livecheck.
  * now builds using gtk3, gucharmap-2.90
  * autoreconf to use MacPorts patched intltool.m4
  * update gettext files in po directories to avoid version mismatch errors
  * remove old variants and add default +python27 variant
  * enable desktop/mime file generation (#32163)
  * add post-activate processing for desktop, mime, hicolor icons
  * increment revision

Modified Paths:
--------------
    trunk/dports/editors/bluefish/Portfile

Modified: trunk/dports/editors/bluefish/Portfile
===================================================================
--- trunk/dports/editors/bluefish/Portfile	2014-01-26 02:47:58 UTC (rev 116467)
+++ trunk/dports/editors/bluefish/Portfile	2014-01-26 11:05:41 UTC (rev 116468)
@@ -1,62 +1,95 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem              1.0
+PortSystem          1.0
 
-name                    bluefish
-conflicts               bluefish-devel
-version                 2.2.4
-categories              editors www
-platforms               darwin
-maintainers             nomaintainer
-homepage                http://bluefish.openoffice.nl/
-description             A powerful editor for web designers
+name                bluefish
+conflicts           bluefish-devel
+version             2.2.4
+revision            1
+license             GPL-3+
+categories          editors www
+platforms           darwin
+maintainers         nomaintainer
+homepage            http://bluefish.openoffice.nl/
+description         A powerful editor for web designers
 
-long_description        Bluefish is a powerful editor for experienced web designers and \
-                        programmers. Bluefish supports many programming and markup languages \
-                        but it focuses on editing dynamic and interactive websites.
+long_description    Bluefish is a powerful editor for experienced web designers and \
+                    programmers. Bluefish supports many programming and markup languages \
+                    but it focuses on editing dynamic and interactive websites.
 
-dist_subdir             bluefish
-distname                bluefish-${version}
+dist_subdir         bluefish
 
-master_sites            sourceforge:project/bluefish/bluefish/${version} \
-                        http://www.bennewitz.com/bluefish/stable/source/
+master_sites        sourceforge:project/bluefish/bluefish/${version} \
+                    http://www.bennewitz.com/bluefish/stable/source/
 
-checksums               rmd160  56e8a1478ea6939cef0229fcfd40c44a52c49e83 \
-                        sha256  771621d848af6342fbab50a52bc7d6fddb29c4616f31ab939c508175c146b3a3
+checksums           rmd160  56e8a1478ea6939cef0229fcfd40c44a52c49e83 \
+                    sha256  771621d848af6342fbab50a52bc7d6fddb29c4616f31ab939c508175c146b3a3
 
-use_bzip2               yes
+use_bzip2           yes
 
-depends_build           port:pkgconfig \
-                        port:intltool
+depends_build       port:pkgconfig \
+                    port:intltool
 
-depends_lib             port:gtk2 \
-                        port:libxml2 \
-                        port:enchant \
-                        port:gucharmap
+depends_lib         port:desktop-file-utils \
+                    port:shared-mime-info \
+                    port:gtk3 \
+                    port:libxml2 \
+                    port:enchant \
+                    port:gucharmap
 
-configure.args          --mandir=${prefix}/share/man \
-                        --infodir=${prefix}/share/info \
-                        --sysconfdir=${prefix}/etc \
-                        --with-icon-path=${prefix}/share/pixmaps \
-                        --without-freedesktop_org-menu \
-                        --without-freedesktop_org-mime
+# autoreconf to use MacPorts patched intltool.m4
+# update gettext files in po dirs to avoid gettext version mismatch errors during build
+# bluefish tarball version 2.2.4 includes files from gettext 0.17
+# we have gettext 0.18
 
-pre-configure {
-    configure.env-append    CHARMAP_PLUGIN_CFLAGS="[exec ${prefix}/bin/pkg-config --cflags gucharmap-2]" \
-                            CHARMAP_PLUGIN_LIBS="[exec ${prefix}/bin/pkg-config --libs gucharmap-2]"
+post-patch {
+    set po_dirs         "src/plugin_about/po \
+                        src/plugin_charmap/po \
+                        src/plugin_entities/po \
+                        src/plugin_htmlbar/po \
+                        src/plugin_infbrowser/po \
+                        src/plugin_snippets/po \
+                        src/plugin_zencoding/po"
+
+    set gettext_files   "Makefile.in.in \
+                        boldquot.sed \
+                        en at boldquot.header \
+                        en at quot.header \
+                        insert-header.sin \
+                        quot.sed \
+                        remove-potcdate.sin \
+                        Rules-quot"
+
+    foreach po_dir ${po_dirs} {
+        foreach gettext_file ${gettext_files} {
+            copy -force ${prefix}/share/gettext/po/${gettext_file} ${worksrcpath}/${po_dir}
+        }
+    }
 }
 
-destroot.destdir        DESTDIR=${destroot}
+use_autoreconf      yes
+autoreconf.args     -fvi
 
-variant nosplash {
-    configure.args-append --disable-splash-screen
+configure.args      --with-gtk2=no \
+                    --disable-update-databases \
+                    --disable-silent-rules \
+                    --disable-python
+
+variant python27 description {Enable zen-coding plugin using Python 2.7} {
+    depends_lib-append  port:python27
+    configure.python    ${prefix}/bin/python2.7
+    configure.args-delete --disable-python
 }
 
-variant no_spellcheck description {Disable spell-check feature} {
-    depends_lib-delete port:enchant
-    configure.args-append --disable-spell-check
+default_variants +python27
+
+post-activate {
+    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
+    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
+    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
 }
 
-variant tidy {
-    depends_run bin:tidy:tidy
-}
+livecheck.type      regex
+livecheck.url       http://www.bennewitz.com/bluefish/stable/source/
+livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140126/9ab013c2/attachment.html>


More information about the macports-changes mailing list