summaryrefslogtreecommitdiff
path: root/dev-python/cangjie
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/cangjie
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/cangjie')
-rw-r--r--dev-python/cangjie/Manifest4
-rw-r--r--dev-python/cangjie/cangjie-1.2-r1.ebuild56
-rw-r--r--dev-python/cangjie/files/cangjie-1.2-cython-022.patch25
-rw-r--r--dev-python/cangjie/metadata.xml11
4 files changed, 96 insertions, 0 deletions
diff --git a/dev-python/cangjie/Manifest b/dev-python/cangjie/Manifest
new file mode 100644
index 000000000000..805c3af49e3d
--- /dev/null
+++ b/dev-python/cangjie/Manifest
@@ -0,0 +1,4 @@
+AUX cangjie-1.2-cython-022.patch 1161 BLAKE2B c43eff943bfb3ee9b4756dd48cbfef2da96a374463b7a143ac13dafba1e9e30ed58501b1c46de9b0033baa43cb0b70b257b48ff9b741503bc10d0ee302544da2 SHA512 5aec7c8128ef2be30449550385a41949a69b0316bf4e6c7695143d67c5d2b07d261dd7c8a17b5e3eabc2e041beea995fdf81d1e413123f9f0f2f735e33c66d78
+DIST cangjie-1.2.tar.xz 221524 BLAKE2B 149d10c6d1806b08e1de852d7e48807bd027986188555caac1b9c1495573230341e611466563f8fc3072b2cbd6a4913646c44408c91816ce9fa0d67655796bb2 SHA512 4cc3e0e4a77b671c93fe39f17c970d458d6d935c1efa33f9d8de0a0311ed6c3a444fd41431d553f70f3e96065f8136801128d8b16c86d0340c78ab560bd9e63f
+EBUILD cangjie-1.2-r1.ebuild 1095 BLAKE2B ca72537781966c856d7aabd35b2c8ef5369a093cb58efec43c23987002bba420a051938736a146102c44b17c33b3e6d4f354f45f945712397fa6401f6fbf64a1 SHA512 05eed5385a68209fa6806c107ebcf12ecf8e518ae59c95fa9caaa8f8a9acc2d663e0c0fdb92b2d7ce69a0da178f962e1d497aa65da4354d7a0b510ac3157858a
+MISC metadata.xml 328 BLAKE2B ac2110ee2150d0791b218960dc2a2b1bfcd197b65a074a92a3ea28cb97627a2f5da1fce1d5964a832a9d1ea8c1b855b00ddd909513cc3fdb34431d42b514b791 SHA512 01cf68954ebb7509850bf93f85ca780b3ca8bc21b6941bcf7908ee3f6bfc29c357e0d3edf06b89368d5de32583579dfb86a761b4b8253fc70a197658fc733b34
diff --git a/dev-python/cangjie/cangjie-1.2-r1.ebuild b/dev-python/cangjie/cangjie-1.2-r1.ebuild
new file mode 100644
index 000000000000..d3daf09ed18c
--- /dev/null
+++ b/dev-python/cangjie/cangjie-1.2-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{3_4,3_5,3_6} )
+
+inherit autotools python-r1
+
+DESCRIPTION="The Python bindings to libcangjie"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="https://github.com/Cangjians/pycangjie/releases/download/v${PV}/cangjie-${PV}.tar.xz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ app-i18n/libcangjie
+ ${PYTHON_DEPS}"
+DEPEND="
+ ${RDEPEND}
+ dev-python/cython[${PYTHON_USEDEP}]
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${P}-cython-022.patch" )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ myeconf() {
+ ECONF_SOURCE="${S}" econf PYTHON="${PYTHON}"
+ }
+ python_foreach_impl run_in_build_dir myeconf
+}
+
+src_compile() {
+ python_foreach_impl run_in_build_dir default
+}
+
+src_test() {
+ python_foreach_impl run_in_build_dir default
+}
+
+src_install() {
+ python_foreach_impl run_in_build_dir default
+ einstalldocs
+
+ # package only installs python modules
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/dev-python/cangjie/files/cangjie-1.2-cython-022.patch b/dev-python/cangjie/files/cangjie-1.2-cython-022.patch
new file mode 100644
index 000000000000..ac2695c9e139
--- /dev/null
+++ b/dev-python/cangjie/files/cangjie-1.2-cython-022.patch
@@ -0,0 +1,25 @@
+diff --git a/Makefile.am b/Makefile.am
+index 6762b97..c0cc699 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -47,19 +47,19 @@ pkgpyexecdir = $(pyexecdir)/cangjie
+
+ src/cangjie/_core.c: src/cangjie/_core.pyx src/cangjie/_core.pxd
+ $(MKDIR_P) src/cangjie
+- $(CYTHON) -3 --verbose -o $@ $(srcdir)/src/cangjie/_core.pyx
++ $(CYTHON) -3 --verbose -o $@ -I $(srcdir)/src/cangjie $(srcdir)/src/cangjie/_core.pyx
+
+ src/cangjie/errors.c: src/cangjie/errors.pyx src/cangjie/_core.pxd
+ $(MKDIR_P) src/cangjie
+- $(CYTHON) -3 --verbose -o $@ $(srcdir)/src/cangjie/errors.pyx
++ $(CYTHON) -3 --verbose -o $@ -I $(srcdir)/src/cangjie $(srcdir)/src/cangjie/errors.pyx
+
+ src/cangjie/filters.c: src/cangjie/filters.pyx src/cangjie/_core.pxd
+ $(MKDIR_P) src/cangjie
+- $(CYTHON) -3 --verbose -o $@ $(srcdir)/src/cangjie/filters.pyx
++ $(CYTHON) -3 --verbose -o $@ -I $(srcdir)/src/cangjie $(srcdir)/src/cangjie/filters.pyx
+
+ src/cangjie/versions.c: src/cangjie/versions.pyx src/cangjie/_core.pxd
+ $(MKDIR_P) src/cangjie
+- $(CYTHON) -3 --verbose -o $@ $(srcdir)/src/cangjie/versions.pyx
++ $(CYTHON) -3 --verbose -o $@ -I $(srcdir)/src/cangjie $(srcdir)/src/cangjie/versions.pyx
diff --git a/dev-python/cangjie/metadata.xml b/dev-python/cangjie/metadata.xml
new file mode 100644
index 000000000000..f725cd5af33c
--- /dev/null
+++ b/dev-python/cangjie/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Cangjians/pycangjie</remote-id>
+ </upstream>
+</pkgmetadata>