[105832] trunk/dports/textproc

devans at macports.org devans at macports.org
Tue May 7 09:55:05 PDT 2013


Revision: 105832
          https://trac.macports.org/changeset/105832
Author:   devans at macports.org
Date:     2013-05-07 09:55:05 -0700 (Tue, 07 May 2013)
Log Message:
-----------
itstool: new port, an i18n tool for XML files.

Added Paths:
-----------
    trunk/dports/textproc/itstool/
    trunk/dports/textproc/itstool/Portfile
    trunk/dports/textproc/itstool/files/
    trunk/dports/textproc/itstool/files/patch-itstool.in.diff

Added: trunk/dports/textproc/itstool/Portfile
===================================================================
--- trunk/dports/textproc/itstool/Portfile	                        (rev 0)
+++ trunk/dports/textproc/itstool/Portfile	2013-05-07 16:55:05 UTC (rev 105832)
@@ -0,0 +1,54 @@
+# -*- 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
+
+name            itstool
+version         1.2.0
+license         GPL-3+
+set branch      [join [lrange [split ${version} .] 0 1] .]
+
+description     ITS Tool allows you to translate your XML documents with PO files, \
+                using rules from the W3C Internationalization Tag Set.
+
+long_description \
+                ${description}
+
+maintainers     devans openmaintainer
+categories      textproc
+platforms       darwin
+homepage        http://itstool.org/
+master_sites    http://files.itstool.org/${name}
+
+use_bzip2       yes
+
+checksums       rmd160  498e5a158665504514d456335256d2c3a5746216 \
+                sha256  46fed63fb89c72dbfc03097b4477084ff05ad6f171212d8f1f1546ea543978aa
+
+supported_archs noarch
+
+depends_build   port:gawk
+
+patchfiles      patch-itstool.in.diff
+
+post-patch {
+    reinplace "s|@@MP_PYTHON@@|${configure.python}|" ${worksrcpath}/itstool.in
+}
+
+variant python26 conflicts python27 description {Use Python 2.6} {
+    depends_run         port:py26-libxml2
+    configure.python    ${prefix}/bin/python2.6
+}
+
+variant python27 conflicts python26 description {Use Python 2.7} {
+    depends_run         port:py27-libxml2
+    configure.python    ${prefix}/bin/python2.7
+}
+
+if {![variant_isset python26]} {
+    default_variants +python27
+}
+
+livecheck.type  regex
+livecheck.url   http://itstool.org/download/
+livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"

Added: trunk/dports/textproc/itstool/files/patch-itstool.in.diff
===================================================================
--- trunk/dports/textproc/itstool/files/patch-itstool.in.diff	                        (rev 0)
+++ trunk/dports/textproc/itstool/files/patch-itstool.in.diff	2013-05-07 16:55:05 UTC (rev 105832)
@@ -0,0 +1,8 @@
+--- itstool.in.orig	2013-05-06 11:16:20.000000000 -0700
++++ itstool.in	2013-05-06 11:17:13.000000000 -0700
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python -s
++#!@@MP_PYTHON@@ -s
+ #
+ # Copyright (c) 2010-2011 Shaun McCance <shaunm at gnome.org>
+ #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130507/2dda7418/attachment.html>


More information about the macports-changes mailing list