Permalink
Browse files

* LCL docs are now packaged for Debian.

git-svn-id: http://svn2.freepascal.org/svn/lazarus/trunk@19724 4005530d-fff6-0310-9dd1-cebe43e6787f
  • Loading branch information...
1 parent dc4f0c0 commit d9919d0c27bf9f2f89eedec5a43eda3773472539 mazen committed May 1, 2009
View
0 debian/dirs
No changes.
View
2 debian/lazarus-doc.install
@@ -1 +1 @@
-/usr/share/doc/lazarus
+/usr/share/doc/lazarus/lcl
View
0 debian/links
No changes.
View
0 debian/menu
No changes.
View
0 debian/move-usr-lib.sh
No changes.
View
27 debian/rules
@@ -5,6 +5,15 @@ DEB_DH_BUILDDEB_ARGS := -- -Z bzip2
export DH_ALWAYS_EXCLUDE := COPYING:LICENSE
export LANG:=C
+# Documentation type to use chm/html
+ifeq (${DEBDOCTYPE},)
+DOCTYPE=html
+# HTML Converter chmdocs or htmldocs for (default)
+CONVERTER=${DOCTYPE}docs
+else
+DOCTYPE=${DEBDOCTYPE}
+CONVERTER=${DOCTYPE}docs
+endif
# Define FPC
ifndef FPC
FPC=/usr/bin/fpc
@@ -18,8 +27,8 @@ DEB_UPSTREAM_VERSION:=$(shell echo $(DEB_VERSION) | cut -f 1 -d -)
CURDIR:=$(shell pwd)
BUILD_DIR=$(CURDIR)/debian/build
INSTALL_DIR=$(CURDIR)/debian/tmp
-DOC_DIR=${INSTALL_DIR}/usr/share/doc/lazarus
-SRC_DIR=$(INSTALL_DIR)/usr/lib/lazarus
+DOC_DIR=${INSTALL_DIR}/usr/share/doc/lazarus/${DEB_UPSTREAM_MAIN_VERSION}
+SRC_DIR=$(INSTALL_DIR)/usr/lib/lazarus/${DEB_UPSTREAM_MAIN_VERSION}
# Get utils
ifndef MKDIR
MKDIR=mkdir -p
@@ -29,10 +38,10 @@ CP=cp -Rfpl
endif
RM:=rm -rf
ifndef LAZBUILD
-LAZBUILD=lazbuild
+LAZBUILD=${CURDIR}/lazbuild
endif
# Set default compilation options
-BUILDOPTS=PP=$(FPC)
+BUILDOPTS=
INSTALLOPTS=INSTALL_PREFIX=$(INSTALL_DIR)/usr
# Get fpcmake from path if none is specified.
ifndef FPCMAKE
@@ -69,17 +78,18 @@ clean-patched:
dh_testroot
${RM} lazarus startlazarus lazbuild
$(MAKE) distclean ${BUILDOPTS}
+ $(MAKE) -C docs/html clean
find '(' -name '*.a' -or -name '*.o' -or -name '*.so' -or -name '*.ppu' ')' -exec ${RM} '{}' ';'
dh_prep
patch: patch-stamp
patch-stamp:
- quilt push -a || test $$? = 2
+ test ! -s ${QUILT_PATCHES}/series || quilt push -a
touch patch-stamp
unpatch:
- quilt pop -a || test $$? = 2
+ test ! -s ${QUILT_PATCHES}/series || quilt pop -a
rm -rf patch-stamp debian/patched
###################
@@ -179,16 +189,15 @@ build-doc: patch debian-files build-doc-stamp
build-doc-stamp:
@echo "--- Building Documentation"
dh_testdir
- #$(MAKE) -C docs $(CONVERTER) $(BUILDOPTS) FPDOC=$(NEWFPDOC)
+ $(MAKE) -C docs/html ${CONVERTER}
touch build-doc-stamp
install-doc: build-doc install-doc-stamp
install-doc-stamp:
@echo "--- Installing Documentation"
dh_testdir
dh_testroot
- install -d ${DOC_DIR}
- ${CP} -t ${DOC_DIR} docs/*
+ ${MAKE} -C docs/html ${DOCTYPE}install INSTALL_PREFIX=${INSTALL_DIR}/usr INSTALL_DOCDIR=${DOC_DIR}
touch install-doc-stamp
###################

0 comments on commit d9919d0

Please sign in to comment.