[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

./packages/libreoffice/3.3.0/experimental r2200: add fake sk help



------------------------------------------------------------
revno: 2200
committer: Rene Engelhard <rene@debian.org>
branch nick: debian
timestamp: Wed 2010-11-17 03:31:08 +0100
message:
  add fake sk help
modified:
  changelog
  control
  rules
=== modified file 'changelog'
--- a/changelog	2010-11-17 02:21:12 +0000
+++ b/changelog	2010-11-17 02:31:08 +0000
@@ -3,8 +3,11 @@
   * debian/patches/postgresql-sdbc-0-7-6-b.diff: update PostgreSQL driver
     to 0.7.6b, needing for OOo/LibO 3.3 support
 
-  * debian/rules: actually install debian-presentation.odp to -common...
-    (really closes: #602043)
+  * debian/rules:
+    - actually install debian-presentation.odp to -common...
+      (really closes: #602043)
+    - create fake -help-sk package with symlink and depening on -help-cs
+      (closes: #600335)
   * debian/rules: add support to build with libwpd 0.9.x(libwp{s,g} 0.2.0.
     Will be the only option from next version on anyway...
   * debian/control.ure.in: Breaks: openoffice.org-core (<< 1:3.3~) due to upstream

=== modified file 'control'
--- a/control	2010-11-17 02:21:12 +0000
+++ b/control	2010-11-17 02:31:08 +0000
@@ -3205,6 +3205,20 @@
  This package contains the help of LibreOffice in
  Russian. 
 
+Package: libreoffice-help-sk
+Architecture: all
+Section: doc
+Recommends: libreoffice-core (>> ${base-version}) | language-support-translations-sk, ${lucene-depends}, ${java-common-depends}
+Depends: libreoffice-writer | language-support-translations-sk, libreoffice-l10n-sk, libreoffice-help-cs, ${misc:Depends}
+Conflicts: libreoffice-common (<< 1:3.2.0~beta-1), libreoffice-core (<< ${base-version}), ${lucene-conflicts}
+Provides: libreoffice-help-${help-l10n-virtual-version}
+Description: office productivity suite -- Slovak help
+ LibreOffice is a full-featured office productivity suite that provides
+ a near drop-in replacement for Microsoft(R) Office.
+ .
+ This package contains the help of LibreOffice in
+ Slovak. 
+
 Package: libreoffice-help-sl
 Architecture: all
 Section: doc

=== modified file 'rules'
--- a/rules	2010-11-16 19:32:00 +0000
+++ b/rules	2010-11-17 02:31:08 +0000
@@ -851,7 +851,7 @@
 	  ta te tg th tn tr ts ug uk uz ve vi xh zh-CN zh-TW zu
 	#HELPISOS:=$(shell $(OOO_BUILD_TREE)/bin/openoffice-xlate-lang -i all') 
 	HELPISOS:=en-US ca cs da de dz el en-GB es et eu fi fr gl hi hu it \
-	  ja km ko nl om pl pt pt-BR ru sl sv zh-CN zh-TW
+	  ja km ko nl om pl pt pt-BR ru sk sl sv zh-CN zh-TW
 	#LANGPACKISOS:=$(shell $(OOO_BUILD_TREE)/bin/openoffice-xlate-lang -i all')
 	LANGPACKISOS:=en-US af ar as ast be-BY bg bn br bs ca cs cy da de dz el \
 	  en-GB en-ZA eo es et eu fa fi fr ga gl gu he hi hr hu id it ja \
@@ -1881,6 +1881,10 @@
 	perl -pi -e 's/libreoffice-help-he$$/libreoffice-help-he, libreoffice-ctl-he/' debian/control
 endif
 
+ifeq (sk,$(findstring sk,$(HELPISOS)))
+	perl -pi -e 's/(Depends:.*)libreoffice-l10n-sk(.*)$$/\1libreoffice-l10n-sk, libreoffice-help-cs\2/' debian/control
+endif
+
 	perl -pi -e 's/Package: libreoffice$(VER)-help-en-us/Package: libreoffice$(VER)-help-en-us\nReplaces: libreoffice$(VER)-common (<< 1:3.0.0~dev300m28)/' debian/control
 
 ifeq "$(ENABLE_GIO)" "y"
@@ -2249,7 +2253,7 @@
 	# no .install files created and dh_install will warn/fail due
 	# to non-installed files.
 	for iso in $(filter-out en-US,$(LANGPACKISOS)); do \
-		if ! `echo $(HELPISOS) | grep -q $$iso`; then \
+		if ! `echo $(HELPISOS) | grep -q $$iso` || [ "$$iso" = "sk" ] ; then \
 			pkgiso=`echo $$iso | tr A-Z a-z`; \
 			rm -rf debian/tmp/pkg/libreoffice-help-$$iso; \
 			rm -f debian/libreoffice-help-$$pkgiso.dirs; \
@@ -2275,6 +2279,13 @@
 		fi; \
 	done
 
+ifeq (sk,$(findstring sk,$(HELPISOS)))
+	# add fake sk help
+	mkdir -p $(PKGDIR)-help-sk/$(shell echo $(OOBASISDIR) | sed -e s/lib/share/)/help
+	ln -s cs \
+		$(PKGDIR)-help-sk/$(shell echo $(OOBASISDIR) | sed -e s/lib/share/)/help/sk
+endif
+
 	# add registered-components dir
 	mkdir -p $(PKGDIR)-core/$(OOBASISDIR)/registered-components
 


Reply to: