summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Wulf C. Krueger <philantrop@exherbo.org> 2010-02-03 22:31:11 +0100
committerAvatar Wulf C. Krueger <philantrop@exherbo.org> 2010-02-03 22:31:31 +0100
commite10b06cc9e70671ce8cc28ad0c2ffb350192d224 (patch)
treebb907da86339ce9651e2b7b2100937e0d0ad5312
parenta42e1ea4eb3d7b2dd70a5292db8c0a266bf0ebec (diff)
downloadtcl-e10b06cc9e70671ce8cc28ad0c2ffb350192d224.tar.gz
tcl-e10b06cc9e70671ce8cc28ad0c2ffb350192d224.tar.xz
Initial exheres for tdom-0.8.2.
-rw-r--r--packages/dev-tcl/tdom/files/tdom-0.8.2-expat.patch86
-rw-r--r--packages/dev-tcl/tdom/files/tdom-0.8.2-tnc.patch76
-rw-r--r--packages/dev-tcl/tdom/files/tdom-0.8.2.patch55
-rw-r--r--packages/dev-tcl/tdom/tdom-0.8.2.exheres-090
4 files changed, 307 insertions, 0 deletions
diff --git a/packages/dev-tcl/tdom/files/tdom-0.8.2-expat.patch b/packages/dev-tcl/tdom/files/tdom-0.8.2-expat.patch
new file mode 100644
index 0000000..c48ad21
--- /dev/null
+++ b/packages/dev-tcl/tdom/files/tdom-0.8.2-expat.patch
@@ -0,0 +1,86 @@
+Source: openSUSE
+Upstream: Dead.
+Reason: Don't use bundled expat but the system's one.
+
+Index: Makefile.in
+================================================================================
+--- configure.in
++++ configure.in
+@@ -72,6 +72,7 @@
+ #--------------------------------------------------------------------
+
+ TDOM_PATH_AOLSERVER
++TDOM_PATH_EXPAT
+
+ #-----------------------------------------------------------------------
+ # __CHANGE__
+@@ -83,10 +84,7 @@
+ # and PKG_TCL_SOURCES.
+ #-----------------------------------------------------------------------
+
+-TEA_ADD_SOURCES([expat/xmlrole.c \
+- expat/xmltok.c \
+- expat/xmlparse.c \
+- generic/xmlsimple.c \
++TEA_ADD_SOURCES([generic/xmlsimple.c \
+ generic/utf8conv.c \
+ generic/dom.c \
+ generic/domalloc.c \
+@@ -100,7 +98,7 @@
+ generic/tclexpat.c \
+ generic/tdomStubInit.c])
+ TEA_ADD_HEADERS([generic/tdom.h])
+-TEA_ADD_INCLUDES([-I${srcdir}/generic -I${srcdir}/expat ${AOL_INCLUDES}])
++TEA_ADD_INCLUDES([-I${srcdir}/generic ${AOL_INCLUDES}])
+ TEA_ADD_LIBS([${AOL_LIBS}])
+ TEA_ADD_CFLAGS([])
+ TEA_ADD_STUB_SOURCES([generic/tdomStubLib.c])
+--- tdom.m4
++++ tdom.m4
+@@ -215,6 +215,46 @@
+ fi
+ ])
+
++
++AC_DEFUN(TDOM_PATH_EXPAT, [
++ AC_MSG_CHECKING([for expat])
++ AC_ARG_WITH(expat,
++ AC_HELP_STRING([--with-expat],
++ [directory with expat installation]), , [with_expat=no])
++
++ AC_CACHE_VAL(ac_cv_c_expat,[
++ case $with_expat in
++ no) ;;
++ yes)
++ for f in /usr/local /usr; do
++ if test -f "$f/include/expat.h" ; then
++ ac_cv_c_expat=`(cd $f; pwd)`
++ break
++ fi
++ done
++ ;;
++ *)
++ if test -f "$with_expat/include/expat.h"; then
++ ac_cv_c_expat=`(cd $with_expat; pwd)`
++ else
++ AC_MSG_ERROR([${with_expat} directory doesn't contain expat.h])
++ fi
++ esac
++ ])
++ if test x"${ac_cv_c_expat}" = x ; then
++ AC_MSG_RESULT([using local copy])
++ TEA_ADD_SOURCES([expat/xmlrole.c \
++ expat/xmltok.c \
++ expat/xmlparse.c])
++ TEA_ADD_INCLUDES([-I${srcdir}/expat])
++ else
++ AC_MSG_RESULT([${ac_cv_c_expat}])
++ TEA_ADD_INCLUDES(${ac_cv_c_expat}/include)
++ TEA_ADD_LIBS([-lexpat])
++ fi
++])
++
++
+ #------------------------------------------------------------------------
+ # TDOM_PATH_CONFIG --
+ #
diff --git a/packages/dev-tcl/tdom/files/tdom-0.8.2-tnc.patch b/packages/dev-tcl/tdom/files/tdom-0.8.2-tnc.patch
new file mode 100644
index 0000000..22f6096
--- /dev/null
+++ b/packages/dev-tcl/tdom/files/tdom-0.8.2-tnc.patch
@@ -0,0 +1,76 @@
+Source: openSUSE
+Upstream: Dead.
+Reason: Allow building libtnc against not-yet-installed tdom.
+
+--- extensions/tnc/Makefile.in
++++ extensions/tnc/Makefile.in
+@@ -355,29 +355,30 @@
+ #========================================================================
+
+ install-lib-binaries: binaries
+- @mkdir -p $(DESTDIR)$(pkglibdir)
++ @mkdir -p $(DESTDIR)$(libdir)
+ @list='$(lib_BINARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+- echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p"; \
++ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p; \
+ stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
+ if test "x$$stub" = "xstub"; then \
+- echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(RANLIB_STUB) $(DESTDIR)$(libdir)/$$p"; \
++ $(RANLIB_STUB) $(DESTDIR)$(libdir)/$$p; \
+ else \
+- echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
++ $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
+ fi; \
+ ext=`echo $$p|sed -e "s/.*\.//"`; \
+ if test "x$$ext" = "xdll"; then \
+ lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
+ if test -f $$lib; then \
+- echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
+- $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
++ echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib"; \
++ $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib; \
+ fi; \
+ fi; \
+ fi; \
+ done
++ @mkdir -p $(DESTDIR)$(pkglibdir)
+ @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+ destp=`basename $$p`; \
+--- extensions/tnc/configure.in
++++ extensions/tnc/configure.in
+@@ -89,7 +89,7 @@
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
+ TEA_ADD_LIBS([\"`${CYGPATH} ${TDOM_STUB_LIB_PATH}`\"])
+ else
+- TEA_ADD_LIBS([${TDOM_STUB_LIB_SPEC}])
++ TEA_ADD_LIBS([${TDOM_BUILD_STUB_LIB_SPEC}])
+ fi
+
+ #--------------------------------------------------------------------
+--- extensions/tnc/pkgIndex.tcl.in
++++ extensions/tnc/pkgIndex.tcl.in
+@@ -2,4 +2,4 @@
+
+ package ifneeded tnc @PACKAGE_VERSION@ \
+ "package require tdom; \
+- [list load [file join $dir @PKG_LIB_FILE@] tnc]"
++ [list load @PKG_LIB_FILE@ tnc]"
+--- extensions/tnc/Makefile.in
++++ extensions/tnc/Makefile.in
+@@ -160,7 +160,7 @@ DEFS = @DEFS@ $(PKG_CFLAGS)
+ CONFIG_CLEAN_FILES = Makefile
+
+ CPPFLAGS = @CPPFLAGS@
+-LIBS = @PKG_LIBS@ @LIBS@
++LIBS = @PKG_LIBS@ @LIBS@ -L../../unix/
+ AR = @AR@
+ CFLAGS = @CFLAGS@
+ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
diff --git a/packages/dev-tcl/tdom/files/tdom-0.8.2.patch b/packages/dev-tcl/tdom/files/tdom-0.8.2.patch
new file mode 100644
index 0000000..5c0aeaf
--- /dev/null
+++ b/packages/dev-tcl/tdom/files/tdom-0.8.2.patch
@@ -0,0 +1,55 @@
+Source: openSUSE
+Upstream: Dead.
+Reason: Fix paths.
+
+--- Makefile.in
++++ Makefile.in
+@@ -307,7 +307,7 @@
+
+ pkgIndex.tcl-hand:
+ @(echo 'package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION)\
+- "load [list [file join $$dir $(PKG_LIB_FILE)]];\
++ "load $(PKG_LIB_FILE);\
+ source [list [file join $$dir tdom.tcl]]"'\
+ ) > pkgIndex.tcl
+
+@@ -385,29 +385,30 @@
+ #========================================================================
+
+ install-lib-binaries: binaries
+- @mkdir -p $(DESTDIR)$(pkglibdir)
++ @mkdir -p $(DESTDIR)$(libdir)
+ @list='$(lib_BINARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+- echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p"; \
++ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p; \
+ stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
+ if test "x$$stub" = "xstub"; then \
+- echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(RANLIB_STUB) $(DESTDIR)$(libdir)/$$p"; \
++ $(RANLIB_STUB) $(DESTDIR)$(libdir)/$$p; \
+ else \
+- echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
++ $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
+ fi; \
+ ext=`echo $$p|sed -e "s/.*\.//"`; \
+ if test "x$$ext" = "xdll"; then \
+ lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
+ if test -f $$lib; then \
+- echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
+- $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
++ echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib"; \
++ $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib; \
+ fi; \
+ fi; \
+ fi; \
+ done
++ @mkdir -p $(DESTDIR)$(pkglibdir)
+ @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+ destp=`basename $$p`; \
diff --git a/packages/dev-tcl/tdom/tdom-0.8.2.exheres-0 b/packages/dev-tcl/tdom/tdom-0.8.2.exheres-0
new file mode 100644
index 0000000..c9ab3ba
--- /dev/null
+++ b/packages/dev-tcl/tdom/tdom-0.8.2.exheres-0
@@ -0,0 +1,90 @@
+# Copyright 2010 Wulf C. Krueger <philantrop@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require multilib autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.11 ] ]
+
+MY_PNV="tDOM-${PV}"
+SUMMARY="A fast XML/DOM/XPath package for Tcl written in C"
+DESCRIPTION="
+tDOM combines high performance XML data processing with easy and powerful Tcl
+scripting functionality. tDOM should be one of the fastest ways to manipulate
+XML with a scripting language and uses very little memory in the process (for
+example the DOM tree of the XML recommendation in XML (160K) needs only about
+450K in memory).
+"
+HOMEPAGE="http://www.${PN}.org/"
+DOWNLOADS="${HOMEPAGE}/files/${MY_PNV}.tgz"
+
+BUGS_TO="philantrop@exherbo.org"
+
+UPSTREAM_DOCUMENTATION="${HOMEPAGE}/doc-index.html [[ lang = en ]]"
+
+LICENCES="MPL-1.1"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS=""
+
+DEPENDENCIES="
+ build+run:
+ dev-lang/tcl[>=8.5.7]
+ dev-libs/expat[>=2.0.1]
+"
+
+DEFAULT_SRC_PREPARE_PATCHES=(
+ -p0 "${FILES}"/${PNV}.patch
+ -p0 "${FILES}"/${PNV}-expat.patch
+ -p0 "${FILES}"/${PNV}-tnc.patch
+)
+
+DEFAULT_SRC_CONFIGURE_PARAMS=(
+ --hates=docdir
+ --enable-shared
+ --enable-threads
+ --disable-tdomalloc
+ --with-expat
+)
+
+WORK=${WORKBASE}/${MY_PNV}
+
+do_default() {
+ edo pushd "${WORK}"/${@}
+ default
+ edo popd
+}
+
+src_configure() {
+ ECONF_SOURCE=".." do_default unix
+ do_default extensions/tdomhtml
+}
+
+src_compile() {
+ do_default unix
+ edo pushd "${WORK}"/extensions/tnc
+ edo ./configure \
+ --prefix=/usr \
+ --with-tdom="${WORK}"/unix \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --datadir=/usr/share \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --libdir=/usr/$(get_libdir) \
+ --enable-shared \
+ --enable-threads
+ default
+ edo popd
+}
+
+src_test() {
+ do_default unix
+}
+
+src_install() {
+ emagicdocs
+ do_default unix
+ do_default extensions/tdomhtml
+ do_default extensions/tnc
+
+ edo cp "${WORK}"/doc/* "${IMAGE}"/usr/share/doc/${PNVR}
+ edo rmdir "${IMAGE}"/usr/bin
+}