~ubuntu-branches/debian/jessie/python-gd/jessie

« back to all changes in this revision

Viewing changes to .pc/02_detect_libs.diff/Setup.py

  • Committer: Package Import Robot
  • Author(s): Julián Moreno Patiño
  • Date: 2014-10-07 08:36:05 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20141007083605-vfevc1k46o9i43ih
Tags: 0.58-1
* New upstream release. (Closes: #764018)
* Remove override_dh_builddeb from d/rules because
  xz is used by default.
* Remove d/source/options, by default is used xz.
* Declare compliance with Debian Policy 3.9.6.
* Remove get-packaged-orig-source target from d/rules,
  now the source code is on github.
  + Remove d/README.source for the same reason.
* Remove d/CHANGES and override_dh_installchangelogs
  in d/rules, because upstream does not provide it anymore.
* Update d/watch.
* Refresh patches offset.
* Update d/copyright.
  + Add missing font license.
  + Update Source URL.
  + Order License Paragraphs.
* Add dh-python B-D.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Setup for gdmodule 0.50 and later
2
2
 
3
3
from distutils.core import setup, Extension
4
 
import os, glob, sys, string
 
4
import os, glob, sys, string, commands
5
5
 
6
6
# version of this gdmodule package
7
 
this_version = "0.56"
 
7
this_version = "0.58"
8
8
 
9
9
# directory existence tester
10
10
 
41
41
 
42
42
libdirs = dirtest([
43
43
    "/usr/local/lib", "/sw/lib", "/usr/lib",
 
44
    "/usr/lib/i386-linux-gnu", "/usr/lib/x86_64-linux-gnu",
44
45
    "/usr/lib/X11", "/usr/X11R6/lib",
45
46
    "/opt/gnome/lib",
46
47
])
47
48
 
 
49
try:
 
50
    exotic_libdir = commands.getoutput("gdlib-config --libdir"),
 
51
    libdirs += exotic_libdir
 
52
except:
 
53
    pass
 
54
 
48
55
# include_dirs are also non-portable; same trick here.
49
56
 
50
57
incdirs = dirtest([
53
60
    "/opt/gnome/include",
54
61
])
55
62
 
 
63
try:
 
64
    exotic_incdir = commands.getoutput("gdlib-config --includedir"),
 
65
    incdirs += exotic_incdir
 
66
except:
 
67
    pass
 
68
 
56
69
# Try to identify our libraries
57
70
 
58
71
want_libs = [
59
72
    "gd",
60
 
    "jpeg", "png", "gif", "z",
 
73
    "jpeg", "png", "gif",
61
74
    "X11", "Xpm",
62
 
    "ttf", "freetype",
 
75
    "z", "ttf", "freetype",
63
76
]
64
77
 
65
78
libs = filetest(libdirs, want_libs)
70
83
    if l and l not in libs:
71
84
        missing.append(l)
72
85
 
 
86
if "ttf" in missing and "freetype" not in missing:
 
87
    remove("ttf", missing)
 
88
 
73
89
if missing:
74
90
    print "WARNING:  Missing", string.join(missing, ", "), "Libraries"
75
91
 
115
131
            libraries=libs, define_macros=macros)],
116
132
)
117
133
 
118
 
# end of file... I guess we're done.
 
134
# end of file.