Debian Codegraph @

debian/rules

raw symbols SCIP
1 #! /usr/bin/make -f
2
3 PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG. := tex-gyre
4 PKGFONTSscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGFONTS. := fonts-texgyre
5 PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH. := fonts-texgyre-math
6 PKG_INSTALL_DIRscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG_INSTALL_DIR. := debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.)
7 PKGFONTS_INSTALL_DIRscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGFONTS_INSTALL_DIR. := debian/$(PKGFONTSscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGFONTS.)
8 PKGMATH_INSTALL_DIRscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH_INSTALL_DIR. := debian/$(PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH.)
9
10 FAMILIESscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/FAMILIES. := qag qbk qzc qcr qcs qhv qpl qtm
11 FAMILYNAMESscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/FAMILYNAMES. := Adventor Bonum Chorus Cursor Heros Pagella \
12 Schola Termes
13
14 INSTALLscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/INSTALL. := install
15 INSTALL_FILEscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/INSTALL_FILE. := $(INSTALLscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/INSTALL.) -p -o root -g root -m 644
16
17
18 SHELLscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/SHELL. := /bin/bash
19
20 ^buildscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/build().: build-arch build-indep
21 # We have nothing to do here but the Debian Policy says this target must
22 # exist.
23
24 build-archscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/build-arch().:
25 # Nothing to do here
26
27 build-indepscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/build-indep().: build-indep-stamp
28
29 build-indep-stampscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/build-indep-stamp().:
30 dh_testdirscip-debian debian debhelper . dh_testdir(). fonts/type1/public/tex-gyre/qtmr.pfb tex/latex/tex-gyre/tgtermes.sty
31 # Warn the person building the package if new files were added
32 # to the .orig.tar.gz + .diff.gz that this script is not aware of.
33 @newfiles=$$(find . -type f | grep -Ev \
34 -e '^\./.git/' \
35 -e '^\./.pc/' \
36 -e '^\./debian/' \
37 -e '^\./tlpkg/' \
38 -e '^\./fonts/type1/public/tex-gyre/[^/]*\.pf[bm]$$' \
39 -e '^\./fonts/afm/public/tex-gyre/[^/]*\.afm$$' \
40 -e '^\./fonts/tfm/public/tex-gyre/[^/]*\.tfm$$' \
41 -e '^\./fonts/map/dvips/tex-gyre/[^/]*\.map$$' \
42 -e '^\./fonts/enc/dvips/tex-gyre/[^/]*\.enc$$' \
43 -e '^\./fonts/opentype/public/tex-gyre/[^/]*\.otf$$' \
44 -e '^\./fonts/opentype/public/tex-gyre-math/[^/]*\.otf$$' \
45 -e '^\./tex/latex/tex-gyre/[^/]*\.(fd|sty)$$' \
46 -e '^\./source/fonts/tex-gyre-math/texgyredejavu-math\.sfd$$' \
47 -e '^\./doc/fonts/tex-gyre-math/[^/]*\.(tex|pdf|txt|fea|docx)$$' \
48 -e '^\./doc/fonts/tex-gyre-math/README$$' \
49 -e '^\./source/fonts/tex-gyre/[^/]*\.(fea|sfd)$$' \
50 -e '^\./doc/fonts/tex-gyre/[^/]*\.(tex|pdf|txt|fea|nam)$$' || true) && \
51 if [ -n "$$newfiles" ]; then \
52 { echo "New files were found in the patched tarball" \
53 "(.orig.tar.gz + .diff.gz):"; \
54 echo "$$newfiles" | sed 's/^\(.*\)$$/ \1/'; \
55 echo; \
56 echo "Please update the debian/rules file accordingly."; \
57 } >&2; \
58 exit 1; \
59 fi
60
61 # Upstream provides <texmf>/fonts/map/dvips/tex-gyre/q??.map that
62 # should be equivalent to all the encoding-specific map files in
63 # <texmf>/fonts/map/dvips/tex-gyre/
64 # Let's check if this is really the case.
65 @export LC_COLLATE=C && for fam in $(FAMILIESscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/FAMILIES.) ; do \
66 a=$$(find fonts/map/dvips/tex-gyre -name "$$fam-*.map" \
67 -print0 | xargs -0r cat | grep -Ev -e '^(%|[[:space:]]*$$)' \
68 | sort) \
69 && b=$$(sort < fonts/map/dvips/tex-gyre/$$fam.map | grep -Ev -e \
70 '^(%|[[:space:]]*$$)') \
71 && if [ "$$a" != "$$b" ]; then \
72 { echo; \
73 echo "Warning: fonts/map/dvips/tex-gyre/$$fam.map does not appear to" \
74 "be equivalent to"; \
75 echo "the concatenation of the other family's map files found in" \
76 "fonts/map/dvips/tex-gyre/."; \
77 echo; \
78 } >&2; \
79 fi ; \
80 done
81
82 # Generate $(PKG).scale from $(PKG).x-names
83 # count two times the number of fonts for total number of lines, since we generate
84 # entries for both iso8859-1 and -15
85 ( cat debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.).x-names ; cat debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.).x-names ) | wc -l > debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.).scale
86 cat debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.).x-names | while read f a ; do \
87 echo "$$f.pfb -unregistered-$$a-0-0-0-0-p-0-iso8859-1"; \
88 echo "$$f.pfb -unregistered-$$a-0-0-0-0-p-0-iso8859-15"; \
89 done >> debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.).scale
90
91 cat debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.).x-names | while read f a ; do \
92 echo "usr/share/texmf/fonts/type1/public/tex-gyre/$$f.pfb usr/share/fonts/X11/Type1/$$f.pfb" ; \
93 echo "usr/share/texmf/fonts/afm/public/tex-gyre/$$f.afm usr/share/fonts/X11/Type1/$$f.afm" ; \
94 done > debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.).links
95
96 touch build-indep-stamp
97
98 cleanscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/clean().:
99 dh_testdirscip-debian debian debhelper . dh_testdir(). fonts/type1/public/tex-gyre/qtmr.pfb tex/latex/tex-gyre/tgtermes.sty
100 dh_testrootscip-debian debian debhelper . dh_testroot().
101 # debian/$(PKG).links/scale are automatically generated from the list of
102 # fonts to declare to X11 among other things, so we have to delete
103 # them here.
104 rm -f build-indep-stamp "debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.).scale" "debian/$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.).links"
105 dh_cleanscip-debian debian debhelper . dh_clean().
106
107 binary-indepscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/binary-indep().: build-indep
108 dh_testdirscip-debian debian debhelper . dh_testdir(). fonts/type1/public/tex-gyre/qtmr.pfb tex/latex/tex-gyre/tgtermes.sty
109 dh_testrootscip-debian debian debhelper . dh_testroot().
110 dh_cleanscip-debian debian debhelper . dh_clean().
111
112 dh_installscip-debian debian debhelper . dh_install().
113 dh_installtexscip-debian debian debhelper . dh_installtex(). --package=$(PKGscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKG.) mapfile=debian/tex-gyre.cfg
114
115 $(foreach PPP, $(PKG) $(PKGFONTSscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGFONTS.), \
116 dh_linkscip-debian debian debhelper . dh_link(). -p $(PPPscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PPP.) \
117 $(foreach FAM, $(FAMILYNAMES), \
118 usr/share/texmf/doc/fonts/tex-gyre/README-TeX-Gyre-$(FAMscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/FAM.).txt \
119 usr/share/doc/$(PPPscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PPP.)/README-TeX-Gyre-$(FAMscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/FAM.).txt) \
120 $(foreach FAM, $(FAMILIES), \
121 usr/share/texmf/doc/fonts/tex-gyre/$(FAMscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/FAM.)-info.pdf \
122 usr/share/doc/$(PPPscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PPP.)/$(FAMscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/FAM.)-info.pdf) \
123 $(foreach FAM, $(FAMILIES), \
124 usr/share/texmf/doc/fonts/tex-gyre/$(FAMscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/FAM.)-hist.txt \
125 usr/share/doc/$(PPPscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PPP.)/$(FAMscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/FAM.)-hist.txt) \
126 ; )
127
128 dh_linkscip-debian debian debhelper . dh_link(). \
129 usr/share/texmf/doc/fonts/tex-gyre-math/README-TeX-Gyre-Bonum-Math.txt \
130 usr/share/doc/$(PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH.)/README-TeX-Gyre-Bonum-Math.txt \
131 usr/share/texmf/doc/fonts/tex-gyre-math/README-TeX-Gyre-Pagella-Math.txt \
132 usr/share/doc/$(PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH.)/README-TeX-Gyre-Pagella-Math.txt \
133 usr/share/texmf/doc/fonts/tex-gyre-math/README-TeX-Gyre-Schola-Math.txt \
134 usr/share/doc/$(PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH.)/README-TeX-Gyre-Schola-Math.txt \
135 usr/share/texmf/doc/fonts/tex-gyre-math/README-TeX-Gyre-Termes-Math.txt \
136 usr/share/doc/$(PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH.)/README-TeX-Gyre-Termes-Math.txt \
137 usr/share/texmf/doc/fonts/tex-gyre-math/README-TeX-Gyre-DejaVu-Math.txt \
138 usr/share/doc/$(PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH.)/README-TeX-Gyre-DejaVu-Math.txt
139
140 dh_linkscip-debian debian debhelper . dh_link(). -p $(PKGFONTSscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGFONTS.) \
141 etc/fonts/conf.avail/65-$(PKGFONTSscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGFONTS.).conf \
142 etc/fonts/conf.d/65-$(PKGFONTSscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGFONTS.).conf
143
144 dh_linkscip-debian debian debhelper . dh_link(). -p $(PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH.) \
145 etc/fonts/conf.avail/65-$(PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH.).conf \
146 etc/fonts/conf.d/65-$(PKGMATHscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/PKGMATH.).conf
147
148 dh_installxfontsscip-debian debian debhelper . dh_installxfonts().
149 dh_installdocsscip-debian debian debhelper . dh_installdocs(). debian/VERSIONS
150 dh_installchangelogsscip-debian debian debhelper . dh_installchangelogs().
151 dh_lintianscip-debian debian debhelper . dh_lintian().
152 dh_compressscip-debian debian debhelper . dh_compress(). -X.pdf
153 dh_fixpermsscip-debian debian debhelper . dh_fixperms().
154 dh_installdebscip-debian debian debhelper . dh_installdeb().
155 dh_gencontrolscip-debian debian debhelper . dh_gencontrol().
156 dh_md5sumsscip-debian debian debhelper . dh_md5sums().
157 dh_builddebscip-debian debian debhelper . dh_builddeb().
158
159 binary-archscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/binary-arch().:
160 # We have nothing to do here but the Debian Policy says this target must
161 # exist.
162
163 binaryscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/binary().: binary-indep binary-arch
164
165 .PHONYscip-debian debian tex-gyre 20180621-7 tex-gyre/rules/`.PHONY`().: clean build build-arch build-indep binary binary-indep binary-arch