diff options
Diffstat (limited to 'dev-libs/libsolv')
-rw-r--r-- | dev-libs/libsolv/ChangeLog | 5 | ||||
-rw-r--r-- | dev-libs/libsolv/libsolv-0.3.0.ebuild | 38 |
2 files changed, 38 insertions, 5 deletions
diff --git a/dev-libs/libsolv/ChangeLog b/dev-libs/libsolv/ChangeLog index c4ef3a18116e..d0665698aa5f 100644 --- a/dev-libs/libsolv/ChangeLog +++ b/dev-libs/libsolv/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-libs/libsolv # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libsolv/ChangeLog,v 1.2 2013/07/22 04:25:42 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libsolv/ChangeLog,v 1.3 2013/07/23 17:43:11 scarabeus Exp $ + + 23 Jul 2013; Tomáš Chvátal <scarabeus@gentoo.org> libsolv-0.3.0.ebuild: + Allow the scripting extensions to build, add comment about the second sed. 22 Jul 2013; Tomáš Chvátal <scarabeus@gentoo.org> libsolv-0.3.0.ebuild: Respect ldflags. diff --git a/dev-libs/libsolv/libsolv-0.3.0.ebuild b/dev-libs/libsolv/libsolv-0.3.0.ebuild index 58fc78e6a9d4..771c7f8dcaca 100644 --- a/dev-libs/libsolv/libsolv-0.3.0.ebuild +++ b/dev-libs/libsolv/libsolv-0.3.0.ebuild @@ -1,10 +1,13 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libsolv/libsolv-0.3.0.ebuild,v 1.2 2013/07/22 04:25:42 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libsolv/libsolv-0.3.0.ebuild,v 1.3 2013/07/23 17:43:11 scarabeus Exp $ EAPI=5 -inherit cmake-utils +PYTHON_COMPAT=( python2_6 python2_7 ) +USE_RUBY=( ruby19 ) +RUBY_OPTIONAL=yes +inherit python-single-r1 ruby-ng perl-module cmake-utils DESCRIPTION="Library for solving packages and reading repositories" HOMEPAGE="http://doc.opensuse.org/projects/libzypp/HEAD/" @@ -13,7 +16,7 @@ SRC_URI="https://build.opensuse.org/package/rawsourcefile/openSUSE:Factory/${PN} LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="bzip2 lzma" # perl python ruby" +IUSE="bzip2 lzma perl python ruby" RDEPEND=" app-arch/rpm @@ -23,17 +26,35 @@ RDEPEND=" virtual/udev bzip2? ( app-arch/bzip2 ) lzma? ( app-arch/xz-utils ) + python? ( + ${PYTHON_DEPS} + dev-lang/swig:0 + ) + perl? ( + dev-lang/perl + dev-lang/swig:0 + ) + ruby? ( + $(ruby_implementations_depend) + dev-lang/swig:0 + ) " DEPEND="${DEPEND} sys-devel/gettext " +pkg_setup() { + use python && python-any-r1_pkg_setup + use perl && perl-module_pkg_setup + use ruby && ruby-ng_pkg_setup +} + src_prepare() { # enabling suse features also mess up headers detection sed -i \ -e "s:include <rpm/db.h>:include <db.h>:g" \ ext/repo_rpmdb.c || die - # respect ldflags + # respect ldflags ; fixed in next release sed -i \ -e 's:LINK_FLAGS}:LINK_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}:g' \ src/CMakeLists.txt || die @@ -47,7 +68,16 @@ src_configure() { "-DUSE_VENDORDIRS=1" $(cmake-utils_use_enable bzip2 ENABLE_BZIP2_COMPRESSION) $(cmake-utils_use_enable lzma ENABLE_LZMA_COMPRESSION) + $(cmake-utils_use_enable perl PERL) + $(cmake-utils_use_enable python PYTHON) + $(cmake-utils_use_enable ruby RUBY) ) cmake-utils_src_configure } + +src_install() { + cmake-utils_src_install + + use perl && fixlocalpod +} |