rev 9947 - kde-extras/eva/trunk/debian

ZhengPeng Hou zhengpeng-guest at alioth.debian.org
Wed Apr 2 14:32:14 UTC 2008


Author: zhengpeng-guest
Date: 2008-04-02 14:32:14 +0000 (Wed, 02 Apr 2008)
New Revision: 9947

Modified:
   kde-extras/eva/trunk/debian/changelog
   kde-extras/eva/trunk/debian/rules
Log:
polish those dev scripts

Modified: kde-extras/eva/trunk/debian/changelog
===================================================================
--- kde-extras/eva/trunk/debian/changelog	2008-04-02 14:23:18 UTC (rev 9946)
+++ kde-extras/eva/trunk/debian/changelog	2008-04-02 14:32:14 UTC (rev 9947)
@@ -1,7 +1,6 @@
-eva (0.4.921.20080127-1) unstable; urgency=low
+eva (0.4.921.dfsg+svn20080215-1) unstable; urgency=low
 
-  * Initial release (closes: #470856)
-    - Add a manpage.
+  * Initial release. (Closes: #349997, #470856)
+  * Drop out the documents for dfsg compatibility. 
 
- -- Shaodong Di <gnuyhlfh at gmail.com>  Thu, 13 Mar 2008 16:07:10 +0800
-
+ -- ZhengPeng Hou <zhengpeng-hou at ubuntu.com>  Fri, 15 Feb 2008 12:41:06 +0800

Modified: kde-extras/eva/trunk/debian/rules
===================================================================
--- kde-extras/eva/trunk/debian/rules	2008-04-02 14:23:18 UTC (rev 9946)
+++ kde-extras/eva/trunk/debian/rules	2008-04-02 14:32:14 UTC (rev 9947)
@@ -1,5 +1,4 @@
 #!/usr/bin/make -f
-# debian/rules for eva
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -10,63 +9,55 @@
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
-CXXFLAGS = -O3
+CFLAGS = -Wall -g
 
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+configure: 
 config.status: configure
 	dh_testdir
 	# Add here commands to configure the package.
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	cp -f /usr/share/misc/config.guess config.guess
-endif
-	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr CXXFLAGS="$(CXXFLAGS)" --disable-rpath
+	CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) \
+	       	--build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
+		--mandir=\$${prefix}/share/man \
+		--infodir=\$${prefix}/share/info --disable-rpath
 
 
 build: build-stamp
-
 build-stamp:  config.status
 	dh_testdir
-
 	# Add here commands to compile the package.
 	$(MAKE)
-	#docbook-to-man debian/eva.sgml > eva.1
+	touch build-stamp
 
-	touch $@
-
-clean:
+clean: 
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp 
-
 	# Add here commands to clean up after the build process.
-	$(MAKE) distclean
-	rm -f config.sub config.guess
-
+	[ ! -f Makefile ] || $(MAKE) distclean
+	find po -iname "*.gmo" -exec rm {} \;
 	dh_clean 
 
+
 install: build
 	dh_testdir
 	dh_testroot
 	dh_clean -k 
 	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/eva
+	chrpath -d  $(CURDIR)/debian/eva/usr/bin/eva
 
-	# Add here commands to install the package into debian/eva.
-	$(MAKE) DESTDIR=$(CURDIR)/debian/eva install
-
-
-# Build architecture-independent files here.
 binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-	chrpath -d debian/eva/usr/bin/eva
 	dh_installchangelogs ChangeLog
 	dh_installdocs
+	dh_installexamples
 	dh_installman debian/eva.1
 	dh_link
 	dh_strip




More information about the pkg-kde-commits mailing list