blob: 1783b5209d7680a6562de4bba3eaf489708a5d71 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/qfsm/qfsm-0.53.0.ebuild,v 1.5 2013/03/02 21:06:58 hwoarang Exp $
EAPI=4
MY_P="${P}-Source"
inherit cmake-utils
DESCRIPTION="A graphical tool for designing finite state machines"
HOMEPAGE="http://qfsm.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="sys-libs/zlib
>=dev-qt/qtcore-4.7:4
>=dev-qt/qt3support-4.7:4
>=dev-qt/qtsvg-4.7:4
<media-gfx/graphviz-2.28.0"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
DOCS=( ChangeLog README TODO )
# TODO: fix doc building, probably some dependencies are missing
src_prepare()
{
# remove broken pre-generated Makefile
rm Makefile || die 'rm Makefile failed'
# fix desktop files
sed -i -e '/Encoding/d' \
-e 's/\.png//' \
desktop/qfsm.desktop || die 'sed on qfsm.desktop failed'
# fix doc path installation, bug #130641
sed -i -e "s:share/doc/qfsm:share/doc/${P}/html:g" CMakeLists.txt || die 'sed on CMakeLists.txt failed'
}
|