Contents of /branches/R11-stable/extras/docbook-xml-dtd42/docbook-xml-dtd42-4.2-r1.smage2
Parent Directory | Revision Log
Revision 20083 -
(show annotations)
(download)
Tue Nov 26 10:01:03 2013 UTC (10 years, 11 months ago) by niro
File size: 1796 byte(s)
Tue Nov 26 10:01:03 2013 UTC (10 years, 11 months ago) by niro
File size: 1796 byte(s)
-moved to extras
1 | # $Id$ |
2 | |
3 | PNAME="docbook-xml-dtd42" |
4 | PVER="4.2" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="app-text" |
8 | |
9 | DESCRIPTION="DocBook DTD version ${PVER} for XML." |
10 | HOMEPAGE="http://www.docbook.org/xml/" |
11 | |
12 | DEPEND=">= dev-libs/libxml2-2.7 |
13 | >= app-text/sgml-common-0.6.3 |
14 | >= app-text/build-docbook-catalog-1.4 |
15 | >= app-text/docbook-xsl-stylesheets-1.76" |
16 | |
17 | SDEPEND=">= app-arch/unzip-5.50" |
18 | |
19 | SRCFILE="docbook-xml-${PVER}.zip" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | sminclude mtools |
23 | |
24 | SRC_URI=( |
25 | http://www.docbook.org/xml/${PVER}/${SRCFILE} |
26 | mirror://docbook-xml-dtd/${SRCFILE} |
27 | ) |
28 | |
29 | # want to stay at version 4.2 |
30 | UP2DATE="echo ${PVER}" |
31 | |
32 | # special vars for mage file only |
33 | DTDVER="${PVER}" |
34 | SPECIAL_VARS="DTDVER" |
35 | |
36 | src_prepare() |
37 | { |
38 | # unpack |
39 | munpack ${SRCFILE} ${SRCDIR} || die |
40 | cd ${SRCDIR} |
41 | |
42 | # prepend OVERRIDE directive |
43 | sed -i '1i\\OVERRIDE YES' docbook.cat || die |
44 | } |
45 | |
46 | src_install() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | # needed directories |
51 | minstalldir /etc/xml || die |
52 | minstalldir /usr/share/sgml/docbook/xml-dtd-${PVER}/ent || die |
53 | |
54 | minstallfile \*.dtd /usr/share/sgml/docbook/xml-dtd-${PVER} || die |
55 | minstallfile \*.mod /usr/share/sgml/docbook/xml-dtd-${PVER} || die |
56 | minstallfile docbook.cat /usr/share/sgml/docbook/xml-dtd-${PVER} || die |
57 | |
58 | minstallfile ent/\*.ent /usr/share/sgml/docbook/xml-dtd-${PVER}/ent || die |
59 | |
60 | minstalldocs ChangeLog *.txt || die |
61 | } |
62 | |
63 | postinstall() |
64 | { |
65 | build-docbook-catalog |
66 | install-catalog --add "/etc/sgml/xml-docbook-${DTDVER}.cat" "/etc/sgml/sgml-docbook.cat" |
67 | install-catalog --add "/etc/sgml/xml-docbook-${DTDVER}.cat" "/usr/share/sgml/docbook/xml-dtd-${DTDVER}/docbook.cat" |
68 | } |
69 | |
70 | postremove() |
71 | { |
72 | build-docbook-catalog |
73 | install-catalog --remove "/etc/sgml/xml-docbook-${DTDVER}.cat" "/etc/sgml/sgml-docbook.cat" |
74 | install-catalog --remove "/etc/sgml/xml-docbook-${DTDVER}.cat" "/usr/share/sgml/docbook/xml-dtd-${DTDVER}/docbook.cat" |
75 | } |