net-fs/smbtatools: ebuilds fixes for newer samba and newer cmake
authorIan Stakenvicius <axs@gentoo.org>
Thu, 31 Mar 2016 16:13:50 +0000 (12:13 -0400)
committerIan Stakenvicius <axs@gentoo.org>
Thu, 31 Mar 2016 16:13:50 +0000 (12:13 -0400)
- Bumped ebuild to EAPI6
- Patched CMakeLists.txt to fix issues with include paths when using newer cmake
- Specify libsmbclient vars in src_configure using pkg-config, fixes bug 561800

Package-Manager: portage-2.2.26

net-fs/smbtatools/files/smbtatools-1.2.6-fix-cmake.patch [new file with mode: 0644]
net-fs/smbtatools/smbtatools-1.2.6-r1.ebuild [moved from net-fs/smbtatools/smbtatools-1.2.6.ebuild with 63% similarity]

diff --git a/net-fs/smbtatools/files/smbtatools-1.2.6-fix-cmake.patch b/net-fs/smbtatools/files/smbtatools-1.2.6-fix-cmake.patch
new file mode 100644 (file)
index 0000000..2b8979b
--- /dev/null
@@ -0,0 +1,38 @@
+--- a/CMakeLists.txt   2016-03-31 11:14:33.462962843 -0400
++++ b/CMakeLists.txt   2016-03-31 11:53:16.319234121 -0400
+@@ -30,7 +30,7 @@
+       MESSAGE( FATAL_ERROR "ERROR: you need the qt development files and library installed.")
+ ENDIF()
+ IF (QT_INCLUDE_DIR)
+-      INCLUDE_DIRECTORIES($QT_INCLUDE_DIR)
++      INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
+ ENDIF()
+@@ -42,7 +42,7 @@
+       MESSAGE( FATAL_ERROR "ERROR: you need the pango library and headers installed.")
+ ENDIF()
+ IF (LIBPANGO_INCLUDE_DIRS)
+-      INCLUDE_DIRECTORIES($LIBPANGO_INCLUDE_DIRS)
++      INCLUDE_DIRECTORIES(${LIBPANGO_INCLUDE_DIRS})
+ ENDIF()
+ #
+@@ -53,7 +53,7 @@
+         MESSAGE( FATAL_ERROR "ERROR: you need the cairo library and headers installed.")
+ ENDIF() 
+ IF (LIBCAIRO_INCLUDE_DIRS)
+-      INCLUDE_DIRECTORIES($LIBCAIRO_INCLUDE_DIRS)
++      INCLUDE_DIRECTORIES(${LIBCAIRO_INCLUDE_DIRS})
+ ENDIF()
+@@ -65,7 +65,7 @@
+                       MESSAGE( FATAL_ERROR "ERROR: you will need curl development files installed.")
+               ENDIF()
+               if (CURL_INCLUDE_DIRS)
+-                              INCLUDE_DIRECTORIES($CURL_INCLUDE_DIRS)
++                              INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIRS})
+                       ENDIF()
+ # compile on SunOS
similarity index 63%
rename from net-fs/smbtatools/smbtatools-1.2.6.ebuild
rename to net-fs/smbtatools/smbtatools-1.2.6-r1.ebuild
index 4ef8cf4cd672d7bbcb4d4826d0bbde7d655e7a86..c2d65eba3364805f141b25e241b35eaa3bf75a44 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=4
+EAPI=6
 
 inherit cmake-utils
 
@@ -15,27 +15,32 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="debug"
 
-DEPEND="
+RDEPEND="
        dev-db/libdbi
        >=dev-db/sqlite-3.7.0:3
        net-fs/samba
        net-misc/curl
-       sys-libs/ncurses
+       sys-libs/ncurses:0=
        sys-libs/talloc
        x11-libs/cairo
        x11-libs/pango
        dev-qt/qtgui:4
-
 "
-RDEPEND="${DEPEND}
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+"
+RDEPEND+="
        net-fs/smbtad
 "
 
 DOCS="doc/smbta-guide.html doc/gfx/*.png"
+PATCHES=( "${FILESDIR}"/${P}-fix-cmake.patch )
 
 src_configure() {
        local mycmakeargs=(
-               $(cmake-utils_use debug)
+               -Ddebug=$(usex debug)
+               -DLIBSMBCLIENT_LIBRARIES="$(pkg-config --libs smbclient)"
+               -DLIBSMBCLIENT_INCLUDE_DIRS="$(pkg-config --variable includedir smbclient)"
        )
 
        cmake-utils_src_configure