diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2008-06-28 19:27:43 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2008-06-28 19:27:43 +0000 |
commit | ef19e4e5cf24b6d07f22286b5600d14e7c846e30 (patch) | |
tree | d8aca4d12ac49a3a5fd21800399292ec051ff6be /dev-libs/dbxml | |
parent | version bump - bug #207306 - thanks Florian (diff) | |
download | gentoo-2-ef19e4e5cf24b6d07f22286b5600d14e7c846e30.tar.gz gentoo-2-ef19e4e5cf24b6d07f22286b5600d14e7c846e30.tar.bz2 gentoo-2-ef19e4e5cf24b6d07f22286b5600d14e7c846e30.zip |
Moved to the tree (with a lot of changes)
(Portage version: 2.2_rc1/cvs/Linux 2.6.24-gentoo-r8 x86_64)
Diffstat (limited to 'dev-libs/dbxml')
-rw-r--r-- | dev-libs/dbxml/ChangeLog | 29 | ||||
-rw-r--r-- | dev-libs/dbxml/Manifest | 7 | ||||
-rw-r--r-- | dev-libs/dbxml/dbxml-2.4.13.2.ebuild | 188 | ||||
-rw-r--r-- | dev-libs/dbxml/files/2.4.13-as_needed.patch | 13 | ||||
-rw-r--r-- | dev-libs/dbxml/metadata.xml | 9 |
5 files changed, 246 insertions, 0 deletions
diff --git a/dev-libs/dbxml/ChangeLog b/dev-libs/dbxml/ChangeLog new file mode 100644 index 000000000000..66050945d23f --- /dev/null +++ b/dev-libs/dbxml/ChangeLog @@ -0,0 +1,29 @@ +# ChangeLog for dev-libs/dbxml +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/dbxml/ChangeLog,v 1.1 2008/06/28 19:27:42 dev-zero Exp $ + +*dbxml-2.4.13.2 (28 Jun 2008) + + 28 Jun 2008; Tiziano Müller <dev-zero@gentoo.org> + +files/2.4.13-as_needed.patch, +metadata.xml, +dbxml-2.4.13.2.ebuild: + Moved to the tree (with a lot of changes) + + 15 Dec 2007; Markus Ullmann <jokey@gentoo.org> dbxml-2.3.10-r1, + dbxml-2.3.10-r2: + Drop old and whitey + + 29 Oct 2007; Markus Ullmann <jokey@gentoo.org> package.mask: + Add java-testing version, mask to have betelgeuse commenting on it + + 03 Apr 2007; Markus Ullmann <jokey@gentoo.org> -dbxml-2.3.10.ebuild, + dbxml-2.3.10-r1.ebuild: + Drop old and ebuild fixes + + 27 Mar 2007; Chris Carlin (volkris) <carlin@jlab.org> + +dbxml-2.3.10-r1.ebuild, +files/dbxml-pythonfixes.patch: + Apply upstream patch and optionally install python module. + + 07 Mar 2007; Chris Carlin (volkris) <carlin@jlab.org> + +dbxml-2.3.10.ebuild, +metadata.xml: + New Ebuild for bug 24473 + diff --git a/dev-libs/dbxml/Manifest b/dev-libs/dbxml/Manifest new file mode 100644 index 000000000000..3a05213551bc --- /dev/null +++ b/dev-libs/dbxml/Manifest @@ -0,0 +1,7 @@ +AUX 2.4.13-as_needed.patch 385 RMD160 3e18c695ed96a49ed7decb91b0253d3b1e20f1c6 SHA1 c341ca17c99fa90880a70e2064fdf8c6924890c1 SHA256 9cd161d2f70dc9e006303b3c1c1cce1bb5a63fa4c3fe296c92c5953f1fef9150 +DIST dbxml-2.4.13.tar.gz 46607043 RMD160 d4d8b32f49644981b6315c67dd5336fb5e9db568 SHA1 21ac0a3a49dd342695e1efaf4544a51c1d3b2951 SHA256 0d6dd8cdae71b1579b708c5c4c0620b94f3c16aeab9d32cdba4fc967a243f625 +DIST patch.2.4.13.1 34622 RMD160 55483f986273a1f5eaaf8b6a1485ac85ec892dfa SHA1 73a234e53ba3395f5e6ede30885ac9d47e4befa2 SHA256 1538c3e6271982ca025419147954ff317e3ffa832a8f37347bedc298a4c0bcd3 +DIST patch.2.4.13.2 15659 RMD160 14cd67516e2519d65db90d3f985df1e6025294fd SHA1 39b98b7b863d91714be1c3d95328f5447e617566 SHA256 a54859bec9fafc360efbdd0838b1ef4535b83ba44f28fd44d9018fe22e47d1d9 +EBUILD dbxml-2.4.13.2.ebuild 4780 RMD160 65b1ac10db9e258f6ff098e98b5ec61f39ef641e SHA1 d12e9d043c1230a8582fa08534cb79810a03b07f SHA256 73749d7c6ae0d3784ae77af82b805ede778ae6bce7f806b24f98ee60695d955f +MISC ChangeLog 983 RMD160 f0bb7e344b8e46b17b4365c5557a8b1b23f04a29 SHA1 0b3c7f7d8476f4cd54f4127f1048fc4b210f103a SHA256 cbefb26558e1618185124ec34e9799c715412d329d2b78a60cca71e404f747ce +MISC metadata.xml 254 RMD160 8a6834ab767349915a5286f9c72320ed21334191 SHA1 4fd535d4a1ce885cf1af049cedd0c5a4df590b6e SHA256 0d4b51113103323fba0cc45d767e875769b4c8054c9c33414b76675fe424892c diff --git a/dev-libs/dbxml/dbxml-2.4.13.2.ebuild b/dev-libs/dbxml/dbxml-2.4.13.2.ebuild new file mode 100644 index 000000000000..8c2086f2edde --- /dev/null +++ b/dev-libs/dbxml/dbxml-2.4.13.2.ebuild @@ -0,0 +1,188 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/dbxml/dbxml-2.4.13.2.ebuild,v 1.1 2008/06/28 19:27:42 dev-zero Exp $ + +EAPI="1" + +inherit flag-o-matic perl-app python eutils versionator multilib java-pkg-opt-2 + +MY_PV="$(get_version_component_range 1-3)" +MY_P="${PN}-${MY_PV}" +PATCH_V="$(get_version_component_range 4)" +PATCH_V="${PATCH_V:-0}" + +DESCRIPTION="BerkeleyDB XML, a native XML database from the BerkeleyDB team" +HOMEPAGE="http://www.oracle.com/database/berkeley-db/xml/index.html" +SRC_URI="http://download-east.oracle.com/berkeley-db/${MY_P}.tar.gz + http://download-west.oracle.com/berkeley-db/${MY_P}.tar.gz + http://download-uk.oracle.com/berkeley-db/${MY_P}.tar.gz" +LICENSE="OracleDB Apache-1.1 BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples java perl python tcl" + +RDEPEND="sys-libs/db:4.6 + =dev-libs/xerces-c-2.8* + >=dev-libs/xqilla-2.1.2 + perl? ( dev-lang/perl ) + python? ( + dev-lang/python:2.5 + >=dev-python/bsddb3-4.5.0 ) + tcl? ( dev-lang/tcl ) + java? ( >=virtual/jre-1.5 )" +DEPEND="${RDEPEND} + java? ( >=virtual/jdk-1.5 )" + +get_patches() { + local patches="" + local patch_v=1 + while [ ${patch_v} -le ${PATCH_V} ] ; do + patches="${patches} patch.${MY_PV}.${patch_v}" + let "patch_v = ${patch_v} + 1" + done + echo ${patches} +} + +for patch in $(get_patches) ; do + SRC_URI="${SRC_URI} + http://www.oracle.com/technology/products/berkeley-db/xml/update/${MY_PV}/${patch}" +done + +S="${WORKDIR}/${MY_P}/dbxml" + +DB_VER="4.6" + +pkg_setup() { + if built_with_use sys-libs/db:${DB_VER} nocxx ; then + eerror "dev-libs/db:${DB_VER} must be built without nocxx USE-flag" + die "dev-libs/db:${DB_VER} must be built without nocxx USE-flag" + fi + if use java && ! built_with_use sys-libs/db:${DB_VER} java ; then + eerror "dev-libs/db:${DB_VER} must be built with java USE-flag" + die "dev-libs/db:${DB_VER} must be built with java USE-flag" + fi + java-pkg-opt-2_pkg_setup +} + +src_unpack() { + unpack ${MY_P}.tar.gz + cd "${S}" + + for patch in $(get_patches) ; do + epatch "${DISTDIR}/${patch}" + done + + epatch "${FILESDIR}/${MY_PV}-as_needed.patch" + + # sys-libs/db is slotted on Gentoo + sed -i \ + -e "s:db_version=.*:db_version=4.6:" \ + dist/configure || die "sed failed" + if use java ; then + sed -i \ + -e "s|\$with_berkeleydb/lib/db.jar|$(java-pkg_getjars db-${DB_VER})|" \ + dist/configure || die "sed failed" + fi + + # * Fix libraries to link + # * Strip "../../build_unix/.libs" from LIBPATH or it'll + # show up in the RPATH entry + sed -i \ + -e "s|dbxml-2|dbxml-$(get_version_component_range 1-2)|" \ + -e "s|db_cxx-4|db_cxx-${DB_VER}|" \ + -e 's|"../../build_unix/.libs",||' \ + src/python/setup.py.in || die "sed failed" + + sed -i \ + -e "s|dbxml-2|dbxml-$(get_version_component_range 1-2)|" \ + -e "s|db_cxx-4|db_cxx-${DB_VER}|" \ + -e "s|@DB_DIR@/lib|/usr/$(get_libdir)|" \ + -e "s|@DB_DIR@/include|/usr/include/db${DB_VER}|" \ + -e "s|@XERCES_DIR@/lib|/usr/$(get_libdir)|" \ + -e "s|@XQILLA_DIR@/lib|/usr/$(get_libdir)|" \ + src/perl/config.in || die "sed failed" +} + +src_compile() { + cd "${S}/build_unix" + + #Needed despite db_version stuff above + append-flags -I/usr/include/db4.6 + + local myconf="" + + # use_enable doesn't work here due to a different syntax + use java && myconf="${myconf} --enable-java" + use tcl && myconf="${myconf} --enable-tcl --with-tcl=/usr/$(get_libdir)" + + ECONF_SOURCE=../dist + export ac_cv_prog_path_strip="missing_strip" + JAVAPREFIX="${JAVA_HOME}" \ + econf \ + --with-berkeleydb=/usr \ + --with-xqilla=/usr \ + --with-xerces=/usr \ + ${myconf}|| die "econf failed" + ECONF_SOURCE= + emake -j1 || die "emake failed" + + if use python ; then + einfo "Compiling python extension" + cd "${S}/src/python" + append-ldflags "-L../../build_unix/.libs" + python_version + "${python}" setup.py build || die "python build failed" + fi + + if use perl ; then + cd "${S}/src/perl" + perl-app_src_prep + perl-app_src_compile + fi +} + +src_install() { + cd "${S}/build_unix" + + # somewhat broken build system + einstall || die "einstall failed" + + use doc && dohtml -A pdf -r "${D}"/usr/docs/* + rm -rf "${D}/usr/docs" + + if use java ; then + java-pkg_dojar "${D}/usr/$(get_libdir)/dbxml.jar" + rm "${D}/usr/$(get_libdir)/dbxml.jar" + fi + + if use python ; then + cd "${S}/src/python" + python_version + "${python}" setup.py install --root="${D}" --no-compile || die "python install failed" + fi + + if use perl ; then + cd "${S}/src/perl" + emake DESTDIR="${D}" install || die "emake install perl module failed" + fi + + if use examples ; then + insinto /usr/share/doc/${PF} + doins -r "${S}/examples" + fi + +} + +pkg_postinst() { + if use python ; then + python_version + python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages + fi +} + +pkg_postrm() { + if use python ; then + python_version + python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages + fi +} diff --git a/dev-libs/dbxml/files/2.4.13-as_needed.patch b/dev-libs/dbxml/files/2.4.13-as_needed.patch new file mode 100644 index 000000000000..1b43bc826316 --- /dev/null +++ b/dev-libs/dbxml/files/2.4.13-as_needed.patch @@ -0,0 +1,13 @@ +Index: dbxml/dist/Makefile.defs.in +=================================================================== +--- dbxml.orig/dist/Makefile.defs.in ++++ dbxml/dist/Makefile.defs.in +@@ -81,7 +81,7 @@ CXXLINK= @MAKEFILE_CXXLINK@ + CXX_MM= @MAKEFILE_CXX_MM@ + + XSOLINK= @MAKEFILE_XSOLINK@ +-LIBXSO_LIBS= @LIBXSO_LIBS@ ++LIBXSO_LIBS= @LIBXSO_LIBS@ @LIBS@ + + libcxx= libdbxml.a + libxso_base= libdbxml diff --git a/dev-libs/dbxml/metadata.xml b/dev-libs/dbxml/metadata.xml new file mode 100644 index 000000000000..bc9536bf7bf6 --- /dev/null +++ b/dev-libs/dbxml/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <name>Tiziano Müller</name> + <email>dev-zero@gentoo.org</name> +</maintainer> +</pkgmetadata> |