changeset 3179:90341dd4590e

add itstool module (and MSVC-specific patch)
author Michael Goffioul <michael.goffioul@gmail.com>
date Thu, 25 Jul 2013 20:04:17 -0400
parents a791ade9c790
children 803d75af88ca
files dist-files.mk index.html src/itstool.mk src/msvc-itstool-1.patch
diffstat 4 files changed, 58 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Thu Jul 25 20:03:53 2013 -0400
+++ b/dist-files.mk	Thu Jul 25 20:04:17 2013 -0400
@@ -155,6 +155,7 @@
   imagemagick.mk \
   intltool.mk \
   itsol.mk \
+  itstool.mk \
   jasper-1-fixes.patch \
   jasper.mk \
   jpeg-test.c \
@@ -300,6 +301,7 @@
   msvc-harfbuzz-1.patch \
   msvc-hdf5-1.patch \
   msvc-itsol-1.patch \
+  msvc-itstool-1.patch \
   msvc-libffi-1.patch \
   msvc-libgd-1.patch \
   msvc-libgcrypt-1.patch \
--- a/index.html	Thu Jul 25 20:03:53 2013 -0400
+++ b/index.html	Thu Jul 25 20:04:17 2013 -0400
@@ -1404,6 +1404,11 @@
         <td id="itsol-website"><a href="http://www-users.cs.umn.edu/~saad/software/ITSOL/">ITSOL</a></td>
     </tr>
     <tr>
+        <td id="itstool-package">itstool</td>
+        <td id="itstool-version">1.2.0</td>
+        <td id="itstool-website"><a href="http://itstool.org/">ITS Tool</a></td>
+    </tr>
+    <tr>
         <td id="jasper-package">jasper</td>
         <td id="jasper-version">1.900.1</td>
         <td id="jasper-website"><a href="http://www.ece.uvic.ca/~mdadams/jasper/">JasPer</a></td>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/itstool.mk	Thu Jul 25 20:04:17 2013 -0400
@@ -0,0 +1,29 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := itstool
+$(PKG)_IGNORE   :=
+$(PKG)_CHECKSUM := dc6b766c2acec32d3c5d016b0a33e9268d274f63
+$(PKG)_SUBDIR   := itstool-$($(PKG)_VERSION)
+$(PKG)_FILE     := itstool-$($(PKG)_VERSION).tar.bz2
+$(PKG)_URL      := http://files.itstool.org/itstool/$(PKG)-$($(PKG)_VERSION).tar.bz2
+$(PKG)_DEPS     :=
+
+define $(PKG)_UPDATE
+    $(WGET) -q -O- 'http://itstool.org/download/' | \
+    $(SED) -n 's,.*itstool-\([0-9][^"]*\)\.tar.*,\1,p' | \
+    head -1
+endef
+
+ifeq ($(MXE_SYSTEM),msvc)
+    $(PKG)_PREFIX := $(HOST_PREFIX_NATIVE)
+else
+    $(PKG)_PREFIX := $(HOST_PREFIX)
+endif
+
+define $(PKG)_BUILD
+    cd '$(1)' && ./configure \
+        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
+        --prefix='$($(PKG)_PREFIX)'
+    $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/msvc-itstool-1.patch	Thu Jul 25 20:04:17 2013 -0400
@@ -0,0 +1,22 @@
+diff -ur itstool-1.2.0-orig/itstool.in itstool-1.2.0/itstool.in
+--- itstool-1.2.0-orig/itstool.in	2012-05-16 11:19:34 -0400
++++ itstool-1.2.0/itstool.in	2013-07-25 19:25:40 -0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python -s
++#!python -s
+ #
+ # Copyright (c) 2010-2011 Shaun McCance <shaunm@gnome.org>
+ #
+@@ -559,9 +559,9 @@
+         ddir = os.getenv('XDG_DATA_DIRS', '')
+         if ddir == '':
+             if DATADIR not in ('/usr/local/share', '/usr/share'):
+-                ddir += DATADIR + ':'
+-            ddir += '/usr/local/share:/usr/share'
+-        dirs.extend(ddir.split(':'))
++                ddir += DATADIR + os.pathsep
++            ddir += '/usr/local/share' + os.pathsep + '/usr/share'
++        dirs.extend(ddir.split(os.pathsep))
+         ddone = {}
+         for ddir in dirs:
+             itsdir = os.path.join(ddir, 'itstool', 'its')