summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libzypp/libzypp-13.3.0.ebuild')
-rw-r--r--dev-libs/libzypp/libzypp-13.3.0.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/libzypp/libzypp-13.3.0.ebuild b/dev-libs/libzypp/libzypp-13.3.0.ebuild
new file mode 100644
index 000000000000..883c1297d971
--- /dev/null
+++ b/dev-libs/libzypp/libzypp-13.3.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libzypp/libzypp-13.3.0.ebuild,v 1.1 2013/07/24 21:13:49 scarabeus Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="ZYpp Package Management library"
+HOMEPAGE="http://doc.opensuse.org/projects/libzypp/HEAD/"
+# version bumps check here:
+# https://build.opensuse.org/package/show/openSUSE:Factory/libzypp
+SRC_URI="http://github.com/openSUSE/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc libproxy"
+
+RDEPEND="
+ app-arch/rpm
+ dev-libs/boost
+ dev-libs/expat
+ dev-libs/libxml2
+ dev-libs/openssl:0
+ net-misc/curl
+ sys-libs/zlib
+ virtual/udev
+ libproxy? ( net-libs/libproxy )
+"
+DEPEND="${DEPEND}
+ sys-devel/gettext
+ doc? ( app-doc/doxygen[dot] )
+"
+
+# tests require actual instance of zypp to be on system
+RESTRICT="test"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${PN}-fix-compilation.patch" \
+ "${FILESDIR}/${PN}-fix-tests.patch"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "-DUSE_TRANSLATION_SET=zypp"
+ $(cmake-utils_use_disable doc AUTODOCS)
+ $(cmake-utils-use_disable libproxy LIBPROXY)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ BUILD_DIR="${CMAKE_BUILD_DIR}/tests/" cmake-utils_src_compile
+ cmake-utils_src_test
+}