blob: 702a4e0b282c435a0ba78fa53e4f886f2b915f70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit eutils qt4-r2 git-2 cmake-utils
MY_P="${PN}_${PV}"
DESCRIPTION="A QT4-based editor for the TikZ language"
HOMEPAGE="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language"
# SRC_URI="http://www.hackenberger.at/${PN}/${MY_P}.tar.gz"
EGIT_REPO_URI="https://github.com/jfmcarreira/ktikz.git"
EGIT_COMMIT="${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="kde debug"
#DEPEND="x11-libs/qt-gui:4
DEPEND="dev-qt/qtgui:4
dev-qt/qthelp:4
app-text/poppler[qt4]
virtual/latex-base
dev-texlive/texlive-latexextra
dev-tex/pgf"
RDEPEND="${DEPEND}"
DOCS="Changelog TODO"
S="${WORKDIR}/${PN}"
src_unpack() {
git-2_src_unpack
# libs are not equal ldflags, make that sure:
sed -i -e 's|QMAKE_LFLAGS|LIBS|' macros.pri || die "sed failed"
# our lrelease is not versioned
sed -i -e 's|lrelease-qt4|lrelease|' conf.pri || die "sed failed"
}
src_prepare() {
# libs are not equal ldflags, make that sure:
sed -i -e 's|QMAKE_LFLAGS|LIBS|' macros.pri || die "sed failed"
# our lrelease is not versioned
sed -i -e 's|lrelease-qt4|lrelease|' conf.pri || die "sed failed"
}
src_configure() {
if use kde; then
local mycmakeargs=( -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` )
cmake-utils_src_configure
else
KDECONFIG="CONFIG-=usekde"
eqmake4 qtikz.pro PREFIX="${D}/usr" "CONFIG+=nostrip" "$KDECONFIG"
fi
}
|