# HG changeset patch # User Michael Goffioul # Date 1374797057 14400 # Node ID 90341dd4590eb0a82fdbe08ba6e0a9f7631cd60b # Parent a791ade9c790044325e31eae830be6e2165a2e64 add itstool module (and MSVC-specific patch) diff -r a791ade9c790 -r 90341dd4590e dist-files.mk --- 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 \ diff -r a791ade9c790 -r 90341dd4590e index.html --- 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 @@ ITSOL + itstool + 1.2.0 + ITS Tool + + jasper 1.900.1 JasPer diff -r a791ade9c790 -r 90341dd4590e src/itstool.mk --- /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 diff -r a791ade9c790 -r 90341dd4590e src/msvc-itstool-1.patch --- /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 + # +@@ -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')