Gentoo Archives: gentoo-commits

From: "Denis Dupeyron (calchan)" <calchan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-electronics/pcb: metadata.xml ChangeLog pcb-20091103.ebuild
Date: Fri, 19 Feb 2010 23:38:03
Message-Id: E1NicQ3-00035t-IM@stork.gentoo.org
1 calchan 10/02/19 23:37:59
2
3 Modified: metadata.xml ChangeLog
4 Added: pcb-20091103.ebuild
5 Log:
6 Version bump, thanks to Stefan Salewski (bug #305947).
7 (Portage version: 2.1.7.17/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.5 sci-electronics/pcb/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/metadata.xml?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/metadata.xml?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/metadata.xml?r1=1.4&r2=1.5
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-electronics/pcb/metadata.xml,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- metadata.xml 6 Jun 2009 17:39:02 -0000 1.4
23 +++ metadata.xml 19 Feb 2010 23:37:58 -0000 1.5
24 @@ -11,9 +11,9 @@
25 <flag name='jpeg'>JPEG graphics export</flag>
26 <flag name='nelma'>NELMA file export</flag>
27 <flag name='png'>PNG graphics export</flag>
28 - <flag name='threads'>Enable (posix) threads for GTK GUI</flag>
29 <flag name='tk'>Build tcl/tk graphical QFP footprint generator</flag>
30 <flag name='xrender'>Translucent PCB display for Motif/Lesstif GUI</flag>
31 + <flag name='m4lib-png'>Enable creating png previews for the m4 library</flag>
32 + <flag name='toporouter'>Build toporouter</flag>
33 </use>
34 </pkgmetadata>
35 -
36
37
38
39 1.51 sci-electronics/pcb/ChangeLog
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/ChangeLog?rev=1.51&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/ChangeLog?rev=1.51&content-type=text/plain
43 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/ChangeLog?r1=1.50&r2=1.51
44
45 Index: ChangeLog
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v
48 retrieving revision 1.50
49 retrieving revision 1.51
50 diff -u -r1.50 -r1.51
51 --- ChangeLog 24 Oct 2009 19:47:00 -0000 1.50
52 +++ ChangeLog 19 Feb 2010 23:37:58 -0000 1.51
53 @@ -1,6 +1,12 @@
54 # ChangeLog for sci-electronics/pcb
55 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
56 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.50 2009/10/24 19:47:00 calchan Exp $
57 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
58 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.51 2010/02/19 23:37:58 calchan Exp $
59 +
60 +*pcb-20091103 (19 Feb 2010)
61 +
62 + 19 Feb 2010; Denis Dupeyron <calchan@g.o> +pcb-20091103.ebuild,
63 + metadata.xml:
64 + Version bump, thanks to Stefan Salewski (bug #305947).
65
66 24 Oct 2009; Denis Dupeyron <calchan@g.o> -pcb-20080202.ebuild,
67 -pcb-20081128.ebuild:
68
69
70
71 1.1 sci-electronics/pcb/pcb-20091103.ebuild
72
73 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/pcb-20091103.ebuild?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/pcb-20091103.ebuild?rev=1.1&content-type=text/plain
75
76 Index: pcb-20091103.ebuild
77 ===================================================================
78 # Copyright 1999-2010 Gentoo Foundation
79 # Distributed under the terms of the GNU General Public License v2
80 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/pcb-20091103.ebuild,v 1.1 2010/02/19 23:37:58 calchan Exp $
81
82 EAPI="2"
83
84 inherit fdo-mime gnome2-utils
85
86 DESCRIPTION="GPL Electronic Design Automation: Printed Circuit Board editor"
87 HOMEPAGE="http://www.gpleda.org/"
88 SRC_URI="mirror://sourceforge/pcb/files/pcb/${P}/${P}.tar.gz"
89
90 LICENSE="GPL-2"
91 SLOT="0"
92 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
93 IUSE="dbus doc gif gtk jpeg m4lib-png motif nelma nls png xrender tk toporouter"
94 # toporouter-output USE flag removed for pcb-20091103 (output was disabled always)
95 # debug USE flag removed for pcb-20091103 (many crashes, should be fixed for next release)
96
97 CDEPEND="gif? ( >=media-libs/gd-2.0.23 )
98 gtk? ( >=x11-libs/gtk+-2.4 x11-libs/pango
99 dbus? ( sys-apps/dbus ) )
100 jpeg? ( >=media-libs/gd-2.0.23[jpeg] )
101 motif? ( !gtk? (
102 >=x11-libs/openmotif-2.3
103 dbus? ( sys-apps/dbus )
104 xrender? ( >=x11-libs/libXrender-0.9 ) ) )
105 nelma? ( >=media-libs/gd-2.0.23 )
106 nls? ( virtual/libintl )
107 png? ( >=media-libs/gd-2.0.23[png] )
108 m4lib-png? ( >=media-libs/gd-2.0.23[png] )
109 tk? ( >=dev-lang/tk-8 )"
110 #toporouter-output? ( x11-libs/cairo )
111
112 DEPEND="${CDEPEND}
113 >=dev-util/intltool-0.35
114 dev-util/pkgconfig
115 nls? ( sys-devel/gettext )"
116
117 RDEPEND="${CDEPEND}
118 sci-electronics/electronics-menu"
119
120 pkg_setup() {
121 if use gtk && use motif; then
122 elog "Can only build for GTK+ or Motif/Lesstif GUI. GTK+ has priority."
123 fi
124 if !(use gtk || use motif); then
125 elog "Building without GUI, make sure you know what you are doing."
126 fi
127 if use dbus && !(use gtk || use motif); then
128 elog "dbus needs GTK or Motif/Lesstif GUI. Try USE=-dbus or USE=gtk or USE=motif."
129 fi
130 if (use gtk || (! use gtk && ! use motif)) && (use xrender); then
131 elog "The XRender extension is only usable with the Motif/Lesstif GUI."
132 fi
133 }
134
135 src_prepare() {
136 # fix bug in pcb-20091103, see http://archives.seul.org/geda/user/Nov-2009/msg00577.html
137 if use m4lib-png; then
138 rm -f lib/pcblib-newlib.stamp
139 fi
140 sed -i -e 's/example//' -e 's/tutorial//' -e 's/ win32//' Makefile.in || die "sed failed"
141 sed -i -e 's/DOC=doc/DOC="doc example tutorial"/' configure || die "sed failed"
142 sed -i -e 's/$(pkgdatadir)/$(docdir)/' {example,tutorial}/Makefile.in || die "sed failed"
143
144 # fix bug in pcb-20091103, should be fixed in next release
145 sed -i -e 's/free (&pd);/free (pd);/' src/hid/lesstif/main.c || die "sed failed"
146 }
147
148 src_configure() {
149 local myconf
150 if use gtk ; then
151 myconf="--with-gui=gtk $(use_enable dbus) --disable-xrender"
152 elif use motif ; then
153 myconf="--with-gui=lesstif $(use_enable dbus) $(use_enable xrender)"
154 else
155 myconf="--with-gui=batch --disable-xrender --disable-dbus"
156 fi
157
158 local exporters="bom gerber ps"
159 if (use png || use jpeg || use gif) ; then
160 exporters="${exporters} png"
161 fi
162 use nelma && exporters="${exporters} nelma"
163
164 use tk || export WISH="/bin/true"
165
166 econf \
167 ${myconf} \
168 $(use_enable doc) \
169 $(use_enable gif) \
170 $(use_enable jpeg) \
171 $(use_enable nls) \
172 $(use_enable png) \
173 $(use_enable m4lib-png) \
174 $(use_enable toporouter) \
175 --disable-toporouter-output \
176 --with-exporters="${exporters}" \
177 --disable-dependency-tracking \
178 --disable-rpath \
179 --disable-update-mime-database \
180 --disable-update-desktop-database \
181 --docdir="/usr/share/doc/${PF}"
182 }
183 # Removed for pcb-20091103 (should be fixed for next release):
184 # $(use_enable debug)
185 # $(use_enable toporouter-output) \
186
187 src_install() {
188 emake DESTDIR="${D}" install || die "install failed"
189 dodoc AUTHORS README NEWS ChangeLog
190 }
191
192 pkg_preinst() {
193 gnome2_icon_savelist
194 }
195
196 pkg_postinst() {
197 fdo-mime_desktop_database_update
198 fdo-mime_mime_database_update
199 gnome2_icon_cache_update
200 }
201
202 pkg_postrm() {
203 fdo-mime_desktop_database_update
204 fdo-mime_mime_database_update
205 gnome2_icon_cache_update
206 }