Magellan Linux

Contents of /smage/trunk/core/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10141 - (show annotations) (download)
Thu Aug 10 09:54:44 2017 UTC (6 years, 8 months ago) by niro
File size: 1773 byte(s)
auto added: ver bump to 1.79.1-r1
1 # $Id$
2
3 PNAME="docbook-xsl-stylesheets"
4 PVER="1.79.1"
5 PBUILD="r1"
6
7 PCAT="app-text"
8
9 DESCRIPTION="DocBook XML stylesheets."
10 HOMEPAGE="http://docbook.sourceforge.net/"
11
12 DEPEND=">= dev-libs/libxml2-2.7
13 >= dev-libs/libxslt-1.1.28
14 >= app-text/build-docbook-catalog-1.4"
15
16 SRCFILE="docbook-xsl-${PVER}.tar.bz2"
17 SRCDIR="${BUILDDIR}/docbook-xsl-${PVER}"
18
19 sminclude mtools
20
21 SRC_URI=(
22 sourceforge://docbook/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2DATE="updatecmd_sourceforge docbook docbook-xsl"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 }
32
33 src_install()
34 {
35 cd ${SRCDIR}
36
37 local DEST="/usr/share/sgml/docbook/xsl-stylesheets"
38 local DOCDIR="/usr/share/doc/${PNAME}-${PVER}"
39
40 # needed directories
41 minstalldir /${DEST} || die
42 minstalldir /${DOCDIR} || die
43
44 local sheets="$(find ${SRCDIR} -maxdepth 1 -mindepth 1 -type d -printf '%f \n')"
45
46 for i in ${sheets}
47 do
48 cd ${SRCDIR}
49 cp -dpRf ${i} ${BINDIR}/${DEST} || die
50 cd ${BINDIR}/${DEST}/${i} || die
51
52 [ -e ChangeLog ] && { mv ChangeLog ${BINDIR}/${DOCDIR}/ChangeLog.${i} || die; }
53 [ -e README ] && { mv README ${BINDIR}/${DOCDIR}/README.${i} || die; }
54 done
55
56 # install the documentation
57 cd ${SRCDIR}
58 # that's now an extra tarball, we don't need it anyway
59 # cp -af doc ${BINDIR}/${DOCDIR} || die
60 minstallfile VERSION /${DEST} || die
61 # fixe missing file
62 mlink VERSION /${DEST}/VERSION.xsl || die
63
64 # only a few things in /usr/share/doc make sense to compress
65 # everything else needs to be uncompressed to be useful
66 find ${BINDIR}/${DOCDIR} -name "ChangeLog" -exec gzip -f -9 \{\} \;
67 #gzip -f -9 ${BINDIR}/${DOCDIR}/{README,ChangeLog}.* || die
68
69 minstalldocs AUTHORS BUGS COPYING NEWS README RELEASE-NOTES.txt TODO || die
70 }
71
72 postinstall()
73 {
74 build-docbook-catalog
75 }
76
77 postremove()
78 {
79 build-docbook-catalog
80 }