Added doc and dev package
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 3 Sep 2010 11:20:53 +0000 (13:20 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 3 Sep 2010 11:20:53 +0000 (13:20 +0200)
debian/control
debian/docs [deleted file]
debian/mdictionary-dev.install [new file with mode: 0644]
debian/mdictionary-doc.docs [new file with mode: 0644]
debian/rules
mdictionary.pri
mdictionary.pro

index e5baf38..a8254ed 100644 (file)
@@ -15,10 +15,22 @@ Package: mdictionary-google-plugin
 Section: user/education
 Architecture: any
 Depends: mdictionary
-Description: Google plugin for mdictionary
+Description: Google plugin for mDictionary
 
 Package: mdictionary-homescreen-widget
 Section: user/education
 Architecture: any
 Depends: mdictionary
-Description: home sreen widget for mdictionary
+Description: home sreen widget for mDictionary
+
+Package: mdictionary-dev
+Section: devel
+Architecture: any
+Depends: libqt4-dev (>= 4.6)
+Description: mDictionary development files
+
+Package: mdictionary-doc
+Section: doc
+Architecture: any
+Depends: mdictionary-dev
+Description: mDictionary documentation
diff --git a/debian/docs b/debian/docs
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/debian/mdictionary-dev.install b/debian/mdictionary-dev.install
new file mode 100644 (file)
index 0000000..e43b95c
--- /dev/null
@@ -0,0 +1 @@
+usr/include
diff --git a/debian/mdictionary-doc.docs b/debian/mdictionary-doc.docs
new file mode 100644 (file)
index 0000000..3d068ab
--- /dev/null
@@ -0,0 +1,2 @@
+AUTHORS
+doc/html
index 0aaa671..6b6af66 100755 (executable)
@@ -12,6 +12,7 @@ build: build-stamp
 build-stamp: configure-stamp
        dh_testdir
        $(MAKE)
+       $(MAKE) doc
        touch $@
 
 clean:
@@ -41,6 +42,7 @@ binary-arch: install
                sed -i -e 's/.*mdictionary.desktop/usr\/share\/applications\/hildon\/mdictionary.desktop/g' $(CURDIR)/debian/mdictionary.install ;\
        fi
        dh_install --sourcedir=$(CURDIR)/debian/tmp
+       dh_installdocs
        dh_strip
        dh_compress
        dh_fixperms
index cdaf8f4..7973f09 100644 (file)
@@ -17,6 +17,8 @@ CONFIG += \
        qt \
     release
 
+CONFIG -= debug
+
 isEmpty(ENABLED_SRC):ENABLED_SRC = "mdictionary plugins desktopWidget"
 isEmpty(ENABLED_PLUGINS):ENABLED_PLUGINS = "xdxf google"
 
index 0a912f5..e0fbf59 100644 (file)
@@ -9,7 +9,7 @@ check.recurse = src
 QMAKE_EXTRA_TARGETS += check
 
 
-include(doc/doc.pri)
+include (doc/doc.pri)
 QMAKE_EXTRA_TARGETS += doc
 
 message("Enabled sources: "$$ENABLED_SRC)