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/geda: ChangeLog geda-1.4.1.ebuild
Date: Sun, 30 Nov 2008 21:24:08
Message-Id: E1L6tlt-0000Sc-UB@stork.gentoo.org
1 calchan 08/11/30 21:24:05
2
3 Modified: ChangeLog
4 Added: geda-1.4.1.ebuild
5 Log:
6 Version bump, bug #249170.
7 (Portage version: 2.1.6_rc2/cvs/Linux 2.6.27-gentoo-r2 i686)
8
9 Revision Changes Path
10 1.47 sci-electronics/geda/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/geda/ChangeLog?rev=1.47&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/geda/ChangeLog?rev=1.47&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/geda/ChangeLog?r1=1.46&r2=1.47
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-electronics/geda/ChangeLog,v
19 retrieving revision 1.46
20 retrieving revision 1.47
21 diff -u -r1.46 -r1.47
22 --- ChangeLog 30 Nov 2008 21:05:46 -0000 1.46
23 +++ ChangeLog 30 Nov 2008 21:24:05 -0000 1.47
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sci-electronics/geda
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/geda/ChangeLog,v 1.46 2008/11/30 21:05:46 calchan Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/geda/ChangeLog,v 1.47 2008/11/30 21:24:05 calchan Exp $
29 +
30 +*geda-1.4.1 (30 Nov 2008)
31 +
32 + 30 Nov 2008; Denis Dupeyron <calchan@g.o> +geda-1.4.1.ebuild:
33 + Version bump, bug #249170.
34
35 30 Nov 2008; Denis Dupeyron <calchan@g.o> geda-1.4.0.ebuild:
36 Fixed security bug #247538 (CVE-2008-5148), thanks to Chitlesh Goorah.
37
38
39
40 1.1 sci-electronics/geda/geda-1.4.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/geda/geda-1.4.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/geda/geda-1.4.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: geda-1.4.1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/geda/geda-1.4.1.ebuild,v 1.1 2008/11/30 21:24:05 calchan Exp $
50
51 inherit eutils versionator
52
53 SUBDIR="v$(get_version_component_range 1-2)"
54 S="${WORKDIR}"
55
56 HOMEPAGE="http://www.geda.seul.org"
57 DESCRIPTION="Core metapackage for all the necessary components you would need for a minimal gEDA/gaf system"
58 SRC_URI="http://www.geda.seul.org/release/${SUBDIR}/${PV}/geda-gattrib-${PV}.tar.gz
59 http://www.geda.seul.org/release/${SUBDIR}/${PV}/geda-gnetlist-${PV}.tar.gz
60 http://www.geda.seul.org/release/${SUBDIR}/${PV}/geda-gschem-${PV}.tar.gz
61 http://www.geda.seul.org/release/${SUBDIR}/${PV}/geda-gsymcheck-${PV}.tar.gz
62 http://www.geda.seul.org/release/${SUBDIR}/${PV}/geda-symbols-${PV}.tar.gz
63 http://www.geda.seul.org/release/${SUBDIR}/${PV}/geda-utils-${PV}.tar.gz
64 doc? ( http://www.geda.seul.org/release/${SUBDIR}/${PV}/geda-docs-${PV}.tar.gz )
65 examples? ( http://www.geda.seul.org/release/${SUBDIR}/${PV}/geda-examples-${PV}.tar.gz )"
66
67 IUSE="doc examples gd threads"
68 LICENSE="GPL-2"
69 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
70 SLOT="0"
71
72 DEPEND=">=x11-libs/gtk+-2.4
73 >=dev-scheme/guile-1.6.3
74 =sci-libs/libgeda-${PV}"
75
76 pkg_setup() {
77 if has_version ">=dev-scheme/guile-1.8" ; then
78 built_with_use "dev-scheme/guile" deprecated \
79 || die "You need either <dev-scheme/guile-1.8, or >=dev-scheme/guile-1.8 with USE=deprecated"
80 fi
81 if use gd ; then
82 built_with_use sci-libs/libgeda gd || die "sci-libs/libgeda must be compiled with USE=gd"
83 else
84 ! built_with_use sci-libs/libgeda gd || die "sci-libs/libgeda must be compiled with USE=-gd"
85 fi
86 }
87
88 src_unpack() {
89 unpack ${A}
90 # Fix security bug #247538 (CVE-2008-5148), thanks to Chitlesh Goorah
91 sed -i \
92 -e 's:TMP=/tmp/\$\$:TMP=$(mktemp):' \
93 -e 's:>/tmp/\$\$:>${TMP}:' \
94 "${S}"/geda-gnetlist-${PV}/scripts/sch2eaglepos.sh \
95 || die "sed failed"
96 }
97
98 src_compile() {
99 local myconf="--disable-threads"
100 use threads || myconf="--enable-threads=posix"
101 for subdir in geda-{symbols,gschem,gnetlist,gsymcheck,gattrib,utils}-${PV}; do
102 cd "${S}/${subdir}"
103 econf \
104 ${myconf} \
105 --disable-dependency-tracking \
106 --with-docdir=/usr/share/doc/${PF} \
107 --with-pcbconfdir=/usr/share/pcb \
108 --with-pcbm4dir=/usr/share/pcb/m4 \
109 --disable-update-desktop-database \
110 --disable-rpath \
111 --with-x \
112 || die "Configuration failed in ${subdir}"
113 emake || die "Compilation failed in ${subdir}"
114 done
115
116 if use doc ; then
117 cd "${S}/geda-docs-${PV}"
118 econf --with-docdir=/usr/share/doc/${PF} || die "Configuration failed in geda-docs-${PV}"
119 emake || die "Compilation failed in geda-docs-${PV}"
120 fi
121 }
122
123 src_install () {
124 for subdir in geda-{symbols,gschem,gnetlist,gsymcheck,gattrib,utils}-${PV}; do
125 cd "${S}/${subdir}"
126 emake DESTDIR="${D}" install || die "Installation failed in geda-${subdir}-${PV}"
127 newdoc AUTHORS AUTHORS.${subdir}
128 newdoc BUGS BUGS.${subdir}
129 for READMEx in $(ls README*); do
130 newdoc ${READMEx} ${READMEx}.${subdir}
131 done
132 done
133
134 rm "${D}"/usr/share/gEDA/sym/gnetman -Rf # Fix collision with gnetman; bug #77361.
135
136 if use doc ; then
137 cd "${S}"/geda-docs-${PV}
138 emake DESTDIR="${D}" install || die "Installation failed in geda-docs-${PV}"
139 fi
140
141 if use examples ; then
142 cd "${S}"
143 mv geda-examples-${PV} examples
144 insinto /usr/share/gEDA
145 doins -r examples
146 fi
147 }
148
149 src_postinst() {
150 fdo-mime_desktop_database_update
151 }
152
153 src_postrm() {
154 fdo-mime_desktop_database_update
155 }