Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-electronics/klayout: ChangeLog klayout-0.21.11.ebuild
Date: Mon, 25 Jul 2011 22:05:44
Message-Id: 20110725220522.153F42004B@flycatcher.gentoo.org
1 dilfridge 11/07/25 22:05:22
2
3 Modified: ChangeLog
4 Added: klayout-0.21.11.ebuild
5 Log:
6 Version bump, add missing ruby dependency (bug 369055)
7
8 (Portage version: 2.1.10.7/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.8 sci-electronics/klayout/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/klayout/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/klayout/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/klayout/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-electronics/klayout/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 29 May 2011 08:46:30 -0000 1.7
24 +++ ChangeLog 25 Jul 2011 22:05:21 -0000 1.8
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-electronics/klayout
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/klayout/ChangeLog,v 1.7 2011/05/29 08:46:30 dilfridge Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/klayout/ChangeLog,v 1.8 2011/07/25 22:05:21 dilfridge Exp $
30 +
31 +*klayout-0.21.11 (25 Jul 2011)
32 +
33 + 25 Jul 2011; Andreas K. Huettel <dilfridge@g.o>
34 + +klayout-0.21.11.ebuild:
35 + Version bump, add missing ruby dependency (bug 369055)
36
37 29 May 2011; Andreas K. Huettel <dilfridge@g.o>
38 -klayout-0.21.7.ebuild:
39
40
41
42 1.1 sci-electronics/klayout/klayout-0.21.11.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/klayout/klayout-0.21.11.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/klayout/klayout-0.21.11.ebuild?rev=1.1&content-type=text/plain
46
47 Index: klayout-0.21.11.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/klayout/klayout-0.21.11.ebuild,v 1.1 2011/07/25 22:05:21 dilfridge Exp $
52
53 EAPI=3
54
55 USE_RUBY="ruby18"
56 # note: define maximally ONE implementation here
57
58 RUBY_OPTIONAL=yes
59
60 inherit eutils multilib toolchain-funcs ruby-ng
61
62 DESCRIPTION="Viewer and editor for GDS and OASIS integrated circuit layouts"
63 HOMEPAGE="http://www.klayout.de/"
64 SRC_URI="http://www.klayout.de/${P}.tar.gz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="ruby"
70
71 RDEPEND="
72 x11-libs/qt-gui:4[qt3support]
73 ruby? ( $(ruby_implementations_depend) )
74 "
75 DEPEND="${RDEPEND}"
76
77 all_ruby_prepare() {
78 # now we generate the stub build configuration file for the home-brew build system
79 cp "${FILESDIR}/${PN}-0.21.7-Makefile.conf.linux-gentoo" "${S}/config/Makefile.conf.linux-gentoo" || die
80 }
81
82 each_ruby_configure() {
83 local rbflags
84
85 if use ruby ; then
86 rbflags="-rblib $(ruby_get_libruby) -rbinc $(ruby_get_hdrdir)"
87 fi
88
89 ./build.sh \
90 -dry-run \
91 -platform linux-gentoo \
92 -bin bin \
93 -qtbin /usr/bin \
94 -qtinc /usr/include/qt4 \
95 -qtlib /usr/$(get_libdir)/qt4 \
96 ${rbflags} || die "Configuration failed"
97 }
98
99 each_ruby_compile() {
100 cd build.linux-gentoo
101 tc-export CC CXX AR LD RANLIB
102 export AR="${AR} -r"
103 emake all || die "Build failed"
104 }
105
106 each_ruby_install() {
107 cd build.linux-gentoo
108 emake install || die "make install failed"
109
110 cd ..
111 dobin bin/klayout || die
112
113 insinto /usr/share/${PN}/testdata/gds
114 doins testdata/gds/*.gds || die "Installation of gds testdata failed"
115 insinto /usr/share/${PN}/testdata/oasis
116 doins testdata/oasis/*.oas testdata/oasis/*.ot || die "Installation of oasis testdata failed"
117
118 if use ruby; then
119 insinto /usr/share/${PN}
120 doins -r testdata/ruby || die "Installation of ruby testdata failed"
121 fi
122 }