summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-07-27 22:34:23 +0100
committerMarek Szuba <marecki@gentoo.org>2021-07-27 22:54:09 +0100
commitddedb2650b0beb769a2e165681be5a99a46cfac8 (patch)
tree1e71e91cc6757964d42e98ce8dccf7b8d5c6308e /dev-libs/marisa
parentdev-libs/rapidjson: keyword 1.1.0-r3 for ~riscv (diff)
downloadgentoo-ddedb2650b0beb769a2e165681be5a99a46cfac8.tar.gz
gentoo-ddedb2650b0beb769a2e165681be5a99a46cfac8.tar.bz2
gentoo-ddedb2650b0beb769a2e165681be5a99a46cfac8.zip
dev-libs/marisa: keyword 0.2.6 for ~riscv
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-libs/marisa')
-rw-r--r--dev-libs/marisa/files/marisa-0.2.6-riscv_word_size.patch11
-rw-r--r--dev-libs/marisa/marisa-0.2.6.ebuild8
2 files changed, 17 insertions, 2 deletions
diff --git a/dev-libs/marisa/files/marisa-0.2.6-riscv_word_size.patch b/dev-libs/marisa/files/marisa-0.2.6-riscv_word_size.patch
new file mode 100644
index 000000000000..49750d807619
--- /dev/null
+++ b/dev-libs/marisa/files/marisa-0.2.6-riscv_word_size.patch
@@ -0,0 +1,11 @@
+--- a/include/marisa/base.h
++++ b/include/marisa/base.h
+@@ -31,7 +31,7 @@
+ #if defined(_WIN64) || defined(__amd64__) || defined(__x86_64__) || \
+ defined(__ia64__) || defined(__ppc64__) || defined(__powerpc64__) || \
+ defined(__sparc64__) || defined(__mips64__) || defined(__aarch64__) || \
+- defined(__s390x__)
++ defined(__s390x__) || (defined(__riscv) && (__riscv_xlen == 64))
+ #define MARISA_WORD_SIZE 64
+ #else // defined(_WIN64), etc.
+ #define MARISA_WORD_SIZE 32
diff --git a/dev-libs/marisa/marisa-0.2.6.ebuild b/dev-libs/marisa/marisa-0.2.6.ebuild
index 1ed697e7aea3..c958dfd64c35 100644
--- a/dev-libs/marisa/marisa-0.2.6.ebuild
+++ b/dev-libs/marisa/marisa-0.2.6.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
-PYTHON_COMPAT=(python{3_7,3_8,3_9})
+PYTHON_COMPAT=( python3_{8,9} )
DISTUTILS_OPTIONAL="1"
DISTUTILS_USE_SETUPTOOLS="no"
@@ -24,7 +24,7 @@ fi
LICENSE="|| ( BSD-2 LGPL-2.1+ )"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="python static-libs"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
@@ -39,6 +39,10 @@ if [[ "${PV}" != "9999" ]]; then
S="${WORKDIR}/marisa-trie-${PV}"
fi
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.2.6-riscv_word_size.patch
+)
+
src_prepare() {
default
eautoreconf