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