* [gentoo-commits] dev/dev-zero:master commit in: net-misc/csync/files/, net-misc/csync/
@ 2012-07-31 8:47 Tiziano Müller
0 siblings, 0 replies; only message in thread
From: Tiziano Müller @ 2012-07-31 8:47 UTC (permalink / raw
To: gentoo-commits
commit: 5cf40245c05b8755f9408cdb1c0cb79f03e54429
Author: Tiziano Müller <tm <AT> dev-zero <DOT> ch>
AuthorDate: Tue Jul 31 08:44:08 2012 +0000
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Tue Jul 31 08:44:08 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=5cf40245
Initial commit, ebuild written by me.
---
net-misc/csync/Manifest | 3 +
net-misc/csync/csync-0.50.7.ebuild | 56 ++++++++++++++++++++
.../csync/files/0.50.7-configureable-modules.patch | 49 +++++++++++++++++
3 files changed, 108 insertions(+), 0 deletions(-)
diff --git a/net-misc/csync/Manifest b/net-misc/csync/Manifest
new file mode 100644
index 0000000..005172c
--- /dev/null
+++ b/net-misc/csync/Manifest
@@ -0,0 +1,3 @@
+AUX 0.50.7-configureable-modules.patch 1490 RMD160 12c2c246e2cefe003190cf734e6d61c5613d2b69 SHA1 e3e4b64204f100e8ff8abf597e3cc4cee95cc2a9 SHA256 8fe77bdaf47f6db263ee8b7024e506735743d8165cb80bbc662a9342accd7945
+DIST csync-0.50.7.tar.bz2 1331719 RMD160 cfcc492cdd6c9a6ab193f6fae4535ba705a6c713 SHA1 3d5428077471bfc8e18de3746867b6ba9f9e8196 SHA256 01d0de237f97cc087ff813be2637c6d2a125ae76f1535f4f9e86d7ef0da0ae56
+EBUILD csync-0.50.7.ebuild 1340 RMD160 361b5cf278157264b8428660b4fd218363084218 SHA1 95b7fef6613070810773e8f363a2df0c6346b405 SHA256 8fc4a08662927fa7feb867502074648776f7584d833299d76fed21fe509e9754
diff --git a/net-misc/csync/csync-0.50.7.ebuild b/net-misc/csync/csync-0.50.7.ebuild
new file mode 100644
index 0000000..118f329
--- /dev/null
+++ b/net-misc/csync/csync-0.50.7.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+MY_P="csync-${PV}"
+
+inherit cmake-utils
+
+DESCRIPTION="Bidirectional file synchronizer (ownCloud fork)"
+HOMEPAGE="http://www.csync.org/ http://owncloud.org/sync-clients/"
+SRC_URI="http://download.owncloud.com/download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="owncloud"
+KEYWORDS="~amd64"
+IUSE="doc log samba sftp test +owncloud"
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/iniparser
+ log? ( dev-libs/log4c )
+ samba? ( net-fs/samba )
+ sftp? ( net-libs/libssh[sftp] )
+ owncloud? ( net-libs/neon )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( dev-libs/check )"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( "AUTHORS" "ChangeLog" "README" "doc/csync.txt" )
+HTML_DOCS=( "doc/userguide" )
+PATCHES=( "${FILESDIR}/${PV}-configureable-modules.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with log LOG4C)
+ $(cmake-utils_use_want owncloud OWNCLOUD)
+ $(cmake-utils_use_want samba SMB)
+ $(cmake-utils_use_want sftp SFTP)
+ $(cmake-utils_use test UNIT_TESTING)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ use doc && emake -C "${CMAKE_BUILD_DIR}" doc
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -rf "${D}/usr/share/doc/${PN}"
+ use doc && dohtml -p api "${CMAKE_BUILD_DIR}/doc/html/"
+}
diff --git a/net-misc/csync/files/0.50.7-configureable-modules.patch b/net-misc/csync/files/0.50.7-configureable-modules.patch
new file mode 100644
index 0000000..44ca887
--- /dev/null
+++ b/net-misc/csync/files/0.50.7-configureable-modules.patch
@@ -0,0 +1,49 @@
+diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt
+index 7db7555..de9d395 100644
+--- a/modules/CMakeLists.txt
++++ b/modules/CMakeLists.txt
+@@ -33,7 +33,7 @@ include_directories(
+ ${MODULES_PRIVATE_INCLUDE_DIRS}
+ )
+
+-if(LIBSMBCLIENT_FOUND)
++if(LIBSMBCLIENT_FOUND AND WANT_SMB)
+ include_directories(${LIBSMBCLIENT_INCLUDE_DIRS})
+ macro_add_plugin(${SMB_PLUGIN} csync_smb.c)
+ target_link_libraries(${SMB_PLUGIN} ${CSYNC_LIBRARY} ${LIBSMBCLIENT_LIBRARIES})
+@@ -44,12 +44,12 @@ install(
+ DESTINATION
+ ${PLUGIN_VERSION_INSTALL_DIR}
+ )
+-endif()
++endif(LIBSMBCLIENT_FOUND AND WANT_SMB)
+
+ macro_add_plugin(csync_dummy csync_dummy.c)
+ target_link_libraries(csync_dummy ${CSYNC_LIBRARY})
+
+-if (LIBSSH_FOUND)
++if (LIBSSH_FOUND AND WANT_SFTP)
+ macro_add_plugin(${SFTP_PLUGIN} csync_sftp.c)
+ target_link_libraries(${SFTP_PLUGIN} ${CSYNC_LIBRARY} ${LIBSSH_LIBRARIES})
+
+@@ -59,9 +59,9 @@ install(
+ DESTINATION
+ ${PLUGIN_VERSION_INSTALL_DIR}
+ )
+-endif (LIBSSH_FOUND)
++endif (LIBSSH_FOUND AND WANT_SFTP)
+
+-if (NEON_FOUND)
++if (NEON_FOUND AND WANT_OWNCLOUD)
+ include_directories( ${NEON_INCLUDE_DIRS} )
+ macro_add_plugin(${OWNCLOUD_PLUGIN} csync_owncloud.c)
+ target_link_libraries(${OWNCLOUD_PLUGIN} ${CSYNC_LIBRARY} ${NEON_LIBRARIES})
+@@ -72,7 +72,7 @@ if (NEON_FOUND)
+ DESTINATION
+ ${PLUGIN_VERSION_INSTALL_DIR}
+ )
+-endif (NEON_FOUND)
++endif (NEON_FOUND AND WANT_OWNCLOUD)
+
+ # create test file as bad plugin for the vio testcase
+ file(WRITE
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-31 8:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 8:47 [gentoo-commits] dev/dev-zero:master commit in: net-misc/csync/files/, net-misc/csync/ Tiziano Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox