diff options
author | 2018-02-19 21:13:11 +0100 | |
---|---|---|
committer | 2018-02-22 11:47:38 +0100 | |
commit | f856f8484a88af842db2cfa4e31df1e64855067f (patch) | |
tree | 1760c6082dcaf8511ef968017b60e8c894d6225a /app-editors/juffed/juffed-0.10_p20160323-r1.ebuild | |
parent | app-editors/focuswriter: Prepare for qtsingleapplication dropping qt5 (diff) | |
download | gentoo-f856f8484a88af842db2cfa4e31df1e64855067f.tar.gz gentoo-f856f8484a88af842db2cfa4e31df1e64855067f.tar.bz2 gentoo-f856f8484a88af842db2cfa4e31df1e64855067f.zip |
app-editors/juffed: Prepare for qtsingleapplication dropping qt5
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-editors/juffed/juffed-0.10_p20160323-r1.ebuild')
-rw-r--r-- | app-editors/juffed/juffed-0.10_p20160323-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-editors/juffed/juffed-0.10_p20160323-r1.ebuild b/app-editors/juffed/juffed-0.10_p20160323-r1.ebuild new file mode 100644 index 00000000000..e8118beedc9 --- /dev/null +++ b/app-editors/juffed/juffed-0.10_p20160323-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +COMMIT=5ba17f90ec173e773470bc80ea26bca9a3f093fd +inherit cmake-utils vcs-snapshot xdg-utils + +DESCRIPTION="QScintilla-based tabbed text editor with syntax highlighting" +HOMEPAGE="http://juffed.com/en/" +SRC_URI="https://github.com/Mezomish/${PN}/tarball/${COMMIT} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + app-i18n/enca + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsingleapplication[qt5(+),X] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + >=x11-libs/qscintilla-2.9.4:=[qt5(+)] +" +DEPEND="${RDEPEND}" + +DOCS=( ChangeLog README ) + +PATCHES=( "${FILESDIR}/${P}-qscintilla-2.10.patch" ) + +src_prepare() { + # Upstream version outdated/dysfunctional and CRLF terminated + cp "${FILESDIR}"/FindQtSingleApplication.cmake cmake/ || die + + cmake-utils_src_prepare + + sed -i -e '/set(CMAKE_CXX_FLAGS/d' CMakeLists.txt || die +} + +src_configure() { + local libdir=$(get_libdir) + local mycmakeargs=( + -DUSE_ENCA=ON + -DUSE_QT5=ON + -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON + -DLIB_SUFFIX=${libdir/lib/} + ) + cmake-utils_src_configure +} + +pkg_postinst() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} |