Code sync
[external/hplip.git] / packaging / 85_rebuild_python_ui.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 85_rebuild_python_ui.dpatch by  <till.kamppeter@gmail.com>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
6
7 @DPATCH@
8 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' hplip-3.11.1~/Makefile.am hplip-3.11.1/Makefile.am
9 --- hplip-3.11.1~/Makefile.am   2011-01-19 06:18:26.000000000 +0100
10 +++ hplip-3.11.1/Makefile.am    2011-01-23 23:50:17.895291308 +0100
11 @@ -4,6 +4,10 @@
12  #  (c) 2004-2010 Copyright Hewlett-Packard Development Company, LP\r
13  #  Author: David Suffield, Naga Samrat Chowdary Narla,\r
14  \r
15 +# Generic rules\r
16 +%.py: %.ui\r
17 +       $(PYUIC4) -x -o $@ $<\r
18 +\r
19  INCLUDES = -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs\r
20  \r
21  hplipdir = $(datadir)/hplip\r
22 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' hplip-3.11.1~/configure.in hplip-3.11.1/configure.in
23 --- hplip-3.11.1~/configure.in  2011-01-19 06:19:05.000000000 +0100
24 +++ hplip-3.11.1/configure.in   2011-01-23 23:51:08.845262676 +0100
25 @@ -508,6 +508,8 @@
26     AC_MSG_RESULT("using $PYTHONINCLUDEDIR")
27     AC_ARG_VAR(PYTHONINCLUDEDIR, [path to Python.h C header file])
28     AC_CHECK_HEADERS(python$PYTHON_VERSION/Python.h, ,[AC_MSG_ERROR([cannot find python-devel support], 6)])
29 +   AC_ARG_VAR([PYUIC4], [PyQT pyuic4 .ui to .py compiler command])
30 +   AC_CHECK_TOOLS([PYUIC4], [pyuic4])
31  fi
32  
33  if test "$hpijs_only_build" = "no" && test "$scan_build" = "yes" && test "$hpcups_only_build" = "no"; then