summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorModestas Vainius <modax@debian.org>2011-03-26 22:30:23 +0200
committerModestas Vainius <modax@debian.org>2011-03-26 22:30:23 +0200
commitfbdd1a34ecf8865f65610603b645ed0ad12d6c78 (patch)
tree3409296494934c0c9b2d9125140c55bde3925d17 /cmake
parent13da58f078a5e481c4ee131a09a2d725f4513cb3 (diff)
downloadpkg-kde-tools-fbdd1a34ecf8865f65610603b645ed0ad12d6c78.tar.gz
DebianABIManager: support libname[0-9]-[0-9] package names.
E.g. libkexiv2-8 in kdegraphics.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/DebianABIManager.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/DebianABIManager.cmake b/cmake/DebianABIManager.cmake
index 5f74869..ffe5538 100644
--- a/cmake/DebianABIManager.cmake
+++ b/cmake/DebianABIManager.cmake
@@ -13,10 +13,13 @@ function(DEBABI_SPLIT_PKGNAME pkg targetvar soversionvar)
set(pkg_noabi ${pkg})
endif (debabi_${pkg}_Debian-ABI GREATER 0)
# Parse package name
- if (${pkg_noabi} MATCHES "^lib(.+)([0-9]+)[a-f]?$")
+ if (${pkg_noabi} MATCHES "^lib(.+[0-9])-([0-9]+)[a-f]?$")
set(t ${CMAKE_MATCH_1})
set(pkgsv ${CMAKE_MATCH_2})
- endif (${pkg_noabi} MATCHES "^lib(.+)([0-9]+)[a-f]?$")
+ elseif (${pkg_noabi} MATCHES "^lib(.+)([0-9]+)[a-f]?$")
+ set(t ${CMAKE_MATCH_1})
+ set(pkgsv ${CMAKE_MATCH_2})
+ endif (${pkg_noabi} MATCHES "^lib(.+[0-9])-([0-9]+)[a-f]?$")
endif (DEFINED debabi_${pkg}_CMake-Target)
if (t STREQUAL "" OR NOT(TARGET ${t}))
message(STATUS "DebianABIManager: unable to find CMake target '${t}' for package '${pkg}'. Please set X-CMake-Target")