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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Oct 25 18:57:42 2012 UTC (20 months, 2 weeks ago) by idl0r
Branch: MAIN
Version bump, bug 432854

(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key B427ABC8)

1 # Copyright 1999-2012 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.7.4b-r1.ebuild,v 1.1 2012/04/18 23:16:57 idl0r Exp $
4
5 EAPI=4
6
7 inherit eutils qt4-r2
8
9 DESCRIPTION="Electronic Design Automation"
10 HOMEPAGE="http://fritzing.org/"
11 SRC_URI="http://fritzing.org/download/${PV}/source-tarball/${P}.source.tar.bz2"
12
13 LICENSE="CCPL-Attribution-ShareAlike-3.0 GPL-2 GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 RDEPEND="x11-libs/qt-core:4
19 x11-libs/qt-gui:4
20 x11-libs/qt-svg:4
21 x11-libs/qt-sql:4[sqlite]
22 dev-libs/quazip"
23 DEPEND="${RDEPEND}
24 >=dev-libs/boost-1.40"
25
26 S="${WORKDIR}/${P}.source"
27
28 src_prepare() {
29 local translations=
30
31 qt4-r2_src_prepare
32
33 # Get a rid of the bundled libs
34 # Bug 412555 and
35 # https://code.google.com/p/fritzing/issues/detail?id=1898
36 rm -rf src/lib/quazip pri/quazip.pri src/lib/boost*
37
38 # Fritzing doesn't need zlib
39 sed -i -e 's:LIBS += -lz::' phoenix.pro || die
40
41 epatch "${FILESDIR}/${P}-no_bundled_quazip.patch"
42 epatch "${FILESDIR}/no-bundled-boost.patch"
43
44 edos2unix ${PN}.desktop
45
46 # Somewhat evil but IMHO the best solution
47 for lang in $LINGUAS; do
48 lang=${lang/linguas_}
49 [ -f "translations/${PN}_${lang}.qm" ] && translations+=" translations/${PN}_${lang}.qm"
50 done
51 if [ -n "${translations}" ]; then
52 sed -i -e "s:\(translations.extra =\) .*:\1 cp -p ${translations} \$(INSTALL_ROOT)\$\$PKGDATADIR/translations\r:" phoenix.pro || die
53 else
54 sed -i -e "s:translations.extra = .*:\r:" phoenix.pro || die
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20