summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Carreira <jfmcarreira@gmail.com>2018-10-11 23:24:28 +0100
committerJoao Carreira <jfmcarreira@gmail.com>2018-10-11 23:24:28 +0100
commit2e6ff3c05be0ee0c1e7a44b60e4954ff271080a4 (patch)
tree7088aef465b030407c172a006317aac6bac0a003
parentapp-misc/cartao-cidadao-app: update ebuild (diff)
downloadcarreira-2e6ff3c05be0ee0c1e7a44b60e4954ff271080a4.tar.gz
carreira-2e6ff3c05be0ee0c1e7a44b60e4954ff271080a4.tar.bz2
carreira-2e6ff3c05be0ee0c1e7a44b60e4954ff271080a4.zip
media-gfx/ktikz: version bump 0.12
Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r--media-gfx/ktikz/Manifest1
-rw-r--r--media-gfx/ktikz/ktikz-0.12.ebuild72
-rw-r--r--media-gfx/ktikz/ktikz-9999.ebuild11
-rw-r--r--media-gfx/ktikz/metadata.xml2
4 files changed, 81 insertions, 5 deletions
diff --git a/media-gfx/ktikz/Manifest b/media-gfx/ktikz/Manifest
new file mode 100644
index 0000000..38bbf40
--- /dev/null
+++ b/media-gfx/ktikz/Manifest
@@ -0,0 +1 @@
+DIST 0.12.tar.gz 2039771 SHA256 ef15fe70f4e057eab74ed738886f8e4a53d5b1bcdf1ee329930bf06e22f56e9d SHA512 22e1022d4c203b714a7bceae0e5387549ef7c563965c46b36cc522212ceb2c61ad30ad34e6e1309c39f735e25603d940fae09b9ba59ab6d91f4b231dc877648a WHIRLPOOL 45f37f2fcb6d5df2319a351c584cb40245fdd63ea77395c68756412e71d558944acc2c04134a5afc321c9716305947f5a5b2e7861f261410e10957db28796011
diff --git a/media-gfx/ktikz/ktikz-0.12.ebuild b/media-gfx/ktikz/ktikz-0.12.ebuild
new file mode 100644
index 0000000..585f973
--- /dev/null
+++ b/media-gfx/ktikz/ktikz-0.12.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils qmake-utils xdg
+
+DESCRIPTION="A QT5-based editor for the TikZ language"
+HOMEPAGE="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language"
+SRC_URI="https://github.com/fhackenberger/${PN}/archive/${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="5"
+KEYWORDS="~amd64"
+
+IUSE="kde +doc -debug"
+
+DEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtprintsupport:5
+ app-text/poppler[qt5]
+ doc? ( dev-qt/qthelp:5 )
+ kde? (
+ kde-frameworks/kxmlgui
+ kde-frameworks/ktexteditor
+ kde-frameworks/kparts
+ kde-frameworks/kiconthemes
+ )
+ virtual/latex-base
+ dev-texlive/texlive-latexextra
+ dev-tex/pgf
+"
+RDEPEND="${DEPEND}
+ !media-gfx/ktikz:4
+"
+
+DOCS="Changelog TODO"
+
+src_prepare() {
+ # correct the qcollectiongenerator binary
+ sed -ie 's%#QCOLLECTIONGENERATORCOMMAND = qcollectiongenerator%QCOLLECTIONGENERATORCOMMAND = /usr/lib/qt5/bin/qcollectiongenerator%g' qmake/qtikzconfig.pri || die
+ eapply_user
+}
+
+src_configure() {
+ if use kde; then
+ cmake-utils_src_configure
+ else
+ KDECONFIG="CONFIG-=usekde"
+ eqmake5 qtikz.pro "CONFIG+=nostrip" "$KDECONFIG"
+ fi
+}
+
+src_compile() {
+ if use !doc; then
+ comment_add_subdirectory doc
+ fi
+ if use kde; then
+ cmake-utils_src_compile
+ else
+ emake
+ fi
+}
+
+src_install() {
+ if use kde; then
+ cmake-utils_src_install
+ else
+ emake INSTALL_ROOT="${D}" install
+ fi
+}
diff --git a/media-gfx/ktikz/ktikz-9999.ebuild b/media-gfx/ktikz/ktikz-9999.ebuild
index feae9f3..60ad228 100644
--- a/media-gfx/ktikz/ktikz-9999.ebuild
+++ b/media-gfx/ktikz/ktikz-9999.ebuild
@@ -1,18 +1,18 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit eutils cmake-utils qmake-utils git-r3
+inherit eutils cmake-utils qmake-utils git-r3 xdg
DESCRIPTION="A QT5-based editor for the TikZ language"
HOMEPAGE="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language"
LICENSE="GPL-2"
SLOT="5"
KEYWORDS=""
-IUSE="kde +doc -debug"
+IUSE="kde -ktexteditor +doc -debug"
-EGIT_REPO_URI="https://github.com/fhackenberger/ktikz.git"
+EGIT_REPO_URI="https://github.com/jfmcarreira/ktikz.git"
DEPEND="
dev-qt/qtcore:5
@@ -45,6 +45,9 @@ src_prepare() {
src_configure() {
if use kde; then
+ local mycmakeargs=(
+ -DKTIKZ_USE_KTEXTEDITOR=$(usex ktexteditor)
+ )
cmake-utils_src_configure
else
KDECONFIG="CONFIG-=usekde"
diff --git a/media-gfx/ktikz/metadata.xml b/media-gfx/ktikz/metadata.xml
index 30b9839..fb961c9 100644
--- a/media-gfx/ktikz/metadata.xml
+++ b/media-gfx/ktikz/metadata.xml
@@ -6,7 +6,7 @@
<name>Joao Carreira</name>
</maintainer>
<use>
- <flag name="kde">Using KDE libs to generate the graphic interface</flag>
+ <flag name="ktexteditor">Using KTextEditor framework</flag>
</use>
</pkgmetadata>