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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 15 15:45:51 2012 UTC (2 years, 3 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #397009

(Portage version: 2.1.10.41/cvs/Linux i686)

1 # Copyright 1999-2012 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.2 2012/01/06 14:46:43 ago Exp $
4
5 EAPI=4
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 )
34
35 src_prepare() {
36 sed \
37 -e 's:-O2::g' \
38 -e 's:-pipe::g' \
39 -e 's:-fomit-frame-pointer::g' \
40 -i {.,extensions/tnc}/configure tclconfig/tcl.m4 || die
41 epatch "${PATCHES[@]}"
42 eautoreconf
43 }
44
45 src_configure() {
46 local myeconfargs=(
47 $(use_enable threads)
48 --enable-shared
49 --disable-tdomalloc
50 --with-expat
51 )
52
53 cd "${S}"/unix && ECONF_SOURCE=".." econf ${myeconfargs}
54 cd "${S}"/extensions/tdomhtml && econf ${myeconfargs}
55 cd "${S}"/extensions/tnc && econf ${myeconfargs}
56 }
57
58 src_compile() {
59 local dir
60
61 for dir in "${S}"/unix "${S}"/extensions/tnc; do
62 pushd ${dir} > /dev/null
63 emake
64 popd > /dev/null
65 done
66 }
67
68 src_install() {
69 local dir
70
71 dodoc CHANGES ChangeLog README*
72
73 for dir in "${S}"/unix "${S}"/extensions/tdomhtml "${S}"/extensions/tnc; do
74 pushd ${dir} > /dev/null
75 emake DESTDIR="${D}" install
76 popd > /dev/null
77 done
78
79 if ! use static-libs; then
80 einfo "Removing static libs ..."
81 rm -f "${ED}"/usr/$(get_libdir)/*.{a,la} || die
82 fi
83 }

  ViewVC Help
Powered by ViewVC 1.1.20