Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-tcltk/tdom: tdom-0.8.3-r1.ebuild ChangeLog tdom-0.8.3.ebuild
Date: Fri, 06 Jan 2012 12:19:39
Message-Id: 20120106121924.6F3472004B@flycatcher.gentoo.org
1 jlec 12/01/06 12:19:24
2
3 Modified: ChangeLog
4 Added: tdom-0.8.3-r1.ebuild
5 Removed: tdom-0.8.3.ebuild
6 Log:
7 Drop all FLAGS from upstream, correct soname symlink, #397859 & #397861
8
9 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.13 dev-tcltk/tdom/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tdom/ChangeLog?rev=1.13&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tdom/ChangeLog?rev=1.13&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tdom/ChangeLog?r1=1.12&r2=1.13
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-tcltk/tdom/ChangeLog,v
21 retrieving revision 1.12
22 retrieving revision 1.13
23 diff -u -r1.12 -r1.13
24 --- ChangeLog 2 Jan 2012 22:13:19 -0000 1.12
25 +++ ChangeLog 6 Jan 2012 12:19:24 -0000 1.13
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-tcltk/tdom
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tdom/ChangeLog,v 1.12 2012/01/02 22:13:19 jlec Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tdom/ChangeLog,v 1.13 2012/01/06 12:19:24 jlec Exp $
31 +
32 +*tdom-0.8.3-r1 (06 Jan 2012)
33 +
34 + 06 Jan 2012; Justin Lecher <jlec@g.o> -tdom-0.8.3.ebuild,
35 + +tdom-0.8.3-r1.ebuild, +files/tdom-0.8.3-soname.patch:
36 + Drop all FLAGS from upstream, correct soname symlink, #397859 & #397861
37
38 02 Jan 2012; Justin Lecher <jlec@g.o> tdom-0.8.3.ebuild, metadata.xml:
39 Moved to EAPI=4, handle static-libs correctly
40
41
42
43 1.1 dev-tcltk/tdom/tdom-0.8.3-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tdom/tdom-0.8.3-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tdom/tdom-0.8.3-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: tdom-0.8.3-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tdom/tdom-0.8.3-r1.ebuild,v 1.1 2012/01/06 12:19:24 jlec Exp $
53
54 EAPI=4
55
56 inherit autotools eutils multilib
57
58 MY_P="tDOM-${PV}"
59
60 DESCRIPTION="A XML/DOM/XPath/XSLT Implementation for Tcl"
61 HOMEPAGE="http://tdom.github.com/"
62 #SRC_URI="http://cloud.github.com/downloads/tDOM/${PN}/${MY_P}.tgz"
63 SRC_URI="mirror://github/tDOM/${PN}/${MY_P}.tgz"
64
65 LICENSE="MPL-1.1"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
68 IUSE="static-libs threads"
69
70 DEPEND="
71 dev-lang/tcl
72 dev-libs/expat"
73 RDEPEND="${DEPEND}"
74
75 S="${WORKDIR}/${MY_P}"
76
77 PATCHES=(
78 "${FILESDIR}/"${PN}-0.8.2.patch
79 "${FILESDIR}/"${P}-soname.patch
80 "${FILESDIR}/"${P}-expat.patch
81 "${FILESDIR}/"${PN}-0.8.2-tnc.patch
82 )
83
84 src_prepare() {
85 sed \
86 -e 's:-O2::g' \
87 -e 's:-pipe::g' \
88 -e 's:-fomit-frame-pointer::g' \
89 -i {.,extensions/tnc}/configure tclconfig/tcl.m4 || die
90 epatch "${PATCHES[@]}"
91 eautoreconf
92 }
93
94 src_configure() {
95 local myeconfargs=(
96 $(use_enable threads)
97 --enable-shared
98 --disable-tdomalloc
99 --with-expat
100 )
101
102 cd "${S}"/unix && ECONF_SOURCE=".." econf ${myeconfargs}
103 cd "${S}"/extensions/tdomhtml && econf ${myeconfargs}
104 cd "${S}"/extensions/tnc && econf ${myeconfargs}
105 }
106
107 src_compile() {
108 local dir
109
110 for dir in "${S}"/unix "${S}"/extensions/tnc; do
111 pushd ${dir} > /dev/null
112 emake
113 popd > /dev/null
114 done
115 }
116
117 src_install() {
118 local dir
119
120 dodoc CHANGES ChangeLog README*
121
122 for dir in "${S}"/unix "${S}"/extensions/tdomhtml "${S}"/extensions/tnc; do
123 pushd ${dir} > /dev/null
124 emake DESTDIR="${D}" install
125 popd > /dev/null
126 done
127
128 if ! use static-libs; then
129 einfo "Removing static libs ..."
130 rm -f "${ED}"/usr/$(get_libdir)/*.{a,la} || die
131 fi
132 }