Package: libvtkedge-dev
Version: 0.1.0-2
Severity: important
Tags: patch

When including vtkedge in a cmake based project, VTKEdgeConfig.cmake
is used to load the configuration of libvtkedge. In particular it 
contains the location of UseVTKEdge.cmake. Because of the way this
package is created, UseVTKEdge.cmake is installed in one place, then
moved into a different location when the packages are being created.
This results in UseVTKEdge.cmake ending up in a different location than 
expected.

I have included a patch that fixes this. It sets the final location
of the cmake files in cmake. And removes the moving of files during the
package building.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvtkedge-dev depends on:
ii  libvtkedge                    0.1.0-2    Library of advanced visualization 

libvtkedge-dev recommends no packages.

libvtkedge-dev suggests no packages.

-- no debconf information
diff --git debian/libvtkedge-dev.install debian/libvtkedge-dev.install
index 6c4bb14..374ea78 100644
--- debian/libvtkedge-dev.install
+++ debian/libvtkedge-dev.install
@@ -1,4 +1,4 @@
-usr/lib/*.cmake usr/lib/VTKEdge
+usr/lib/VTKEdge/*.cmake
 usr/CMake/*.cmake usr/lib/VTKEdge/CMake
 usr/include/VTKEdge/*.h
 usr/lib/lib*.so
diff --git debian/patches/move_cmakes.patch debian/patches/move_cmakes.patch
new file mode 100644
index 0000000..5ed14fc
--- /dev/null
+++ debian/patches/move_cmakes.patch
@@ -0,0 +1,13 @@
+Index: vtkedge/CMakeLists.txt
+===================================================================
+--- vtkedge.orig/CMakeLists.txt	2010-07-28 16:38:02.000000000 -0400
++++ vtkedge/CMakeLists.txt	2010-07-29 07:44:33.000000000 -0400
+@@ -121,7 +121,7 @@
+ endif(NOT VTKEdge_INSTALL_INCLUDE_DIR)
+ 
+ if(NOT VTKEdge_INSTALL_PACKAGE_DIR)
+-  set(VTKEdge_INSTALL_PACKAGE_DIR ${VTKEdge_INSTALL_LIB_DIR} CACHE INTERNAL "")
++  set(VTKEdge_INSTALL_PACKAGE_DIR ${VTKEdge_INSTALL_LIB_DIR}/${PROJECT_NAME} CACHE INTERNAL "")
+ endif(NOT VTKEdge_INSTALL_PACKAGE_DIR)
+ 
+ if(NOT VTKEdge_VTK_INSTALL_PACKAGE_DIR)
diff --git debian/patches/series debian/patches/series
index 3b17fcd..cef7c57 100644
--- debian/patches/series
+++ debian/patches/series
@@ -1,2 +1,3 @@
 sharedlibs_version.patch
 private_libs.patch
+move_cmakes.patch

Reply via email to