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

Contents of /sci-electronics/fritzing/fritzing-0.7.4b-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Apr 18 23:16:57 2012 UTC (23 months, 4 weeks ago) by idl0r
Branch: MAIN
Do not bundle boot and quazip. Respect LINGUAS, install a valid .desktop file, bug 412555.

(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

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.ebuild,v 1.1 2012/04/18 17:26:18 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="sys-libs/zlib
19 x11-libs/qt-core:4
20 x11-libs/qt-gui:4
21 x11-libs/qt-svg:4
22 x11-libs/qt-sql:4[sqlite]
23 dev-libs/quazip"
24 DEPEND="${RDEPEND}
25 >=dev-libs/boost-1.40"
26
27 S="${WORKDIR}/${P}.source"
28
29 src_prepare() {
30 local translations=
31
32 qt4-r2_src_prepare
33
34 # Get a rid of the bundled libs
35 # Bug 412555 and
36 # https://code.google.com/p/fritzing/issues/detail?id=1898
37 rm -rf src/libs/quazip pri/quazip.pri src/libs/boost*
38
39 epatch "${FILESDIR}/no-bundled-quazip.patch"
40 epatch "${FILESDIR}/no-bundled-boost.patch"
41
42 edos2unix ${PN}.desktop
43
44 # Somewhat evil but IMHO the best solution
45 for lang in $LINGUAS; do
46 lang=${lang/linguas_}
47 [ -f "translations/${PN}_${lang}.qm" ] && translations+=" translations/${PN}_${lang}.qm"
48 done
49 if [ -n "${translations}" ]; then
50 sed -i -e "s:\(translations.extra =\) .*:\1 cp -p ${translations} \$(INSTALL_ROOT)\$\$PKGDATADIR/translations\r:" phoenix.pro || die
51 else
52 sed -i -e "s:translations.extra = .*:\r:" phoenix.pro || die
53 fi
54 }

  ViewVC Help
Powered by ViewVC 1.1.20