forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emfengine-0.8.ebuild
53 lines (42 loc) · 1019 Bytes
/
emfengine-0.8.ebuild
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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils qmake-utils
MY_PN="EmfEngine"
DESCRIPTION="Native vector graphics file format on Windows"
HOMEPAGE="http://soft.proindependent.com/emf/index.html"
SRC_URI="https://dev.gentoo.org/~jelc/distfiles/${MY_PN}-${PV}-opensource.zip"
SLOT="0"
LICENSE="GPL-3"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
RDEPEND="
dev-qt/qtcore:4
dev-qt/qtgui:4
media-libs/libemf
media-libs/libpng:0
"
DEPEND="${RDEPEND}
app-arch/unzip"
S="${WORKDIR}"/${MY_PN}
PATCHES=(
"${FILESDIR}/0.7-config.patch"
"${FILESDIR}/0.7-header.patch"
"${FILESDIR}"/${PV}-example.patch
)
src_prepare() {
edos2unix EmfEngine.pro
epatch ${PATCHES[@]}
sed \
-e "s:/usr/local/lib/libEMF.a:-lEMF:g" \
-e "s:/usr/local/include:${EPREFIX}/usr/include/:g" \
-i src/src.pro example/example.pro || die
}
src_configure() {
eqmake4
}
src_install() {
dolib.so libEmfEngine.so*
doheader src/*.h*
}