diff --git a/dev-tcltk/tclxml/ChangeLog b/dev-tcltk/tclxml/ChangeLog new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/ChangeLog @@ -0,0 +1,119 @@ +# ChangeLog for dev-tcltk/tclxml +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tclxml/ChangeLog,v 1.33 2009/06/08 11:18:49 mescalinum Exp $ + + 08 Jun 2009; Federico Ferri -tclxml-3.1.ebuild: + old + +*tclxml-3.2 (08 Jun 2009) + + 08 Jun 2009; Federico Ferri + +files/tclxml-3.2-fix-implicit-declarations.patch, +tclxml-3.2.ebuild: + bump to version 3.2, bug 273112 + + 28 Dec 2007; Michael Sterrett +tclxml-2.4.ebuild: + resurrect tclxml-2.4.ebuild which is still in use + +*tclxml-3.1-r1 (24 Dec 2007) + + 24 Dec 2007; MATSUU Takuto + +files/tclxml-3.1-test.patch, -tclxml-2.4.ebuild, -tclxml-2.6.ebuild, + +tclxml-3.1-r1.ebuild: + Added RESTRICT="test" + Removed old versions. + + 18 May 2007; Peter Weller tclxml-3.0-r1.ebuild, + tclxml-3.1.ebuild: + 3.0-r1 stable on amd64, 3.1 keyworded ~amd64 + + 30 Apr 2007; Jose Luis Rivero tclxml-3.0-r1.ebuild: + Stable on alpha wrt bug #96933 + + 30 Nov 2006; Gustavo Zacarias tclxml-3.0-r1.ebuild: + Stable on sparc + + 28 Nov 2006; Christian Faulhammer tclxml-3.0-r1.ebuild: + stable x86, bug #96933 + + 15 Aug 2006; MATSUU Takuto -tclxml-2.5.ebuild: + Removed old versions. + + 04 Jun 2006; MATSUU Takuto tclxml-2.6.ebuild: + Fixed bash-3.1 issue + + 03 Jun 2006; MATSUU Takuto tclxml-3.0-r1.ebuild, + tclxml-3.1.ebuild: + Changed xml2 USE flag for xml, bug 116346 + + 27 Apr 2006; Marien Zwart files/digest-tclxml-2.4, + files/digest-tclxml-2.5, files/digest-tclxml-2.6, Manifest: + Fixing SHA256 digest, pass four + +*tclxml-3.1 (08 Apr 2006) +*tclxml-3.0-r1 (08 Apr 2006) + + 08 Apr 2006; +files/tclxml-3_configure.patch, + +files/tclxml-3_include_path.patch, -tclxml-3.0.ebuild, + +tclxml-3.0-r1.ebuild, +tclxml-3.1.ebuild: + Remove old, not working version (bug #119814 and #123974); Version bump + +*tclxml-3.0 (26 Jun 2005) + + 26 Jun 2005; MATSUU Takuto +tclxml-3.0.ebuild: + Version bumped. + Added expat, threads and xml2 USE flags. + + 07 Apr 2005; Jan Brinkmann tclxml-2.4.ebuild, + tclxml-2.6.ebuild: + added ~amd64 to KEYWORDS, fixes #88183 + + 05 Apr 2005; Gustavo Zacarias tclxml-2.6.ebuild: + Stable on sparc + + 02 Apr 2005; Jason Wever tclxml-2.4.ebuild: + Stable on SPARC. + + 31 Dec 2004; Ciaran McCreesh : + Change encoding to UTF-8 for GLEP 31 compliance + + 22 Dec 2004; Bryan Østergaard tclxml-2.6.ebuild: + Stable on alpha. + + 21 Dec 2004; Bryan Østergaard tclxml-2.6.ebuild: + ~alpha keyword. + + 06 Nov 2004; tclxml-2.6.ebuild: + Marked stable on x86. + + 23 Oct 2004; Jason Wever tclxml-2.6.ebuild: + Added ~sparc keyword. + + 17 Oct 2004; David Holm tclxml-2.6.ebuild: + Added to ~ppc. + + 19 Jun 2004; Jason Wever tclxml-2.4.ebuild: + Added ~sparc keyword. + + 03 Jun 2004; Bryan Østergaard tclxml-2.4.ebuild: + Stable on alpha. + + 14 Apr 2004; Daniel Ahlberg tclxml-2.4.ebuild: + Added IUSE= + +*tclxml-2.6 (04 Apr 2004) + + 26 Nov 2003; Olivier Crete tclxml-2.4.ebuild: + Added -i option to sed, fixing bugs 30057 and 31262 + +*tclxml-2.4 (10 Mar 2003) + + 08 Jul 2003; Arcady Genkin : + Unmask for x86. + + 10 Mar 2003; Aron Griffis tclxml-2.4.ebuild: + Add ~alpha to KEYWORDS + +*tclxml-2.5 (01 Feb 2003) + + 01 Feb 2003; Arcady Genkin : + Initial version of the package. diff --git a/dev-tcltk/tclxml/Manifest b/dev-tcltk/tclxml/Manifest new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/Manifest @@ -0,0 +1,14 @@ +AUX tclxml-3.1-test.patch 1639 RMD160 71568fde07e9fdb1186362b121f66ddee9579e00 SHA1 4cc17600e8c8bd5279e32092b2a34795dac83dc4 SHA256 1c944940f0ad72be30641221a0fb08ad540b42eb5c84ada8ae988178d40db252 +AUX tclxml-3.2-fix-implicit-declarations.patch 488 RMD160 164aca393ecb1aee3a472cc1b47346184ed5eb1a SHA1 337669a1b1a6a1734b568ab7990332e1aa5a948f SHA256 13028681e6a4a272f0fb579c744189b95ca6ae56ab39869421af27e9282f8eec +AUX tclxml-3_configure.patch 2939 RMD160 5b1c865b214c09545c6c6502cfe6a89396233320 SHA1 478a9faf3b2982431b3f9c4324c62b39d8deffef SHA256 99e5bfc332973a666183f60d6839084da49e9082fe4bcc4134b763e7b9e8b07e +AUX tclxml-3_include_path.patch 329 RMD160 797f2f7db5c0000b641ada16e77910e42a7ea2cd SHA1 992ca51a5b7ba6d5fe450d85bd474be3efc6d0aa SHA256 7b2496096b0813f91275ca3c69cdd6ff6819945be6b7b7d8a59664c7ae6147fc +DIST tclxml-2.4.tar.gz 405119 RMD160 46d0ca8ade99d6072a30a005c377c4f84feec34f SHA1 e9f483f552cf3e3f10782e50fa171c2ddf92dea8 SHA256 eaf6850bb29eeab6958e09f3b0649b0b9b3bce874177d8ef56d4345f4bbffba1 +DIST tclxml-3.0.tar.gz 480461 RMD160 0147850065e29229e77d12c0589e4d3980cfaf6e SHA1 6dcb1aa0a77c8e79b7b09beebaef9d0bae0b3389 SHA256 0bc233e1e4de333c9235ea541da0f7c087f9989f446551c81a1d8c4eeef411bc +DIST tclxml-3.1.tar.gz 489568 RMD160 91a5025bf555a5ade5cb13be5ce746e015b2463b SHA1 d850ab7cd0457d60acbbfc4ab6be7f68827cdb1b SHA256 9b017f29c7a06fa1a57d1658bd1d3867297c26013604bdcc4d7b0ca2333552c9 +DIST tclxml-3.2.tar.gz 757594 RMD160 618d19c83159e85b1f95e4e8a173280d9ecb647c SHA1 bb6a551785b12162ae977f66d7ad3d70e094e122 SHA256 f4116b6680b249ce74b856a121762361ca09e6256f0c8ad578d1c661b822cb39 +EBUILD tclxml-2.4.ebuild 793 RMD160 019634adc2aa238eac0732cc52c35bec627aa4bf SHA1 89abad33053bb620b225526c037866c2baa623bb SHA256 4e2e07265e07bc03f9974d9437631b180071bbd08a82a2da35b7970a2f0be14e +EBUILD tclxml-3.0-r1.ebuild 1379 RMD160 769db9068835fe72ee49a7e927b2af4656f2f8e8 SHA1 e2a3e159ea6d31afee33eddd00200d1c59edb516 SHA256 338f88519187edc8cf9e426b027d162f0499ed4592d86952ee5c2fa94f2c3744 +EBUILD tclxml-3.1-r1.ebuild 1491 RMD160 730b36eacde10e17f673a9b4b35c546b4029cd83 SHA1 38e0a4d060ce3cc68176df79cf5e825f10d84cbd SHA256 e3d5281c75029fabc297ce8165f3ec5290cd384ae2c886e49903af0c9c1cd149 +EBUILD tclxml-3.2.ebuild 1380 RMD160 8fb2473fded01fe4eee01abb3201e1b0d3c25445 SHA1 031880fcbbeab6661edbf370116e09c4fdd40f00 SHA256 52df61f253a99ac42f70da50f3b99c6007748252bbfba49ccf34498546dd6bfe +MISC ChangeLog 3799 RMD160 a4c1074597defae4b988c5260e0f95d9a4f9e865 SHA1 8c89a579b13259c2e1216849590c470d11dcc879 SHA256 8dc69d89625175bcb37e961f6956c4cd7f9de005d6ff16eadf10243a38abcdd8 +MISC metadata.xml 158 RMD160 f197c34c7dd71f6025e93436e3f999137928554a SHA1 edb8e5ac668440e92e947fc3dff54484b28c7775 SHA256 62fb2b0a899315973de885234e3931a2f652b343b68f90fe0778378fdca6f290 diff --git a/dev-tcltk/tclxml/files/tclxml-3.1-test.patch b/dev-tcltk/tclxml/files/tclxml-3.1-test.patch new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/files/tclxml-3.1-test.patch @@ -0,0 +1,46 @@ +diff -Naur tclxml-3.1.orig/Makefile.in tclxml-3.1/Makefile.in +--- tclxml-3.1.orig/Makefile.in 2005-05-20 21:02:01.000000000 +0900 ++++ tclxml-3.1/Makefile.in 2007-12-24 13:28:55.000000000 +0900 +@@ -267,7 +267,7 @@ + # -testdir $(srcdir)/tea.tests + + test: binaries libraries +- (cd $(srcdir)/tests; $(bindir)/tclsh8.4 all.tcl) ++ (cd $(srcdir)/tests; $(bindir)/tclsh all.tcl) + + shell: binaries libraries + @$(TCLSH) $(SCRIPT) +diff -Naur tclxml-3.1.orig/examples/README tclxml-3.1/examples/README +--- tclxml-3.1.orig/examples/README 2000-12-28 15:07:12.000000000 +0900 ++++ tclxml-3.1/examples/README 2007-12-24 13:29:21.000000000 +0900 +@@ -31,7 +31,7 @@ + REC-xml-20001006.xml + The W3C XML spec in XML format. A handy file to run xmlwc over + to test your build. You should get this output with the command +- tclsh8.3 xmlwc REC-xml-20001006.xml ++ tclsh xmlwc REC-xml-20001006.xml + : + + 2929 14978 116827 REC-xml-20001006.xml +diff -Naur tclxml-3.1.orig/examples/flatten.tcl tclxml-3.1/examples/flatten.tcl +--- tclxml-3.1.orig/examples/flatten.tcl 2000-05-20 08:56:20.000000000 +0900 ++++ tclxml-3.1/examples/flatten.tcl 2007-12-24 13:29:29.000000000 +0900 +@@ -1,6 +1,6 @@ + #!/bin/sh + # -*- tcl -*- \ +-exec tclsh8.3 "$0" "$@" ++exec tclsh "$0" "$@" + + # flatten.tcl -- + # +diff -Naur tclxml-3.1.orig/examples/xmlwc tclxml-3.1/examples/xmlwc +--- tclxml-3.1.orig/examples/xmlwc 2000-12-28 14:53:38.000000000 +0900 ++++ tclxml-3.1/examples/xmlwc 2007-12-24 13:29:09.000000000 +0900 +@@ -1,6 +1,6 @@ + #!/bin/sh + # \ +-exec tclsh8.3 "$0" "$@" ++exec tclsh "$0" "$@" + + package require xml + diff --git a/dev-tcltk/tclxml/files/tclxml-3.2-fix-implicit-declarations.patch b/dev-tcltk/tclxml/files/tclxml-3.2-fix-implicit-declarations.patch new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/files/tclxml-3.2-fix-implicit-declarations.patch @@ -0,0 +1,12 @@ +diff -urpN tclxml-3.2.orig/tclxml.c tclxml-3.2/tclxml.c +--- tclxml-3.2.orig/tclxml.c 2009-06-08 12:56:10.000000000 +0200 ++++ tclxml-3.2/tclxml.c 2009-06-08 12:57:24.000000000 +0200 +@@ -20,6 +20,8 @@ + #include + #include + ++int Tcldom_libxml2_Init ( Tcl_Interp *interp ); ++ + #define TCL_DOES_STUBS \ + (TCL_MAJOR_VERSION > 8 || TCL_MAJOR_VERSION == 8 && (TCL_MINOR_VERSION > 1 || \ + (TCL_MINOR_VERSION == 1 && TCL_RELEASE_LEVEL == TCL_FINAL_RELEASE))) diff --git a/dev-tcltk/tclxml/files/tclxml-3_configure.patch b/dev-tcltk/tclxml/files/tclxml-3_configure.patch new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/files/tclxml-3_configure.patch @@ -0,0 +1,74 @@ +Tkanhs to Matteo Pillon +--- tcl.m4 2006-02-24 21:04:37.000000000 +0100 ++++ tcl.m4.1 2006-02-24 21:04:54.000000000 +0100 +@@ -588,7 +588,7 @@ + # results, and the version is kept in special file). + + if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then +- system=MP-RAS-`awk '{print $3}' /etc/.relid'` ++ system=MP-RAS-`awk '{print $3}' /etc/.relid` + fi + if test "`uname -s`" = "AIX" ; then + system=AIX-`uname -v`.`uname -r` +@@ -1454,7 +1454,7 @@ + # results, and the version is kept in special file). + + if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then +- system=MP-RAS-`awk '{print $3}' /etc/.relid'` ++ system=MP-RAS-`awk '{print $3}' /etc/.relid` + fi + if test "`uname -s`" = "AIX" ; then + system=AIX-`uname -v`.`uname -r` +--- configure 2004-07-11 05:43:18.000000000 +0200 ++++ configure.1 2006-02-24 21:14:04.000000000 +0100 +@@ -3771,7 +3771,7 @@ + # results, and the version is kept in special file). + + if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then +- system=MP-RAS-`awk '{print }' /etc/.relid'` ++ system=MP-RAS-`awk '{print }' /etc/.relid` + fi + if test "`uname -s`" = "AIX" ; then + system=AIX-`uname -v`.`uname -r` +--- tclconfig/tcl.m4 2003-12-03 21:06:35.000000000 +0100 ++++ tclconfig/tcl.m4.1 2006-02-24 21:16:04.000000000 +0100 +@@ -759,7 +759,7 @@ + # results, and the version is kept in special file). + + if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then +- system=MP-RAS-`awk '{print $3}' /etc/.relid'` ++ system=MP-RAS-`awk '{print $3}' /etc/.relid` + fi + if test "`uname -s`" = "AIX" ; then + system=AIX-`uname -v`.`uname -r` +@@ -2026,7 +2026,7 @@ + # results, and the version is kept in special file). + + if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then +- system=MP-RAS-`awk '{print $3}' /etc/.relid'` ++ system=MP-RAS-`awk '{print $3}' /etc/.relid` + fi + if test "`uname -s`" = "AIX" ; then + system=AIX-`uname -v`.`uname -r` +--- expat/configure 2004-07-11 05:43:29.000000000 +0200 ++++ expat/configure.1 2006-02-24 21:16:31.000000000 +0100 +@@ -3860,7 +3860,7 @@ + # results, and the version is kept in special file). + + if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then +- system=MP-RAS-`awk '{print }' /etc/.relid'` ++ system=MP-RAS-`awk '{print }' /etc/.relid` + fi + if test "`uname -s`" = "AIX" ; then + system=AIX-`uname -v`.`uname -r` +--- libxml2/configure 2004-07-11 14:11:03.000000000 +0200 ++++ libxml2/configure.1 2006-02-24 21:16:50.000000000 +0100 +@@ -3912,7 +3912,7 @@ + # results, and the version is kept in special file). + + if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then +- system=MP-RAS-`awk '{print }' /etc/.relid'` ++ system=MP-RAS-`awk '{print }' /etc/.relid` + fi + if test "`uname -s`" = "AIX" ; then + system=AIX-`uname -v`.`uname -r` diff --git a/dev-tcltk/tclxml/files/tclxml-3_include_path.patch b/dev-tcltk/tclxml/files/tclxml-3_include_path.patch new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/files/tclxml-3_include_path.patch @@ -0,0 +1,12 @@ +--- expat/Makefile.in.orig 2006-04-08 12:28:11.594940750 +0200 ++++ expat/Makefile.in 2006-04-08 12:28:26.927899000 +0200 +@@ -175,7 +175,8 @@ + INCLUDES = @TCL_INCLUDES@ \ + -I$(srcdir)/xmltok \ + -I$(srcdir)/xmlparse \ +- -I$(srcdir)/xmlwf ++ -I$(srcdir)/xmlwf \ ++ -I../include + + EXTRA_CFLAGS = $(MEM_DEBUG_FLAGS) @EXTRA_CFLAGS@ + diff --git a/dev-tcltk/tclxml/metadata.xml b/dev-tcltk/tclxml/metadata.xml new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/metadata.xml @@ -0,0 +1,5 @@ + + + +tcltk + diff --git a/dev-tcltk/tclxml/tclxml-2.4.ebuild b/dev-tcltk/tclxml/tclxml-2.4.ebuild new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/tclxml-2.4.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tclxml/tclxml-2.4.ebuild,v 1.18 2007/12/28 17:22:03 mr_bones_ Exp $ + +DESCRIPTION="Pure Tcl implementation of an XML parser." +HOMEPAGE="http://tclxml.sourceforge.net/" +SRC_URI="mirror://sourceforge/tclxml/${P}.tar.gz" +IUSE="" +LICENSE="BSD" +SLOT="0" +KEYWORDS="x86 alpha sparc ~amd64" +DEPEND=">=dev-lang/tcl-8.3.3" + +src_unpack() { + unpack ${A} + cd ${S} + + sed -i -e "s/relid'/relid/" \ + configure tcl.m4 tclconfig/tcl.m4 expat/configure || die +} + +src_compile() { + econf || die + make || die + + # Need to hack the config script. + sed -i 's:NONE:/usr:' TclxmlConfig.sh +} + +src_install() { + einstall || die + dodoc ChangeLog LICENSE README RELNOTES +} diff --git a/dev-tcltk/tclxml/tclxml-3.0-r1.ebuild b/dev-tcltk/tclxml/tclxml-3.0-r1.ebuild new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/tclxml-3.0-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tclxml/tclxml-3.0-r1.ebuild,v 1.6 2007/05/18 22:06:54 welp Exp $ + +inherit eutils + +DESCRIPTION="Pure Tcl implementation of an XML parser." +HOMEPAGE="http://tclxml.sourceforge.net/" +SRC_URI="mirror://sourceforge/tclxml/${P}.tar.gz" + +IUSE="expat threads xml" +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 ~ppc sparc x86" + +DEPEND=">=dev-lang/tcl-8.2 + >=dev-tcltk/tcllib-1.2 + xml? ( >=dev-libs/libxml2-2.6.9 ) + expat? ( dev-libs/expat ) + !dev-tcltk/tclxml-expat" + +MAKEOPTS="${MAKEOPTS} -j1" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${PN}-3_configure.patch + epatch ${FILESDIR}/${PN}-3_include_path.patch +} + +src_compile() { + local myconf="" + + use threads && myconf="${myconf} --enable-threads" + + econf ${myconf} || die + emake || die + + if use xml ; then + cd ${S}/libxml2 + econf ${myconf} --with-Tclxml=.. || die + emake || die + fi + if use expat ; then + cd ${S}/expat + econf ${myconf} --with-Tclxml=.. || die + emake || die + fi +} + +src_install() { + make DESTDIR=${D} install || die + + if use xml ; then + cd ${S}/libxml2 + make DESTDIR=${D} install || die + fi + if use expat ; then + cd ${S}/expat + make DESTDIR=${D} install || die + fi + + cd ${S} + dodoc ANNOUNCE ChangeLog LICENSE README RELNOTES + dohtml doc/*.html +} diff --git a/dev-tcltk/tclxml/tclxml-3.1-r1.ebuild b/dev-tcltk/tclxml/tclxml-3.1-r1.ebuild new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/tclxml-3.1-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tclxml/tclxml-3.1-r1.ebuild,v 1.2 2007/12/24 11:50:38 mr_bones_ Exp $ + +inherit eutils + +DESCRIPTION="Pure Tcl implementation of an XML parser." +HOMEPAGE="http://tclxml.sourceforge.net/" +SRC_URI="mirror://sourceforge/tclxml/${P}.tar.gz" + +IUSE="expat threads xml" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" + +DEPEND=">=dev-lang/tcl-8.2 + >=dev-tcltk/tcllib-1.2 + xml? ( >=dev-libs/libxml2-2.6.9 ) + expat? ( dev-libs/expat ) + !dev-tcltk/tclxml-expat" +# test? ( dev-tcltk/tclparser ) +RESTRICT="test" + +MAKEOPTS="${MAKEOPTS} -j1" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-3_configure.patch + epatch "${FILESDIR}"/${PN}-3_include_path.patch + epatch "${FILESDIR}"/${P}-test.patch +} + +src_compile() { + local myconf="" + + use threads && myconf="${myconf} --enable-threads" + + econf ${myconf} || die + emake || die + + if use xml ; then + cd "${S}"/libxml2 + econf ${myconf} --with-Tclxml=.. || die + emake || die + fi + if use expat ; then + cd "${S}"/expat + econf ${myconf} --with-Tclxml=.. || die + emake || die + fi +} + +src_install() { + emake DESTDIR="${D}" install || die + + if use xml ; then + cd "${S}"/libxml2 + emake DESTDIR="${D}" install || die + fi + if use expat ; then + cd "${S}"/expat + emake DESTDIR="${D}" install || die + fi + + cd "${S}" + dodoc ANNOUNCE ChangeLog README RELNOTES + dohtml doc/*.html +} diff --git a/dev-tcltk/tclxml/tclxml-3.2.ebuild b/dev-tcltk/tclxml/tclxml-3.2.ebuild new file mode 100644 --- /dev/null +++ b/dev-tcltk/tclxml/tclxml-3.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tclxml/tclxml-3.2.ebuild,v 1.1 2009/06/08 11:13:44 mescalinum Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Pure Tcl implementation of an XML parser." +HOMEPAGE="http://tclxml.sourceforge.net/" +SRC_URI="mirror://sourceforge/tclxml/${P}.tar.gz" + +IUSE="expat threads xml" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" + +DEPEND=">=dev-lang/tcl-8.2 + >=dev-tcltk/tcllib-1.2 + xml? ( >=dev-libs/libxml2-2.6.9 ) + expat? ( dev-libs/expat ) + !dev-tcltk/tclxml-expat" +# test? ( dev-tcltk/tclparser ) +RDEPEND="${DEPEND}" + +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/"${P}"-fix-implicit-declarations.patch +} + +src_compile() { + local myconf="" + + use threads && myconf="${myconf} --enable-threads" + + econf ${myconf} || die + emake || die + + if use xml ; then + cd "${S}"/libxml2 + econf ${myconf} --with-Tclxml=.. || die + emake || die + fi + if use expat ; then + cd "${S}"/expat + econf ${myconf} --with-Tclxml=.. || die + emake || die + fi +} + +src_install() { + emake DESTDIR="${D}" install || die + + if use xml ; then + cd "${S}"/libxml2 + emake DESTDIR="${D}" install || die + fi + if use expat ; then + cd "${S}"/expat + emake DESTDIR="${D}" install || die + fi + + cd "${S}" + dodoc ANNOUNCE ChangeLog + dohtml doc/*.html +}