Annotation of /trunk/core/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.74.0-r1.smage2
Parent Directory | Revision Log
Revision 1003 -
(hide annotations)
(download)
Mon Dec 29 00:49:20 2008 UTC (15 years, 9 months ago) by niro
File size: 1828 byte(s)
Mon Dec 29 00:49:20 2008 UTC (15 years, 9 months ago) by niro
File size: 1828 byte(s)
-do not install in versionized dir, use /usr/share/sgml/docbook/xsl-stylesheets
1 | niro | 994 | # $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.74.0" | ||
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 | niro | 1003 | local DEST="/usr/share/sgml/docbook/xsl-stylesheets" |
38 | niro | 994 | 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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |