sci-electronics/fritzing: Install parts library with 0.9.2b #548624
authorChris Mayo <aklhfex@gmail.com>
Tue, 28 Jun 2016 19:20:51 +0000 (20:20 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 1 Jul 2016 20:00:55 +0000 (22:00 +0200)
Gentoo-Bug: https://bugs.gentoo.org/548624

- Install readme.md
- Fix missing Intel bin icon
https://github.com/fritzing/fritzing-parts/commit/716560e9

- Use Bash extended test command
- Add slot-operator to boost
- Update to EAPI 6
- Declare lang
- Replace LINGUAS with L10N
Suggested-by: David Seifert <soap@gentoo.org>
- Update LICENSE
- Add missing '|| die's
- Remove unnecessary edos2unix
https://github.com/gentoo/gentoo/pull/1744
Suggested-by: Gokturk Yuksek <gokturk@gentoo.org>
- Ensure quazip built with Qt5
Gentoo-Bug: https://bugs.gentoo.org/562490
Suggested-by: Carl Michal <michal@physics.ubc.ca>
Closes: https://github.com/gentoo/gentoo/pull/1744

Signed-off-by: David Seifert <soap@gentoo.org>
sci-electronics/fritzing/Manifest
sci-electronics/fritzing/fritzing-0.9.2b-r1.ebuild [new file with mode: 0644]

index a37247aeea3630fd9ba862ab6764508f8a1786d4..f77b27bc822473e6a98e809e0dba5e6a4337e69f 100644 (file)
@@ -1,2 +1,3 @@
 DIST fritzing-0.8.7b.source.tar.bz2 20007914 SHA256 7d74418863a9e3b3a4eed171b8023ddea426125f08dc83ed4c55a05d39948eb4 SHA512 f45b2d4c62227ae7bf10a481775542ce5eba1ed3d9ea45e16b60517113e2af2762a8cf1155240c7242dc79886b693319e335891fa633aa41e4699ab916a7f9e9 WHIRLPOOL 385979f6edbcb5816e5c5e0872cf74e1bdd54885af4779fdbfd29e60ed8b3349265375a74968c3bae2827e5b28897b05f3f7f36a48f8f709cc0e85a2987ded16
 DIST fritzing-0.9.2b.tar.gz 10913985 SHA256 6e9dbb94a4ca5e23effc2056f471c78913b9efa4c154ced94de8f72bfe29735f SHA512 a8b6d99c4e08f86d7a7cc6574053e8b1af565a3919cb2fc406e67972052b3fa3ded002be43e4fd0345189e4e1f3cecb3851cd14711efd83ccbcbef4cbd135c58 WHIRLPOOL 70a3e310ee8f1e53e63ca7a56b9f93808e5576b8ce0995cca470a787840e5cebad7e2b357148773610971dc2db777d581a9e62bbf94fedfbd104960bab9436f6
+DIST fritzing-parts-0.9.2b.tar.gz 15924206 SHA256 5f5f5e26bfc33911f57b1620912fdf0a834c50d196b930ef70e784f3a447194b SHA512 055c866532c4a09a7de3315fffc485c6be5a576e998fca7b001faae513da86d451ca8ed39583108ec54472ab0e1d8b953c192efcf93e5c19139f0fa83484a549 WHIRLPOOL 214bd62863d121cf6944a1bda7b0da735bc1971b93a9f439cc504b3e3df37599da110cf30073d982b63ecd1557f2cbd218b0cdc5818b69cea5f32c8f3a8051f5
diff --git a/sci-electronics/fritzing/fritzing-0.9.2b-r1.ebuild b/sci-electronics/fritzing/fritzing-0.9.2b-r1.ebuild
new file mode 100644 (file)
index 0000000..83fd5c3
--- /dev/null
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PARTS_P="${PN}-parts-${PV}"
+
+inherit qmake-utils
+
+DESCRIPTION="Electronic Design Automation"
+HOMEPAGE="http://fritzing.org/"
+SRC_URI="https://github.com/fritzing/fritzing-app/archive/${PV}.tar.gz -> ${P}.tar.gz
+       https://github.com/fritzing/fritzing-parts/archive/${PV}.tar.gz -> ${PARTS_P}.tar.gz"
+
+LICENSE="CC-BY-SA-3.0 GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-qt/qtconcurrent:5
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtprintsupport:5
+       dev-qt/qtserialport:5
+       dev-qt/qtsql:5[sqlite]
+       dev-qt/qtsvg:5
+       dev-qt/qtwidgets:5
+       dev-qt/qtxml:5
+       dev-libs/quazip[qt5]"
+DEPEND="${RDEPEND}
+       >=dev-libs/boost-1.40:="
+
+S="${WORKDIR}/${PN}-app-${PV}"
+
+DOCS="readme.md"
+
+src_prepare() {
+       local lang translations=
+
+       # Get a rid of the bundled libs
+       # Bug 412555 and
+       # https://code.google.com/p/fritzing/issues/detail?id=1898
+       rm -rf src/lib/quazip/ pri/quazip.pri src/lib/boost* || die
+
+       # Fritzing doesn't need zlib
+       sed -i -e 's:LIBS += -lz::' -e 's:-lminizip::' phoenix.pro || die
+
+       # Somewhat evil but IMHO the best solution
+       for lang in $L10N; do
+               lang=${lang/linguas_}
+               [[ -f "translations/${PN}_${lang}.qm" ]] && translations+=" translations/${PN}_${lang}.qm"
+       done
+       if [[ -n "${translations}" ]]; then
+               sed -i -e "s:\(translations.extra =\) .*:\1     cp -p ${translations} \$(INSTALL_ROOT)\$\$PKGDATADIR/translations\r:" phoenix.pro || die
+       else
+               sed -i -e "s:translations.extra = .*:\r:" phoenix.pro || die
+       fi
+
+       # Fix missing Intel bin icon
+       # https://github.com/fritzing/fritzing-parts/commit/716560e9
+       sed -i -e 's:Intel.png:intel.png:' bins/more/intel.fzb || die
+
+       default
+}
+
+src_configure() {
+       eqmake5 DEFINES=QUAZIP_INSTALLED phoenix.pro
+}
+
+src_install() {
+       INSTALL_ROOT="${D}" default
+
+       insinto /usr/share/fritzing/parts
+       doins -r "${WORKDIR}/${PARTS_P}"/*
+}