dev-libs/libixion: Fix DEPENDs, subslot, fix USE=-python (bug 550814)
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sat, 6 Feb 2016 15:09:03 +0000 (16:09 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 22 Feb 2016 17:05:07 +0000 (18:05 +0100)
- >=9999: Pin mdds DEPEND to slot 1
-  <9999: Pin mdds DEPEND to slot 0

Package-Manager: portage-2.2.27

dev-libs/libixion/files/libixion-0.9.1-python-optional.patch
dev-libs/libixion/files/libixion-0.9.1-python-symbol.patch [new file with mode: 0644]
dev-libs/libixion/libixion-0.9.0.ebuild
dev-libs/libixion/libixion-0.9.1.ebuild
dev-libs/libixion/libixion-9999.ebuild
dev-libs/libixion/metadata.xml

index a4e7239568a286b8b0df38e35dc9ea634e966d2b..df945abc39288292c185ef09c9fea7a9b35087ef 100644 (file)
@@ -1,34 +1,48 @@
-commit 59c360c9fe438a2805d65decc6c7889bc99a7747
-Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
-Date:   Sun May 31 10:14:17 2015 +0200
-
-    python: Make it optional
-    
-    python bindings are built unless disabled
-
-diff --git a/configure.ac b/configure.ac
-index 03f6120..1c7d8b2 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -15,7 +15,6 @@ AC_PREREQ([2.63])
+--- a/configure.ac     2016-02-06 17:08:05.505990463 +0100
++++ b/configure.ac     2016-02-06 17:08:42.316530268 +0100
+@@ -15,18 +15,13 @@
  AC_INIT([libixion], [ixion_version])
  AC_CONFIG_HEADERS([config.h])
  AM_INIT_AUTOMAKE([1.11 foreign dist-bzip2 dist-xz])
 -AM_PATH_PYTHON(2.7.0)
  m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  
- AC_ARG_WITH(hash-container-compat,
-@@ -28,6 +27,9 @@ AC_ARG_WITH(mdds-include-path,
-     AS_HELP_STRING([--with-mdds-include-path], [specify include path for mdds headers.])
- ,)
+-AC_ARG_WITH(hash-container-compat,
+-[
+-  --with-hash-container-compat use std::hash_foo instead of boost::unordered_foo
+-],
+-,with_hash_container_compat=no)
+-
+-AC_ARG_WITH(mdds-include-path,
+-    AS_HELP_STRING([--with-mdds-include-path], [specify include path for mdds headers.])
+-,)
 +AC_ARG_ENABLE([python],
-+    AS_HELP_STRING([--disable-python], [Disable python bindings]))
-+
++    [AS_HELP_STRING([--disable-python], [Disable python bindings])],
++    [enable_python="$enableval"],
++    [enable_python=yes]
++)
  IXION_API_VERSION=ixion_api_version
  IXION_MAJOR_VERSION=ixion_major_version
- IXION_MINOR_VERSION=ixion_minor_version
-@@ -82,7 +84,11 @@ fi
+@@ -66,23 +61,19 @@
+ AC_FUNC_STRTOD
+ AC_CHECK_FUNCS([gettimeofday])
+-CPPFLAGS="$CPPFLAGS -D_REENTRANT -DMDDS_HASH_CONTAINER_BOOST"
++CPPFLAGS="$CPPFLAGS -D_REENTRANT"
+-AC_MSG_CHECKING([whether to turn on hash container compatibility])
+-if test "z$with_hash_container_compat" = "zno"; then
+-    AC_MSG_RESULT([no])
+-    BOOST_REQUIRE([1.36])
+-    BOOST_UNORDERED
+-else
+-    AC_MSG_RESULT([yes])
+-    DEFINES="$DEFINES -D_IXION_HASH_CONTAINER_COMPAT"
+-fi
++BOOST_REQUIRE([1.36])
+ # Check for mdds.
  PKG_CHECK_MODULES([MDDS],[mdds >= 0.12.0])
  
  # Check for python.
@@ -37,20 +51,32 @@ index 03f6120..1c7d8b2 100644
 +    AM_PATH_PYTHON(2.7.0)
 +    PKG_CHECK_MODULES([PYTHON], [python >= 0.27.1])
 +])
-+AM_CONDITIONAL([PYTHON], [test "x$enable_python" != "xno"])
++AM_CONDITIONAL([BUILD_PYTHON], [test "x$enable_python" != "xno"])
  
  CPPFLAGS="$CPPFLAGS -g -Os -fvisibility=hidden"
  
-diff --git a/src/Makefile.am b/src/Makefile.am
-index 6e138a4..cd912ab 100644
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -1,4 +1,7 @@
--SUBDIRS = libixion python
-+SUBDIRS = libixion
-+if PYTHON
-+      SUBDIRS += python
-+endif
- AM_CPPFLAGS = -I$(top_srcdir)/include $(MDDS_CFLAGS)
+@@ -101,3 +92,10 @@
+                  src/libixion/constants.inl
+                  src/python/Makefile])
+ AC_OUTPUT
++
++AC_MSG_NOTICE([
++==============================================================================
++Build configuration:
++      python:               $enable_python
++==============================================================================
++])
+--- a/src/python/Makefile.am   2016-02-06 17:08:12.138907540 +0100
++++ b/src/python/Makefile.am   2016-02-06 17:08:38.034583800 +0100
+@@ -1,3 +1,5 @@
++if BUILD_PYTHON
++
+ pyexec_LTLIBRARIES = ixion.la
+ ixion_la_SOURCES = \
+       document.hpp \
+@@ -16,3 +18,5 @@
  
+ AM_TESTS_ENVIRONMENT = PYTHONPATH=.libs$${PYTHONPATH:+:$${PYTHONPATH}}; export PYTHONPATH;
+ TESTS = ../../test/ixion-python-test.py
++
++endif
diff --git a/dev-libs/libixion/files/libixion-0.9.1-python-symbol.patch b/dev-libs/libixion/files/libixion-0.9.1-python-symbol.patch
new file mode 100644 (file)
index 0000000..1a62bbc
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/src/python/Makefile.am b/src/python/Makefile.am
+index 0dfae54..094e0cf 100644
+--- a/src/python/Makefile.am
++++ b/src/python/Makefile.am
+@@ -10,7 +10,7 @@ ixion_la_SOURCES = \
+       sheet.hpp \
+       sheet.cpp
+-ixion_la_LDFLAGS = -module -avoid-version -export-symbols-regex initixion
++ixion_la_LDFLAGS = -module -avoid-version -export-symbols-regex PyInit_ixion
+ ixion_la_CPPFLAGS = -I$(top_srcdir)/include $(PYTHON_CFLAGS) $(MDDS_CFLAGS)
+ ixion_la_LIBADD = \
+       ../libixion/libixion-@IXION_API_VERSION@.la \
index f36ed2573dbb1dbce9cc5a8ab94cb289f5620577..59b884225db90608d53c74d9c3ba0de0d8a08ce0 100644 (file)
@@ -27,7 +27,7 @@ RDEPEND="${PYTHON_DEPS}
        dev-libs/boost:=[threads]
 "
 DEPEND="${RDEPEND}
-       >=dev-util/mdds-0.12.0:=
+       >=dev-util/mdds-0.12.0:0=
 "
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
index ff9dd6d029b85ce34292027ee3e41c6899276121..9c993be33bd9b324e66319b3add96b5458eb7c2c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -27,7 +27,7 @@ RDEPEND="
        python? ( ${PYTHON_DEPS} )
 "
 DEPEND="${RDEPEND}
-       >=dev-util/mdds-0.12.0:=
+       >=dev-util/mdds-0.12.0:0=
 "
 
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
@@ -37,8 +37,9 @@ pkg_setup() {
 }
 
 src_prepare() {
-       epatch "${FILESDIR}/${PN}-0.9.1-typo.patch"
-       epatch "${FILESDIR}/${PN}-0.9.1-python-optional.patch"
+       epatch "${FILESDIR}/${PN}-0.9.1-typo.patch" \
+               "${FILESDIR}/${PN}-0.9.1-python-optional.patch" \
+               "${FILESDIR}/${PN}-0.9.1-python-symbol.patch"
        eautoreconf
 }
 
index 676202bf741da932b6aa81d5b81657d8f83c7b62..0a1ad4313631d6941b9e63b3d5060e1819e750b9 100644 (file)
@@ -1,12 +1,12 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
 EGIT_REPO_URI="https://gitlab.com/ixion/ixion.git"
 
-PYTHON_COMPAT=( python{3_3,3_4} )
+PYTHON_COMPAT=( python{3_3,3_4,3_5} )
 
 [[ ${PV} == 9999 ]] && GITECLASS="git-r3 autotools"
 inherit eutils python-single-r1 ${GITECLASS}
@@ -17,7 +17,7 @@ HOMEPAGE="https://gitlab.com/ixion/ixion"
 [[ ${PV} == 9999 ]] || SRC_URI="http://kohei.us/files/ixion/src/${P}.tar.xz"
 
 LICENSE="MIT"
-SLOT="0/0.12"
+SLOT="0/0.11" # based on SONAME of libixion.so
 [[ ${PV} == 9999 ]] || \
 KEYWORDS="~amd64 ~arm ~ppc ~x86"
 IUSE="python static-libs"
@@ -27,7 +27,7 @@ RDEPEND="
        python? ( ${PYTHON_DEPS} )
 "
 DEPEND="${RDEPEND}
-       >=dev-util/mdds-0.12.0:=
+       dev-util/mdds:1=
 "
 
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
@@ -37,6 +37,7 @@ pkg_setup() {
 }
 
 src_prepare() {
+       eapply_user
        [[ ${PV} == 9999 ]] && eautoreconf
 }
 
index 13ce236ee51916f6749ce295afc61cb1769b302b..4fc2ac069dc2c14cd280a0515c2c33a1f24b5433 100644 (file)
@@ -5,4 +5,7 @@
                <email>office@gentoo.org</email>
                <name>Gentoo Office project</name>
        </maintainer>
+       <upstream>
+               <remote-id type="gitlab">ixion/ixion</remote-id>
+       </upstream>
 </pkgmetadata>