dev-libs/libixion: Fix build, EAPI=6
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Wed, 24 Feb 2016 11:14:39 +0000 (12:14 +0100)
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Wed, 24 Feb 2016 11:20:58 +0000 (12:20 +0100)
- ${P}-python-optional.patch was removing -DMDDS_HASH_CONTAINER_BOOST,
  fixed and removed any python-unrelated parts from the patch
- Removed unnecessary ${P}-python-symbol.patch

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 [deleted file]
dev-libs/libixion/libixion-0.9.1-r1.ebuild [moved from dev-libs/libixion/libixion-0.9.1.ebuild with 85% similarity]

index df945abc39288292c185ef09c9fea7a9b35087ef..632fa07e0f6e883fffbd1840240848802d7d190c 100644 (file)
@@ -1,21 +1,21 @@
 --- 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 @@
+@@ -15,18 +15,22 @@
  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,
--[
--  --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_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])],
 +    [enable_python="$enableval"],
  
  IXION_API_VERSION=ixion_api_version
  IXION_MAJOR_VERSION=ixion_major_version
-@@ -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.
+@@ -70,7 +74,11 @@
  PKG_CHECK_MODULES([MDDS],[mdds >= 0.12.0])
  
  # Check for python.
@@ -55,7 +37,7 @@
  
  CPPFLAGS="$CPPFLAGS -g -Os -fvisibility=hidden"
  
-@@ -101,3 +92,10 @@
+@@ -101,3 +109,10 @@
                   src/libixion/constants.inl
                   src/python/Makefile])
  AC_OUTPUT
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
deleted file mode 100644 (file)
index 1a62bbc..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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 \
similarity index 85%
rename from dev-libs/libixion/libixion-0.9.1.ebuild
rename to dev-libs/libixion/libixion-0.9.1-r1.ebuild
index 9c993be33bd9b324e66319b3add96b5458eb7c2c..6dc3c0e382a6a7e836dcb7c9b6b3e37af46b9f49 100644 (file)
@@ -2,7 +2,7 @@
 # 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"
 
@@ -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.10"
+SLOT="0/0.10" # based on SONAME of libixion.so
 [[ ${PV} == 9999 ]] || \
 KEYWORDS="~amd64 ~arm ~ppc ~x86"
 IUSE="python static-libs"
@@ -37,9 +37,11 @@ pkg_setup() {
 }
 
 src_prepare() {
-       epatch "${FILESDIR}/${PN}-0.9.1-typo.patch" \
-               "${FILESDIR}/${PN}-0.9.1-python-optional.patch" \
-               "${FILESDIR}/${PN}-0.9.1-python-symbol.patch"
+       eapply_user
+
+       eapply "${FILESDIR}/${PN}-0.9.1-typo.patch" \
+               "${FILESDIR}/${PN}-0.9.1-python-optional.patch"
+
        eautoreconf
 }