diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/cangjie | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/cangjie')
| -rw-r--r-- | dev-python/cangjie/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/cangjie/cangjie-1.2-r1.ebuild | 52 | ||||
| -rw-r--r-- | dev-python/cangjie/cangjie-1.3.ebuild | 50 | ||||
| -rw-r--r-- | dev-python/cangjie/files/cangjie-1.2-cython-0.22.patch | 23 | ||||
| -rw-r--r-- | dev-python/cangjie/metadata.xml | 12 |
5 files changed, 139 insertions, 0 deletions
diff --git a/dev-python/cangjie/Manifest b/dev-python/cangjie/Manifest new file mode 100644 index 000000000000..7b9869e0eac3 --- /dev/null +++ b/dev-python/cangjie/Manifest @@ -0,0 +1,2 @@ +DIST cangjie-1.2.tar.xz 221524 BLAKE2B 149d10c6d1806b08e1de852d7e48807bd027986188555caac1b9c1495573230341e611466563f8fc3072b2cbd6a4913646c44408c91816ce9fa0d67655796bb2 SHA512 4cc3e0e4a77b671c93fe39f17c970d458d6d935c1efa33f9d8de0a0311ed6c3a444fd41431d553f70f3e96065f8136801128d8b16c86d0340c78ab560bd9e63f +DIST cangjie-1.3.tar.xz 237156 BLAKE2B a94f51df82136edddeeeecb729737a7be1cf4677c86df153ba86b436a404615156e6fe43d6efbb6ae602982763a4cd8ea09850882942a70a3a3737075bde0c01 SHA512 633b0040740105573fe72811c2f763756b67784330520ecadd5e0b24fc51e414f54a71f03444940f20c8a4943a14b65e2f1d18339696e2ea5cf659de8592df2a 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..d41c713ced22 --- /dev/null +++ b/dev-python/cangjie/cangjie-1.2-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python3_6 ) + +inherit autotools python-r1 + +DESCRIPTION="Python wrapper for libcangjie" +HOMEPAGE="http://cangjians.github.io/" +SRC_URI="https://github.com/Cangjians/py${PN}/releases/download/v${PV}/${P#py}.tar.xz" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + app-i18n/libcangjie" +DEPEND="${RDEPEND} + dev-python/cython[${PYTHON_USEDEP}] + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-cython-0.22.patch ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + python_configure() { + ECONF_SOURCE="${S}" econf + } + python_foreach_impl run_in_build_dir python_configure +} + +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 + + find "${D}" -name '*.la' -delete || die +} diff --git a/dev-python/cangjie/cangjie-1.3.ebuild b/dev-python/cangjie/cangjie-1.3.ebuild new file mode 100644 index 000000000000..61b243fd4fdf --- /dev/null +++ b/dev-python/cangjie/cangjie-1.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit autotools python-r1 + +DESCRIPTION="Python wrapper for libcangjie" +HOMEPAGE="http://cangjians.github.io/" +SRC_URI="https://github.com/Cangjians/py${PN}/releases/download/v${PV}/${P#py}.tar.xz" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + app-i18n/libcangjie" +DEPEND="${RDEPEND} + dev-python/cython[${PYTHON_USEDEP}] + virtual/pkgconfig" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + python_configure() { + ECONF_SOURCE="${S}" econf + } + python_foreach_impl run_in_build_dir python_configure +} + +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 + + find "${D}" -name '*.la' -delete || die +} diff --git a/dev-python/cangjie/files/cangjie-1.2-cython-0.22.patch b/dev-python/cangjie/files/cangjie-1.2-cython-0.22.patch new file mode 100644 index 000000000000..a681726d98ef --- /dev/null +++ b/dev-python/cangjie/files/cangjie-1.2-cython-0.22.patch @@ -0,0 +1,23 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -47,19 +47,19 @@ + + 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..90e757c48e2e --- /dev/null +++ b/dev-python/cangjie/metadata.xml @@ -0,0 +1,12 @@ +<?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> + <origin>gentoo-staging</origin> +</pkgmetadata> |
