[rkward-cvs] SF.net SVN: rkward:[2420] trunk/rkward/debian

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sat Mar 28 16:15:52 UTC 2009


Revision: 2420
          http://rkward.svn.sourceforge.net/rkward/?rev=2420&view=rev
Author:   tfry
Date:     2009-03-28 16:15:51 +0000 (Sat, 28 Mar 2009)

Log Message:
-----------
Base installation paths on kde4-config

Modified Paths:
--------------
    trunk/rkward/debian/changelog
    trunk/rkward/debian/rules

Modified: trunk/rkward/debian/changelog
===================================================================
--- trunk/rkward/debian/changelog	2009-03-27 20:39:38 UTC (rev 2419)
+++ trunk/rkward/debian/changelog	2009-03-28 16:15:51 UTC (rev 2420)
@@ -1,9 +1,8 @@
 rkward (0.5.0c-test3-1) experimental; urgency=low
 
-  * support both Debian and Ubuntu KDE installation paths
   * new upstream release
     closes: #520969
-  * adjust to the new KDE4 installation paths
+  * query kde4-config to set the correct installation paths
     closes: #491110
     closes: #501649
 		TODO: what about #489473?

Modified: trunk/rkward/debian/rules
===================================================================
--- trunk/rkward/debian/rules	2009-03-27 20:39:38 UTC (rev 2419)
+++ trunk/rkward/debian/rules	2009-03-28 16:15:51 UTC (rev 2420)
@@ -13,15 +13,6 @@
 #we need to know the R version
 RVERS = $(shell dpkg-query -W --showformat='$${Version}' r-base-core) 
 
-# Check for location of kde4 installation. Debian and Ubuntu currently
-# use different paths. We want to be compatible with both.
-KDE4ALT = $(shell test -d /usr/lib/kde4/share/kde4 && echo TRUE)
-ifeq ($(KDE4ALT),TRUE)
-	KDE4INST = /usr/lib/kde4
-else
-	KDE4INST = /usr
-endif
-
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -42,10 +33,10 @@
 	CXX="`/usr/bin/R CMD config CXX`" \
 	F77="`/usr/bin/R CMD config F77`" \
 	cmake .. \
-		-DCMAKE_INSTALL_PREFIX=/usr \
-		-DDATA_INSTALL_DIR=$(KDE4INST)/share/kde4/apps \
-		-DHTML_INSTALL_DIR=$(KDE4INST)/share/doc/kde4/HTML \
-		-DKCFG_INSTALL_DIR=$(KDE4INST)/share/kde4/config.kcfg \
+		-DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
+		-DDATA_INSTALL_DIR=`kde4-config --install data` \
+		-DHTML_INSTALL_DIR=`kde4-config --install html` \
+		-DKCFG_INSTALL_DIR=`kde4-config --install kcfg` \
 		-DINFO_INSTALL_DIR=/usr/share/info \
 		-DMAN_INSTALL_DIR=/usr/share/man \
 		-DKDE_DEFAULT_HOME=.kde4 \
@@ -89,9 +80,7 @@
 	# Add here commands to install the package into debian/rkward.
 	cd $(CURDIR)/build && $(MAKE) install DESTDIR=$(CURDIR)/debian/rkward
 	# dirty hack to get rid of conflicting r.xml file without adjusting all makefiles
-	rm -vf $(CURDIR)/debian/rkward/$(KDE4INST)/share/apps/katepart/syntax/r.xml
-	# May be in different locations Debian / Ubuntu
-	rm -vf $(CURDIR)/debian/rkward/$(KDE4INST)/share/kde4/apps/katepart/syntax/r.xml
+	rm -vf $(CURDIR)/debian/rkward/`kde4-config --install data`/katepart/syntax/r.xml
 	
 	# remove unneeded R package files
 	rm -vf $(CURDIR)/debian/rkward/usr/lib/R/site-library/R.css $(CURDIR)/debian/rkward/usr/lib/R/site-library/rkward/COPYING


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list