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: ChangeLog pcb-20080202.ebuild
Date: Mon, 04 Feb 2008 19:40:53
Message-Id: E1JM7BS-0005AM-4m@stork.gentoo.org
1 calchan 08/02/04 19:40:50
2
3 Modified: ChangeLog
4 Added: pcb-20080202.ebuild
5 Log:
6 Version bump. Bugs #41333, #201512 and #208581 fixed.
7 (Portage version: 2.1.4.1)
8
9 Revision Changes Path
10 1.36 sci-electronics/pcb/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/ChangeLog?rev=1.36&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/ChangeLog?rev=1.36&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/ChangeLog?r1=1.35&r2=1.36
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v
19 retrieving revision 1.35
20 retrieving revision 1.36
21 diff -u -r1.35 -r1.36
22 --- ChangeLog 16 Sep 2007 08:33:01 -0000 1.35
23 +++ ChangeLog 4 Feb 2008 19:40:49 -0000 1.36
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sci-electronics/pcb
26 -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.35 2007/09/16 08:33:01 calchan Exp $
28 +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.36 2008/02/04 19:40:49 calchan Exp $
30 +
31 +*pcb-20080202 (04 Feb 2008)
32 +
33 + 04 Feb 2008; Denis Dupeyron <calchan@g.o> +pcb-20080202.ebuild:
34 + Version bump. Bugs #41333, #201512 and #208581 fixed.
35
36 *pcb-20070912 (16 Sep 2007)
37
38
39
40
41 1.1 sci-electronics/pcb/pcb-20080202.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/pcb-20080202.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/pcb/pcb-20080202.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pcb-20080202.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/pcb-20080202.ebuild,v 1.1 2008/02/04 19:40:49 calchan Exp $
51
52 inherit eutils fdo-mime
53
54 DESCRIPTION="tool for the layout of printed circuit boards"
55 HOMEPAGE="http://pcb.sourceforge.net/"
56 SRC_URI="mirror://sourceforge/pcb/${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
61 IUSE="dbus gif gtk jpeg motif png tk xrender"
62
63 RDEPEND="dbus? ( sys-apps/dbus )
64 gif? ( media-libs/gd )
65 gtk? ( >=x11-libs/gtk+-2.4
66 x11-libs/pango )
67 jpeg? ( media-libs/gd )
68 motif? ( !gtk? ( >=x11-libs/openmotif-2.3
69 xrender? ( x11-libs/libXrender ) ) )
70 png? ( media-libs/gd )"
71 DEPEND="${RDEPEND}
72 dev-util/pkgconfig
73 x11-proto/xproto
74 tk? ( =dev-lang/tk-8* )"
75
76 pkg_setup() {
77 if use jpeg ; then
78 built_with_use media-libs/gd jpeg || die "You need to emerge media-libs/gd with USE=jpeg"
79 fi
80 if use png ; then
81 echo "Using png"
82 built_with_use media-libs/gd png || die "You need to emerge media-libs/gd with USE=png"
83 fi
84 }
85
86 src_unpack() {
87 unpack ${A}
88 cd "${S}"
89 sed -i 's/\(^START-INFO\)/INFO-DIR-SECTION Miscellaneous\n\1/' doc/pcb.info || die "sed failed"
90 }
91
92 src_compile() {
93 local EXPORTERS
94 if (use gif) || (use jpeg) || (use png) ; then
95 EXPORTERS="bom gerber png ps"
96 else
97 EXPORTERS="bom gerber ps"
98 fi
99 local GUI="--without-x --without-gui"
100 local XRENDER="--disable-xrender"
101 use gtk || use motif || ewarn "Building without GUI, make sure you know what you are doing."
102 use gtk && use motif && elog "Can't build for GTK+ and Motif at the same time. Defaulting to GTK+..."
103 if use motif ; then
104 GUI="--with-x --with-gui=lesstif"
105 use xrender && XRENDER="--enable-xrender"
106 fi
107 if use gtk ; then
108 GUI="--with-x --with-gui=gtk"
109 use xrender && elog "The Xrender option is only available with Motif."
110 fi
111 use tk || export WISH="/bin/true"
112 econf \
113 --disable-dependency-tracking \
114 --disable-rpath \
115 --disable-update-desktop-database \
116 --disable-update-mime-database \
117 $(use_enable dbus ) \
118 $(use_enable gif ) \
119 $(use_enable jpeg ) \
120 $(use_enable png ) \
121 --with-exporters="${EXPORTERS}" \
122 ${GUI} ${XRENDER} \
123 || die "Configuration failed"
124 emake || die "Compilation failed"
125 }
126
127 src_install() {
128 make DESTDIR="${D}" install || die "Installation failed"
129 dodoc AUTHORS ChangeLog NEWS README
130 }
131
132 pkg_postinst() {
133 fdo-mime_desktop_database_update
134 fdo-mime_mime_database_update
135 }
136
137
138
139
140 --
141 gentoo-commits@l.g.o mailing list