diff options
author | Yury Martynov <email@linxon.ru> | 2020-04-10 12:51:17 +0300 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-05-23 19:59:10 +0200 |
commit | 1fe26fad623252aae3888e2ff908c7922ff5cd01 (patch) | |
tree | b695eb619a431efcd642a6f97cbee40d3bb72f96 /app-text/cherrytree/cherrytree-9999.ebuild | |
parent | dev-ruby/image_processing: add 1.11.0 (diff) | |
download | gentoo-1fe26fad623252aae3888e2ff908c7922ff5cd01.tar.gz gentoo-1fe26fad623252aae3888e2ff908c7922ff5cd01.tar.bz2 gentoo-1fe26fad623252aae3888e2ff908c7922ff5cd01.zip |
app-text/cherrytree: bump to 0.99.0_p20200523 and drop 0.39.2 (C++ version)
Closes: https://bugs.gentoo.org/716874
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Yury Martynov <email@linxon.ru>
Closes: https://github.com/gentoo/gentoo/pull/15285
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-text/cherrytree/cherrytree-9999.ebuild')
-rw-r--r-- | app-text/cherrytree/cherrytree-9999.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/app-text/cherrytree/cherrytree-9999.ebuild b/app-text/cherrytree/cherrytree-9999.ebuild new file mode 100644 index 000000000000..9599c94f4964 --- /dev/null +++ b/app-text/cherrytree/cherrytree-9999.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..8} ) + +inherit cmake python-any-r1 xdg-utils + +DESCRIPTION="A hierarchical note taking application (C++ version)" +HOMEPAGE="https://www.giuspen.com/cherrytree https://github.com/giuspen/cherrytree" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/giuspen/cherrytree" + S="${WORKDIR}/${P}/future" +else + COMMIT="074a09ce3c1130ec60f5f5a3b8be958337b6d5ab" # 20200523 + SRC_URI="https://github.com/giuspen/cherrytree/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-${COMMIT}/future" +fi + +# GPL-3 — future/src/ct (CherryTree) +# LGPL-2.1 — future/src/7za (7zip) +# MIT — future/src/fmt (libfmt) +LICENSE="GPL-3 LGPL-2.1 MIT" +SLOT="0" +IUSE="nls test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + app-text/gspell:= + dev-libs/glib:2 + >=dev-cpp/glibmm-2.64.2:2 + dev-cpp/gtkmm:3.0 + dev-cpp/gtksourceviewmm:3.0 + dev-libs/libxml2:2 + dev-cpp/libxmlpp:2.6 + dev-cpp/pangomm + dev-db/sqlite:3" +DEPEND="${RDEPEND} + $(python_gen_any_dep 'dev-python/lxml[${PYTHON_USEDEP}]')" +BDEPEND="${PYTHON_DEPS} + virtual/pkgconfig + nls? ( + dev-util/intltool + sys-devel/gettext + ) + test? ( dev-util/cpputest )" + +pkg_setup() { + python-any-r1_pkg_setup +} + +python_check_deps() { + has_version "dev-python/lxml[${PYTHON_USEDEP}]" +} + +src_prepare() { + # disable compress man pages + sed -i -e \ + '/install(FILES/s|${MANFILE_FULL_GZ}|${CMAKE_SOURCE_DIR}/data/cherrytree.1|' \ + CMakeLists.txt || die + + if [[ ${PV} != *9999 ]]; then + sed -i \ + -e "/^set(CT_VERSION/s|\"\(.*\)\"|\"${PV}\"|" \ + CMakeLists.txt || die + fi + + python_fix_shebang . + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DPYTHON_EXEC="${PYTHON}" + -DUSE_NLS=$(usex nls) + -DBUILD_TESTING=$(usex test) + ) + + cmake_src_configure +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +} |