commit: 2b6b60259c34edd5067ac298522a04e95ed2c5cc
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 31 16:13:50 2016 +0000
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Thu Mar 31 16:13:50 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b6b6025
net-fs/smbtatools: ebuilds fixes for newer samba and newer cmake
- 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
.../files/smbtatools-1.2.6-fix-cmake.patch | 38 ++++++++++++++++++++++
...ols-1.2.6.ebuild => smbtatools-1.2.6-r1.ebuild} | 19 +++++++----
2 files changed, 50 insertions(+), 7 deletions(-)
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
index 0000000..2b8979b
--- /dev/null
+++ b/net-fs/smbtatools/files/smbtatools-1.2.6-fix-cmake.patch
@@ -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
diff --git a/net-fs/smbtatools/smbtatools-1.2.6.ebuild
b/net-fs/smbtatools/smbtatools-1.2.6-r1.ebuild
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 4ef8cf4..c2d65eb 100644
--- a/net-fs/smbtatools/smbtatools-1.2.6.ebuild
+++ b/net-fs/smbtatools/smbtatools-1.2.6-r1.ebuild
@@ -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