/[gentoo-x86]/dev-tcltk/tdom/tdom-0.8.3-r2.ebuild
Gentoo

Contents of /dev-tcltk/tdom/tdom-0.8.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jan 15 14:21:40 2013 UTC (18 months, 2 weeks ago) by jlec
Branch: MAIN
dev-tcltk/tdom: Add support for tcl8.6, #451548

(Portage version: 2.2.0_alpha152/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tdom/tdom-0.8.3-r1.ebuild,v 1.3 2012/01/15 15:45:51 phajdan.jr Exp $
4
5 EAPI=5
6
7 inherit autotools eutils multilib
8
9 MY_P="tDOM-${PV}"
10
11 DESCRIPTION="A XML/DOM/XPath/XSLT Implementation for Tcl"
12 HOMEPAGE="http://tdom.github.com/"
13 #SRC_URI="http://cloud.github.com/downloads/tDOM/${PN}/${MY_P}.tgz"
14 SRC_URI="mirror://github/tDOM/${PN}/${MY_P}.tgz"
15
16 LICENSE="MPL-1.1"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
19 IUSE="static-libs threads"
20
21 DEPEND="
22 dev-lang/tcl:=
23 dev-libs/expat"
24 RDEPEND="${DEPEND}"
25
26 S="${WORKDIR}/${MY_P}"
27
28 PATCHES=(
29 "${FILESDIR}/"${PN}-0.8.2.patch
30 "${FILESDIR}/"${P}-soname.patch
31 "${FILESDIR}/"${P}-expat.patch
32 "${FILESDIR}/"${PN}-0.8.2-tnc.patch
33 "${FILESDIR}/"${P}-tcl8.6.patch
34 )
35
36 src_prepare() {
37 sed \
38 -e 's:-O2::g' \
39 -e 's:-pipe::g' \
40 -e 's:-fomit-frame-pointer::g' \
41 -i {.,extensions/tnc}/configure tclconfig/tcl.m4 || die
42 epatch "${PATCHES[@]}"
43 eautoreconf
44 }
45
46 src_configure() {
47 local myeconfargs=(
48 $(use_enable threads)
49 --enable-shared
50 --disable-tdomalloc
51 --with-expat
52 )
53
54 cd "${S}"/unix && ECONF_SOURCE=".." econf ${myeconfargs}
55 cd "${S}"/extensions/tdomhtml && econf ${myeconfargs}
56 cd "${S}"/extensions/tnc && econf ${myeconfargs}
57 }
58
59 src_compile() {
60 local dir
61
62 for dir in "${S}"/unix "${S}"/extensions/tnc; do
63 pushd ${dir} > /dev/null
64 emake
65 popd > /dev/null
66 done
67 }
68
69 src_install() {
70 local dir
71
72 dodoc CHANGES ChangeLog README*
73
74 for dir in "${S}"/unix "${S}"/extensions/tdomhtml "${S}"/extensions/tnc; do
75 pushd ${dir} > /dev/null
76 emake DESTDIR="${D}" install
77 popd > /dev/null
78 done
79
80 if ! use static-libs; then
81 einfo "Removing static libs ..."
82 rm -f "${ED}"/usr/$(get_libdir)/*.{a,la} || die
83 fi
84 }

  ViewVC Help
Powered by ViewVC 1.1.20