Temporal fix for docs

This commit is contained in:
Manuel 2011-04-03 00:37:36 +00:00
parent 0f7943a1d8
commit 0cf01672bc
3 changed files with 32 additions and 5 deletions

View File

@ -42,11 +42,13 @@ makedepends=('pkgconfig' 'cmake' 'automoc4' "kdelibs>=${_kdever}" "kdebase-runti
'poppler-qt' 'libspectre' 'sane' 'chmlib' 'libdjvu' 'lcms' 'qca' 'poppler-qt' 'libspectre' 'sane' 'chmlib' 'libdjvu' 'lcms' 'qca'
'qimageblitz' 'ebook-tools' 'libxxf86vm') 'qimageblitz' 'ebook-tools' 'libxxf86vm')
source=("$_mirror/${_origname}-$_kdever.tar.bz2") source=("$_mirror/${_origname}-$_kdever.tar.bz2"
fix-kruler-docs.diff
md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`) fix-ksnapshot-docs.diff)
md5sums=("`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`"
'5a00ce9c73737ee109d7a0c9fb0b43db'
'4f24ab2693b24214ed68eff2ef80a5b2')
# #
# build function # build function
@ -54,7 +56,9 @@ md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`)
build() build()
{ {
cd ${srcdir}/${_origname}-${pkgver} cd ${srcdir}/${_origname}-${pkgver}
# msg "apply patches ..." msg "apply patches ..."
patch -Np2 -i ${startdir}/fix-kruler-docs.diff
patch -Np2 -i ${startdir}/fix-ksnapshot-docs.diff
msg "starting build ..." msg "starting build ..."
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \ cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
@ -148,6 +152,11 @@ package_kdegraphics-kamera()
cd ${srcdir}/${_origname}-${pkgver}/${i} cd ${srcdir}/${_origname}-${pkgver}/${i}
make DESTDIR=${pkgdir} install || return 1 make DESTDIR=${pkgdir} install || return 1
done done
# Fix duplicated docs in 4.6.2
sudo rm -rf ${pkgdir}/usr/share/doc/kde/html/en/kcontrol/kamera/common
sudo rm -rf ${pkgdir}/usr/share/doc/kde/html/en/kcontrol/kamera/index.cache.bz2
sudo rm -rf ${pkgdir}/usr/share/doc/kde/html/en/kcontrol/kamera/index.docbook
} }
package_kdegraphics-kcolorchooser() package_kdegraphics-kcolorchooser()

View File

@ -0,0 +1,9 @@
--- src/kdegraphics-4.6.2/kruler/doc/CMakeLists.txt 2011-04-01 21:38:16.000000000 +0200
+++ Desenvolupament/CMakeLists.txt 2011-04-03 02:00:59.073215641 +0200
@@ -1,4 +1,4 @@
########### install files ###############
#
#
-kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en)
+kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kruler)
\ No newline at end of file

View File

@ -0,0 +1,9 @@
--- src/kdegraphics-4.6.2/ksnapshot/doc/CMakeLists.txt 2011-04-01 21:38:15.000000000 +0200
+++ Desenvolupament/CMakeLists.txt 2011-04-03 02:03:59.134359450 +0200
@@ -1,4 +1,4 @@
########### install files ###############
#
#
-kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en)
+kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR ksnapshot)
\ No newline at end of file