/[gentoo-x86]/sci-electronics/fritzing/fritzing-0.9.2b.ebuild
Gentoo

Contents of /sci-electronics/fritzing/fritzing-0.9.2b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Apr 22 17:37:39 2015 UTC (4 years, 10 months ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +8 -6 lines
Add missing dependencies wrt bug #547352.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/fritzing/fritzing-0.9.2b.ebuild,v 1.1 2015/04/21 00:43:37 mrueg Exp $
4
5 EAPI=5
6
7 inherit qmake-utils
8
9 DESCRIPTION="Electronic Design Automation"
10 HOMEPAGE="http://fritzing.org/"
11 SRC_URI="https://github.com/fritzing/fritzing-app/archive/${PV}.tar.gz -> ${P}.tar.gz"
12
13 LICENSE="CC-BY-SA-3.0 GPL-2 GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 RDEPEND="dev-qt/qtconcurrent:5
19 dev-qt/qtcore:5
20 dev-qt/qtgui:5
21 dev-qt/qtnetwork:5
22 dev-qt/qtprintsupport:5
23 dev-qt/qtserialport:5
24 dev-qt/qtsql:5[sqlite]
25 dev-qt/qtsvg:5
26 dev-qt/qtwidgets:5
27 dev-qt/qtxml:5
28 dev-libs/quazip"
29 DEPEND="${RDEPEND}
30 >=dev-libs/boost-1.40"
31
32 S="${WORKDIR}/${PN}-app-${PV}"
33
34 src_prepare() {
35 local translations=
36
37 # Get a rid of the bundled libs
38 # Bug 412555 and
39 # https://code.google.com/p/fritzing/issues/detail?id=1898
40 rm -rf src/lib/quazip/ pri/quazip.pri src/lib/boost*
41
42 # Fritzing doesn't need zlib
43 sed -i -e 's:LIBS += -lz::' -e 's:-lminizip::' phoenix.pro || die
44
45 edos2unix ${PN}.desktop
46
47 # Somewhat evil but IMHO the best solution
48 for lang in $LINGUAS; do
49 lang=${lang/linguas_}
50 [ -f "translations/${PN}_${lang}.qm" ] && translations+=" translations/${PN}_${lang}.qm"
51 done
52 if [ -n "${translations}" ]; then
53 sed -i -e "s:\(translations.extra =\) .*:\1 cp -p ${translations} \$(INSTALL_ROOT)\$\$PKGDATADIR/translations\r:" phoenix.pro || die
54 else
55 sed -i -e "s:translations.extra = .*:\r:" phoenix.pro || die
56 fi
57 }
58
59 src_configure() {
60 eqmake5 DEFINES=QUAZIP_INSTALLED PREFIX="${D}"/usr phoenix.pro
61 }

  ViewVC Help
Powered by ViewVC 1.1.20