/[smage]/branches/magellan-next/core/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.76.1-r1.smage2 |
Contents of /branches/magellan-next/core/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.76.1-r1.smage2
Parent Directory | Revision Log
Revision 7456 -
(show annotations)
(download)
Wed Jan 12 22:08:00 2011 UTC (13 years, 8 months ago) by niro
File size: 1776 byte(s)
Wed Jan 12 22:08:00 2011 UTC (13 years, 8 months ago) by niro
File size: 1776 byte(s)
auto added: ver bump to 1.76.1-r1
1 | # $Id: docbook-xsl-stylesheets-1.75.2-r1.smage2 3183 2009-10-14 11:53:56Z niro $ |
2 | |
3 | PNAME="docbook-xsl-stylesheets" |
4 | PVER="1.76.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="app-text" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="DocBook XML stylesheets." |
11 | HOMEPAGE="http://docbook.sourceforge.net/" |
12 | |
13 | DEPEND=">= dev-libs/libxml2-2.7 |
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 -af ${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 | |
62 | # only a few things in /usr/share/doc make sense to compress |
63 | # everything else needs to be uncompressed to be useful |
64 | find ${BINDIR}/${DOCDIR} -name "ChangeLog" -exec gzip -f -9 \{\} \; |
65 | #gzip -f -9 ${BINDIR}/${DOCDIR}/{README,ChangeLog}.* || die |
66 | |
67 | minstalldocs AUTHORS BUGS COPYING NEWS README RELEASE-NOTES.txt TODO || die |
68 | } |
69 | |
70 | postinstall() |
71 | { |
72 | build-docbook-catalog |
73 | } |
74 | |
75 | postremove() |
76 | { |
77 | build-docbook-catalog |
78 | } |