mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
dev-libs/libixion: Fix build, EAPI=6
- ${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
This commit is contained in:
@@ -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"],
|
||||
@@ -24,25 +24,7 @@
|
||||
|
||||
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
|
||||
|
||||
@@ -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 \
|
||||
+7
-5
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user