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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Feb 5 01:16:30 2014 UTC (6 years, 1 month ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Version bump. Cleanup old.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key )

1 mrueg 1.1 # Copyright 1999-2014 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.8.5b.ebuild,v 1.1 2014/01/05 19:02:26 mrueg Exp $
4    
5     EAPI=5
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="CC-BY-SA-3.0 GPL-2 GPL-3"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE=""
17    
18     RDEPEND="dev-qt/qtcore:4
19     dev-qt/qtgui:4
20     dev-qt/qtsvg:4
21     dev-qt/qtsql: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::' -e 's:-lminizip::' phoenix.pro || die
40    
41     edos2unix ${PN}.desktop
42    
43     # Somewhat evil but IMHO the best solution
44     for lang in $LINGUAS; do
45     lang=${lang/linguas_}
46     [ -f "translations/${PN}_${lang}.qm" ] && translations+=" translations/${PN}_${lang}.qm"
47     done
48     if [ -n "${translations}" ]; then
49     sed -i -e "s:\(translations.extra =\) .*:\1 cp -p ${translations} \$(INSTALL_ROOT)\$\$PKGDATADIR/translations\r:" phoenix.pro || die
50     else
51     sed -i -e "s:translations.extra = .*:\r:" phoenix.pro || die
52     fi
53     }
54    
55     src_configure() {
56     eqmake4 DEFINES=QUAZIP_INSTALLED phoenix.pro
57     }

  ViewVC Help
Powered by ViewVC 1.1.20