1 |
commit: 53c843126785b377f6cbca9d2ea03001f9153dbd |
2 |
Author: Chris Mayo <aklhfex <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 28 19:20:51 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 1 20:00:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53c84312 |
7 |
|
8 |
sci-electronics/fritzing: Install parts library with 0.9.2b #548624 |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/548624 |
11 |
|
12 |
- Install readme.md |
13 |
- Fix missing Intel bin icon |
14 |
https://github.com/fritzing/fritzing-parts/commit/716560e9 |
15 |
|
16 |
- Use Bash extended test command |
17 |
- Add slot-operator to boost |
18 |
- Update to EAPI 6 |
19 |
- Declare lang |
20 |
- Replace LINGUAS with L10N |
21 |
Suggested-by: David Seifert <soap <AT> gentoo.org> |
22 |
|
23 |
- Update LICENSE |
24 |
- Add missing '|| die's |
25 |
- Remove unnecessary edos2unix |
26 |
https://github.com/gentoo/gentoo/pull/1744 |
27 |
Suggested-by: Gokturk Yuksek <gokturk <AT> gentoo.org> |
28 |
|
29 |
- Ensure quazip built with Qt5 |
30 |
Gentoo-Bug: https://bugs.gentoo.org/562490 |
31 |
Suggested-by: Carl Michal <michal <AT> physics.ubc.ca> |
32 |
Closes: https://github.com/gentoo/gentoo/pull/1744 |
33 |
|
34 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
35 |
|
36 |
sci-electronics/fritzing/Manifest | 1 + |
37 |
sci-electronics/fritzing/fritzing-0.9.2b-r1.ebuild | 77 ++++++++++++++++++++++ |
38 |
2 files changed, 78 insertions(+) |
39 |
|
40 |
diff --git a/sci-electronics/fritzing/Manifest b/sci-electronics/fritzing/Manifest |
41 |
index a37247a..f77b27b 100644 |
42 |
--- a/sci-electronics/fritzing/Manifest |
43 |
+++ b/sci-electronics/fritzing/Manifest |
44 |
@@ -1,2 +1,3 @@ |
45 |
DIST fritzing-0.8.7b.source.tar.bz2 20007914 SHA256 7d74418863a9e3b3a4eed171b8023ddea426125f08dc83ed4c55a05d39948eb4 SHA512 f45b2d4c62227ae7bf10a481775542ce5eba1ed3d9ea45e16b60517113e2af2762a8cf1155240c7242dc79886b693319e335891fa633aa41e4699ab916a7f9e9 WHIRLPOOL 385979f6edbcb5816e5c5e0872cf74e1bdd54885af4779fdbfd29e60ed8b3349265375a74968c3bae2827e5b28897b05f3f7f36a48f8f709cc0e85a2987ded16 |
46 |
DIST fritzing-0.9.2b.tar.gz 10913985 SHA256 6e9dbb94a4ca5e23effc2056f471c78913b9efa4c154ced94de8f72bfe29735f SHA512 a8b6d99c4e08f86d7a7cc6574053e8b1af565a3919cb2fc406e67972052b3fa3ded002be43e4fd0345189e4e1f3cecb3851cd14711efd83ccbcbef4cbd135c58 WHIRLPOOL 70a3e310ee8f1e53e63ca7a56b9f93808e5576b8ce0995cca470a787840e5cebad7e2b357148773610971dc2db777d581a9e62bbf94fedfbd104960bab9436f6 |
47 |
+DIST fritzing-parts-0.9.2b.tar.gz 15924206 SHA256 5f5f5e26bfc33911f57b1620912fdf0a834c50d196b930ef70e784f3a447194b SHA512 055c866532c4a09a7de3315fffc485c6be5a576e998fca7b001faae513da86d451ca8ed39583108ec54472ab0e1d8b953c192efcf93e5c19139f0fa83484a549 WHIRLPOOL 214bd62863d121cf6944a1bda7b0da735bc1971b93a9f439cc504b3e3df37599da110cf30073d982b63ecd1557f2cbd218b0cdc5818b69cea5f32c8f3a8051f5 |
48 |
|
49 |
diff --git a/sci-electronics/fritzing/fritzing-0.9.2b-r1.ebuild b/sci-electronics/fritzing/fritzing-0.9.2b-r1.ebuild |
50 |
new file mode 100644 |
51 |
index 0000000..83fd5c3 |
52 |
--- /dev/null |
53 |
+++ b/sci-electronics/fritzing/fritzing-0.9.2b-r1.ebuild |
54 |
@@ -0,0 +1,77 @@ |
55 |
+# Copyright 1999-2016 Gentoo Foundation |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+# $Id$ |
58 |
+ |
59 |
+EAPI=6 |
60 |
+ |
61 |
+PARTS_P="${PN}-parts-${PV}" |
62 |
+ |
63 |
+inherit qmake-utils |
64 |
+ |
65 |
+DESCRIPTION="Electronic Design Automation" |
66 |
+HOMEPAGE="http://fritzing.org/" |
67 |
+SRC_URI="https://github.com/fritzing/fritzing-app/archive/${PV}.tar.gz -> ${P}.tar.gz |
68 |
+ https://github.com/fritzing/fritzing-parts/archive/${PV}.tar.gz -> ${PARTS_P}.tar.gz" |
69 |
+ |
70 |
+LICENSE="CC-BY-SA-3.0 GPL-3+" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~x86" |
73 |
+IUSE="" |
74 |
+ |
75 |
+RDEPEND="dev-qt/qtconcurrent:5 |
76 |
+ dev-qt/qtcore:5 |
77 |
+ dev-qt/qtgui:5 |
78 |
+ dev-qt/qtnetwork:5 |
79 |
+ dev-qt/qtprintsupport:5 |
80 |
+ dev-qt/qtserialport:5 |
81 |
+ dev-qt/qtsql:5[sqlite] |
82 |
+ dev-qt/qtsvg:5 |
83 |
+ dev-qt/qtwidgets:5 |
84 |
+ dev-qt/qtxml:5 |
85 |
+ dev-libs/quazip[qt5]" |
86 |
+DEPEND="${RDEPEND} |
87 |
+ >=dev-libs/boost-1.40:=" |
88 |
+ |
89 |
+S="${WORKDIR}/${PN}-app-${PV}" |
90 |
+ |
91 |
+DOCS="readme.md" |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ local lang translations= |
95 |
+ |
96 |
+ # Get a rid of the bundled libs |
97 |
+ # Bug 412555 and |
98 |
+ # https://code.google.com/p/fritzing/issues/detail?id=1898 |
99 |
+ rm -rf src/lib/quazip/ pri/quazip.pri src/lib/boost* || die |
100 |
+ |
101 |
+ # Fritzing doesn't need zlib |
102 |
+ sed -i -e 's:LIBS += -lz::' -e 's:-lminizip::' phoenix.pro || die |
103 |
+ |
104 |
+ # Somewhat evil but IMHO the best solution |
105 |
+ for lang in $L10N; do |
106 |
+ lang=${lang/linguas_} |
107 |
+ [[ -f "translations/${PN}_${lang}.qm" ]] && translations+=" translations/${PN}_${lang}.qm" |
108 |
+ done |
109 |
+ if [[ -n "${translations}" ]]; then |
110 |
+ sed -i -e "s:\(translations.extra =\) .*:\1 cp -p ${translations} \$(INSTALL_ROOT)\$\$PKGDATADIR/translations\r:" phoenix.pro || die |
111 |
+ else |
112 |
+ sed -i -e "s:translations.extra = .*:\r:" phoenix.pro || die |
113 |
+ fi |
114 |
+ |
115 |
+ # Fix missing Intel bin icon |
116 |
+ # https://github.com/fritzing/fritzing-parts/commit/716560e9 |
117 |
+ sed -i -e 's:Intel.png:intel.png:' bins/more/intel.fzb || die |
118 |
+ |
119 |
+ default |
120 |
+} |
121 |
+ |
122 |
+src_configure() { |
123 |
+ eqmake5 DEFINES=QUAZIP_INSTALLED phoenix.pro |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ INSTALL_ROOT="${D}" default |
128 |
+ |
129 |
+ insinto /usr/share/fritzing/parts |
130 |
+ doins -r "${WORKDIR}/${PARTS_P}"/* |
131 |
+} |