~ubuntu-branches/ubuntu/saucy/tipa/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-06-19 11:42:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060619114241-t3cx342m12stjaxm
debian/postrm: Removed this file, whose job is done automatically by
dh_installtex (this should hopefully really closes: #335990).  Thanks
again to Norbert Preining for the heads up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# rules file for Debian package tipa
6
6
# $Id$
7
7
 
 
8
export DH_COMPAT=5
 
9
#export DH_VERBOSE=1
 
10
 
 
11
include /usr/share/dpatch/dpatch.make
 
12
 
8
13
debdir   := $(shell pwd)/debian
9
 
debtmp   := $(debdir)/tmp
 
14
debtmp   := $(debdir)/tipa
 
15
debetc   := $(debdir)/etc
10
16
debtexmf := $(debtmp)/usr/share/texmf
11
 
debxfnt  := $(debtmp)/usr/X11R6/lib/X11/fonts
 
17
 
 
18
debxfnt  := $(shell pwd)/debian/xfonts-tipa/usr/share/fonts/X11
12
19
debxt1   := $(debxfnt)/Type1
13
20
debxenc  := $(debxfnt)/encodings
14
 
debetc   := $(debtmp)/etc
15
 
debupdm  := $(debetc)/texmf/updmap.d
16
 
debscdir := $(debetc)/X11/fonts/Type1
 
21
debscdir := $(shell pwd)/debian/xfonts-tipa/etc/X11/fonts/X11R7/Type1
 
22
 
 
23
UPSTREAM_VERSION = \
 
24
        $(shell perl -ne '/([\d.]+)-/; print $$1; exit' < debian/changelog)
 
25
ORIG_TARBALL = tipa_$(UPSTREAM_VERSION).orig.tar.gz
 
26
UPSTREAM_DIR = tipa-$(UPSTREAM_VERSION)
 
27
 
 
28
get-orig-source: $(ORIG_TARBALL)
 
29
$(ORIG_TARBALL):
 
30
        ( cd $(TMPDIR) ;                                                \
 
31
          rm -f tipa.zip ;                                              \
 
32
          wget ftp://tug.ctan.org/pub/tex-archive/fonts/tipa.zip ;      \
 
33
          unzip -x tipa.zip ;                                           \
 
34
          mv tipa/$(UPSTREAM_DIR) . ;                                   \
 
35
          mv tipa/tipaface.pdf $(UPSTREAM_DIR)/doc ;                    \
 
36
          tar cfz $(ORIG_TARBALL) $(UPSTREAM_DIR) ;                     \
 
37
          rm -rf tipa.zip tipa $(UPSTREAM_DIR) )
 
38
        mv $(TMPDIR)/$(ORIG_TARBALL) .
17
39
 
18
40
# The following pattern rules is necessary for building the TIPA
19
41
# documentation and the example
24
46
docs: tipaman.dvi vowel.dvi
25
47
 
26
48
build: build-stamp
27
 
build-stamp:
 
49
build-stamp: patch
28
50
        dh_testdir
29
51
        ( cd type1 ; \
30
52
          echo Building afm files... ; \
36
58
        ( cd doc ; make -f ../debian/rules docs )
37
59
        touch build-stamp
38
60
 
39
 
clean:
 
61
clean: unpatch
40
62
        dh_testdir
41
63
        dh_testroot
42
64
        rm -f build-stamp
43
65
        -$(MAKE) clean
44
66
        # This cleans up Debian changes
45
 
        rm -f changelog debian/tipaface.pdf
 
67
        rm -f changelog
46
68
        rm -f Makefile.rej
47
69
        dh_clean
48
70
 
50
72
        dh_testdir
51
73
        dh_testroot
52
74
        dh_clean -k
53
 
        dh_installdirs
 
75
        dh_installdirs --package=xfonts-tipa            \
 
76
                usr/share/fonts/X11/Type1               \
 
77
                usr/share/fonts/X11/encodings           \
 
78
                etc/X11/fonts/X11R7/Type1
54
79
 
55
 
        $(MAKE) install PREFIX=$(debtexmf) MAPDIR=$(debetc)/texmf/dvips
 
80
        $(MAKE) install PREFIX=$(debtexmf) MAPDIR=$(debtexmf)/fonts/map/dvips
56
81
        # Fixes bug reported by lintian
57
82
        chmod +x $(debtexmf)/fonts/source/fkr/tipa/*.sh
58
83
        cp 00README changelog
59
 
        ( cd $(debdir) ; uudecode tipaface.pdf.uu )
60
84
 
61
85
        dh_installdefoma -p xfonts-tipa
62
86
 
63
87
        perl debian/gen-fonts-dir.pl \
64
 
          ../../../../../share/texmf/fonts/type1/fkr/tipa \
 
88
          ../../../texmf/fonts/type1/fkr/tipa \
65
89
          $(debxt1) \
66
90
          $(debscdir)/xfonts-tipa.scale \
67
91
          debian/xfonts-tipa.defoma-hints
68
92
        install --mode=644 debian/silipa.enc $(debxenc)
69
93
 
70
 
        install --mode=644 debian/tipa.updmap $(debupdm)/10tipa.cfg
71
 
 
72
 
        dh_movefiles
73
 
        # dh_movefiles does not remove empty empty dirs. Grrr....
74
 
        rmdir --ignore-fail-on-non-empty --parents \
75
 
              $(debxt1) $(debxenc) $(debscdir) $(debupdm)
 
94
        #install --mode=644 debian/tipa.updmap $(debupdm)/10tipa.cfg
 
95
        dh_installtex -p tipa map=MixedMap,tipa.map
76
96
 
77
97
        dh_installxfonts -p xfonts-tipa
78
98