Contents of /trunk/extras/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.73.2-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1786 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1786 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.73.2-r1.smage2,v 1.1 2008/03/20 15:07:57 niro Exp $ |
2 | |
3 | PNAME="docbook-xsl-stylesheets" |
4 | PVER="1.73.2" |
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.6.16 |
14 | >= app-text/build-docbook-catalog-1.2" |
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 | src_prepare() |
27 | { |
28 | munpack ${SRCFILE} || die |
29 | } |
30 | |
31 | src_install() |
32 | { |
33 | cd ${SRCDIR} |
34 | |
35 | local DEST="/usr/share/sgml/docbook/xsl-stylesheets-${PVER}" |
36 | local DOCDIR="/usr/share/doc/${PNAME}-${PVER}" |
37 | |
38 | # needed directories |
39 | minstalldir /${DEST} || die |
40 | minstalldir /${DOCDIR} || die |
41 | |
42 | local sheets="$(find ${SRCDIR} -maxdepth 1 -mindepth 1 -type d -printf '%f \n')" |
43 | |
44 | for i in ${sheets} |
45 | do |
46 | cd ${SRCDIR} |
47 | cp -af ${i} ${BINDIR}/${DEST} || die |
48 | cd ${BINDIR}/${DEST}/${i} || die |
49 | |
50 | [ -e ChangeLog ] && { mv ChangeLog ${BINDIR}/${DOCDIR}/ChangeLog.${i} || die; } |
51 | [ -e README ] && { mv README ${BINDIR}/${DOCDIR}/README.${i} || die; } |
52 | done |
53 | |
54 | # install the documentation |
55 | cd ${SRCDIR} |
56 | # that's now an extra tarball, we don't need it anyway |
57 | # cp -af doc ${BINDIR}/${DOCDIR} || die |
58 | minstallfile VERSION /${DEST} || die |
59 | |
60 | # only a few things in /usr/share/doc make sense to compress |
61 | # everything else needs to be uncompressed to be useful |
62 | find ${BINDIR}/${DOCDIR} -name "ChangeLog" -exec gzip -f -9 \{\} \; |
63 | #gzip -f -9 ${BINDIR}/${DOCDIR}/{README,ChangeLog}.* || die |
64 | |
65 | minstalldocs AUTHORS BUGS COPYING NEWS README RELEASE-NOTES.txt TODO || die |
66 | } |
67 | |
68 | postinstall() |
69 | { |
70 | build-docbook-catalog |
71 | } |
72 | |
73 | postremove() |
74 | { |
75 | build-docbook-catalog |
76 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |